IccMAX 2.1.27
Color Profile Tools
|
#include <IccTagXml.h>
Public Member Functions | |
virtual | ~CIccTagXmlArray () |
bool | AreAllOfType (icTagTypeSignature sigTagType) |
bool | AttachTag (icUInt32Number nIndex, CIccTag *pTag) |
virtual void | Describe (std::string &sDescription, int nVerboseness) |
virtual void | DetachIO () |
CIccTag * | DetachTag (icUInt32Number nIndex, bool bDeleteFlag=false) |
IIccArray * | GetArrayHandler () |
virtual const char * | GetClassName () const |
virtual const char * | GetExtClassName () const |
virtual const char * | GetExtDerivedClassName () const |
virtual IIccExtensionTag * | GetExtension () |
CIccTag * | GetIndex (icUInt32Number index) const |
icUInt32Number | GetSize () const |
Returns the size of the data array. | |
virtual icArraySignature | GetTagArrayType () const |
virtual icStructSignature | GetTagStructType () const |
virtual icTagTypeSignature | GetType () const |
virtual bool | IsArrayType () |
virtual bool | IsMBBType () |
virtual bool | IsNumArrayType () const |
virtual bool | IsSupported () |
virtual CIccTag * | NewCopy () const |
CIccTag * | operator[] (icUInt32Number index) const |
virtual bool | ParseXml (xmlNode *pNode, std::string &parseStr) |
virtual bool | Read (icUInt32Number size, CIccIO *pIO) |
virtual bool | Read (icUInt32Number size, CIccIO *pIO, CIccProfile *pProfile) |
virtual bool | ReadAll () |
bool | SetSize (icUInt32Number nSize) |
virtual bool | SetTagArrayType (icArraySignature sig) |
virtual bool | ToXml (std::string &xml, std::string blanks="") |
virtual icValidateStatus | Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const |
virtual bool | Write (CIccIO *pIO) |
Static Public Member Functions | |
static CIccTag * | Create (icTagTypeSignature sig) |
static CIccTagArray * | ParseMem (icUInt8Number *pMem, icUInt32Number size) |
Data Fields | |
icUInt32Number | m_nReserved |
Protected Member Functions | |
void | Cleanup () |
Protected Attributes | |
icUInt32Number | m_nSize |
IIccArray * | m_pArray |
icArraySignature | m_sigArrayType |
IccTagPtr * | m_TagVals |
|
inlinevirtual |
|
inherited |
Name: CIccTagArray::AreAllOftype
Purpose: checks if all array elements have type signature sigTagType Args: sigTagType Return: true if all elements are of type sigTagType, false otherwise
References CIccTagArray::GetIndex(), CIccTag::GetType(), and CIccTagArray::m_nSize.
|
inherited |
Name: CIccTagArray::AttachTag
Purpose: Get a tag entry with a given signature
Args: nIndex - index of tag in array
Return: Pointer to desired tag struct entry, or NULL if not found.
References CIccTagArray::m_nSize, and CIccTagArray::m_TagVals.
|
protectedinherited |
Name: CIccTagArray::Cleanup
Purpose: Detach from a pending IO object
References icSigUndefinedArray, CIccTagArray::m_nSize, CIccTagArray::m_pArray, CIccTagArray::m_sigArrayType, and CIccTagArray::m_TagVals.
Referenced by CIccTagArray::~CIccTagArray(), CIccTagArray::operator=(), and CIccTagArray::Read().
|
staticinherited |
Name: CIccTag::Create
Purpose: This is a static tag creator based upon tag signature type
Args: sig = tag type signature
Return: Pointer to Allocated tag
References CIccTagCreator::CreateTag().
Referenced by CIccDefaultEncProfileConverter::ConvertFromParams(), CIccTagStruct::LoadElem(), CIccProfileXml::ParseTag(), CIccTagXmlStruct::ParseTag(), CIccMpeXmlTintArray::ParseXml(), ParseXml(), CIccMpeTintArray::Read(), CIccTagLutAtoB::Read(), CIccTagLut8::Read(), CIccTagLut16::Read(), CIccTagLut8::SetColorSpaces(), CIccTagLut16::SetColorSpaces(), and CIccProfileDescText::SetType().
|
virtualinherited |
Name: CIccTagArray::Describe
Purpose:
Args:
Return:
Reimplemented from CIccTag.
References CIccTag::Describe(), CIccTagArray::GetArrayHandler(), CIccArrayCreator::GetArraySigName(), CIccTagArray::m_nSize, CIccTagArray::m_sigArrayType, and CIccTagArray::m_TagVals.
|
inlinevirtualinherited |
Function: ReadAll() - Read All sub data for tag from file. Called by CIccProfile::ReadAll() to read all sub data for tag
Returns true if ReadAll is successful.
|
inherited |
Name: CIccTagArray::DetachTag
Purpose: Detach tag value at given index
Args: nIndex - index of tag in array bDeleteFlag - flag indicating detached tag should be deleted
Return: Pointer to Detached tag struct entry, or NULL if not found or deleted.
References CIccTagArray::m_nSize, and CIccTagArray::m_TagVals.
|
inherited |
Name: CIccTagArray::GetArrayHandler
Purpose: Get Array object handler
Args:
Return: Pointer to an Array object handler for the associated array type
References CIccArrayCreator::CreateArray(), CIccTagArray::m_pArray, and CIccTagArray::m_sigArrayType.
Referenced by CIccTagArray::Describe(), and icGetTagArrayHandler().
|
inlinevirtual |
Reimplemented from CIccTagArray.
|
inlinevirtualinherited |
Implements IIccExtensionTag.
Referenced by icProfDescToXml(), and icXmlParseProfDesc().
|
inlinevirtualinherited |
|
inlinevirtual |
Reimplemented from CIccTag.
|
inherited |
Name: CIccTagArray::GetIndex
Purpose: Get a tag entry with a given index
Args: nIndex - index of tag in array
Return: Pointer to desired tag entry, or NULL if not found.
References CIccTagArray::m_nSize, and CIccTagArray::m_TagVals.
Referenced by CIccTagArray::AreAllOfType(), CIccArrayNamedColor::Begin(), CIccArrayNamedColor::FindDeviceColor(), CIccArrayNamedColor::FindPcsColor(), CIccArrayNamedColor::FindSpectralColor(), CIccTagArray::operator[](), CIccArrayUnknown::Validate(), CIccArrayColorantInfo::Validate(), and CIccArrayNamedColor::Validate().
|
inlineinherited |
Returns the size of the data array.
References CIccTagArray::m_nSize.
Referenced by CIccArrayNamedColor::Begin(), CIccArrayNamedColor::FindDeviceColor(), CIccArrayNamedColor::FindPcsColor(), CIccArrayNamedColor::FindSpectralColor(), CIccArrayUnknown::Validate(), CIccArrayColorantInfo::Validate(), and CIccArrayNamedColor::Validate().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Reimplemented in CIccTagStruct.
References icSigUndefinedStruct.
Referenced by icGetTagStructHandlerOfType(), CIccArrayColorantInfo::Validate(), and CIccArrayNamedColor::Validate().
|
inlinevirtualinherited |
Function: GetType()
Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.
Reimplemented from CIccTag.
References icSigTagArrayType.
Referenced by CIccTagArray::Write().
|
inlinevirtualinherited |
Reimplemented in CIccTagXYZ, CIccTagChromaticity, CIccTagSparseMatrixArray, CIccTagFixedNum< T, Tsig >, CIccTagNum< T, Tsig >, CIccTagFloatNum< T, Tsig >, and CIccTagData.
Referenced by MyTagDialog::MyTagDialog(), and DumpTag().
|
inlinevirtualinherited |
Reimplemented in CIccMBB.
Referenced by CIccProfileXml::ParseTag().
|
inlinevirtualinherited |
Reimplemented in CIccTagSparseMatrixArray, CIccTagFixedNum< T, Tsig >, CIccTagNum< T, Tsig >, and CIccTagFloatNum< T, Tsig >.
Referenced by CIccArrayNamedColor::FindDeviceColor(), CIccArrayNamedColor::FindPcsColor(), CIccArrayNamedColor::FindSpectralColor(), CIccTagStruct::GetElemNumberValue(), CIccStructNamedColor::GetNumArray(), CIccMpeXmlTintArray::ParseXml(), and CIccMpeTintArray::Read().
|
inlinevirtualinherited |
Function: IsSupported(size, pIO) - Check if tag fully supported for apply purposes. By Default inherited classes are supported. Unknown tag types are not supported.
Returns true if tag type is supported.
Reimplemented in CIccTagUnknown, CIccTagEmbeddedProfile, and CIccTagMultiProcessElement.
|
inlinevirtualinherited |
Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function.
Parameter(s): none
Returns a new CIccTag object that is a copy of this object.
Reimplemented from CIccTag.
References CIccTagArray::CIccTagArray().
|
inlineinherited |
|
staticinherited |
|
virtual |
Implements CIccTagXml.
References CIccTag::Create(), CIccArrayCreator::GetArraySig(), IIccExtensionTag::GetExtClassName(), CIccTag::GetExtension(), icGetSigVal(), icGetTypeNameTagSig(), icXmlAttrValue(), icXmlFindAttr(), icXmlFindNode(), CIccTag::m_nReserved, CIccTagArray::m_nSize, CIccTagArray::m_TagVals, CIccTagXml::ParseXml(), CIccTagArray::SetSize(), and CIccTagArray::SetTagArrayType().
|
virtualinherited |
Name: CIccTagArray::Read
Purpose:
Args:
Return:
Reimplemented from CIccTag.
References CIccTagArray::Cleanup(), CIccTagCreator::CreateTag(), icSeekSet, CIccTag::m_nReserved, CIccTagArray::m_TagVals, icPositionNumber::offset, CIccTag::Read(), CIccIO::Read32(), CIccIO::Seek(), CIccTagArray::SetSize(), CIccTagArray::SetTagArrayType(), icPositionNumber::size, and CIccIO::Tell().
|
inlinevirtualinherited |
Function: Read(size, pIO) - Read tag from file. Each derived tag will implement it's own Read() function.
Parameter(s): size - number of bytes in tag including the type signature. pIO - IO object used to read in tag. The IO object should already be initialized to point to the begining of the tag.
Returns true if Read is successful.
Reimplemented in CIccTagEmbeddedProfile.
References CIccTag::Read().
|
inlinevirtualinherited |
Function: ReadAll() - Read All sub data for tag from file. Called by CIccProfile::ReadAll() to read all sub data for tag
Returns true if ReadAll is successful.
Reimplemented in CIccTagEmbeddedProfile.
|
inherited |
Name: CIccTagArray::SetSize
Purpose: Sets the size of the tag array.
Args: nSize - number of tag entries,
References icRealloc(), CIccTagArray::m_nSize, and CIccTagArray::m_TagVals.
Referenced by ParseXml(), and CIccTagArray::Read().
|
virtualinherited |
Name: CIccTagArray::~SetTagArrayType
Purpose: Set the signature of the tag array type. This also sets the m_pArray to allow array type specific handling to be utilized.
Args: sig - signature of array type
Return: true if sig is a recognized array type, false otherwise
References CIccArrayCreator::CreateArray(), icSigUtf8TextTypeArray, CIccTagArray::m_pArray, and CIccTagArray::m_sigArrayType.
Referenced by CIccTagArray::CIccTagArray(), ParseXml(), and CIccTagArray::Read().
|
virtual |
Implements CIccTagXml.
References CIccArrayCreator::GetArraySigName(), CIccTag::GetExtension(), CIccTag::GetType(), icFixXml(), icGetSigStr(), icGetTagSigTypeName(), CIccTagArray::m_nSize, CIccTagArray::m_sigArrayType, CIccTagArray::m_TagVals, and CIccTagXml::ToXml().
|
virtualinherited |
Name: CIccTagArray::Validate
Purpose:
Args:
Return:
Reimplemented from CIccTag.
References CIccInfo::GetSigPathName(), icGetFirstSigPathSig(), icGetMaterialColorSpaceSamples(), icGetSigPath(), icMaxStatus(), icMsgValidateCriticalError, icSigMaterialTypeArrayTag, icSigUtf8TextTypeArray, icValidateCriticalError, icValidateWarning, CIccTagArray::m_nSize, CIccTagArray::m_pArray, CIccTagArray::m_sigArrayType, CIccTagArray::m_TagVals, icHeader::mcs, CIccTag::Validate(), and IIccArray::Validate().
|
virtualinherited |
Name: CIccTagArray::Write
Purpose:
Args:
Return:
Reimplemented from CIccTag.
References CIccIO::Align32(), CIccTagArray::GetType(), icSeekSet, CIccTag::m_nReserved, CIccTagArray::m_nSize, CIccTagArray::m_sigArrayType, CIccTagArray::m_TagVals, icPositionNumber::offset, CIccIO::Seek(), icPositionNumber::size, CIccIO::Tell(), CIccTag::Write(), and CIccIO::Write32().
|
inherited |
Referenced by CIccTag::CIccTag(), CIccTagMultiProcessElement::CIccTagMultiProcessElement(), CIccTagMultiProcessElement::CIccTagMultiProcessElement(), CIccTagMultiProcessElement::operator=(), CIccProfileXml::ParseTag(), CIccTagXmlStruct::ParseTag(), CIccMpeXmlTintArray::ParseXml(), ParseXml(), CIccTagText::Read(), CIccTagUtf8Text::Read(), CIccTagZipUtf8Text::Read(), CIccTagUtf16Text::Read(), CIccTagTextDescription::Read(), CIccTagSignature::Read(), CIccTagNamedColor2::Read(), CIccTagXYZ::Read(), CIccTagChromaticity::Read(), CIccTagCicp::Read(), CIccTagSparseMatrixArray::Read(), CIccTagFixedNum< T, Tsig >::Read(), CIccTagNum< T, Tsig >::Read(), CIccTagFloatNum< T, Tsig >::Read(), CIccTagMeasurement::Read(), CIccTagMultiLocalizedUnicode::Read(), CIccTagData::Read(), CIccTagDateTime::Read(), CIccTagColorantOrder::Read(), CIccTagColorantTable::Read(), CIccTagViewingConditions::Read(), CIccTagProfileSeqDesc::Read(), CIccTagResponseCurveSet16::Read(), CIccTagSpectralDataInfo::Read(), CIccTagSpectralViewingConditions::Read(), CIccTagEmbeddedHeightImage::Read(), CIccTagEmbeddedNormalImage::Read(), CIccTagStruct::Read(), CIccTagArray::Read(), CIccTagDict::Read(), CIccTagCurve::Read(), CIccTagParametricCurve::Read(), CIccTagLutAtoB::Read(), CIccTagLut8::Read(), CIccTagLut16::Read(), CIccTagGamutBoundaryDesc::Read(), CIccTagMultiProcessElement::Read(), CIccTagProfileSequenceId::Read(), CIccTagEmbeddedProfile::Read(), CIccTag::Validate(), CIccTagText::Write(), CIccTagUtf8Text::Write(), CIccTagZipUtf8Text::Write(), CIccTagUtf16Text::Write(), CIccTagTextDescription::Write(), CIccTagSignature::Write(), CIccTagNamedColor2::Write(), CIccTagXYZ::Write(), CIccTagChromaticity::Write(), CIccTagCicp::Write(), CIccTagSparseMatrixArray::Write(), CIccTagFixedNum< T, Tsig >::Write(), CIccTagNum< T, Tsig >::Write(), CIccTagFloatNum< T, Tsig >::Write(), CIccTagMeasurement::Write(), CIccTagMultiLocalizedUnicode::Write(), CIccTagData::Write(), CIccTagDateTime::Write(), CIccTagColorantOrder::Write(), CIccTagColorantTable::Write(), CIccTagViewingConditions::Write(), CIccTagProfileSeqDesc::Write(), CIccTagResponseCurveSet16::Write(), CIccTagSpectralDataInfo::Write(), CIccTagSpectralViewingConditions::Write(), CIccTagEmbeddedHeightImage::Write(), CIccTagEmbeddedNormalImage::Write(), CIccTagStruct::Write(), CIccTagArray::Write(), CIccTagDict::Write(), CIccTagEmbeddedProfile::Write(), CIccTagCurve::Write(), CIccTagParametricCurve::Write(), CIccTagLutAtoB::Write(), CIccTagLut8::Write(), CIccTagLut16::Write(), CIccTagGamutBoundaryDesc::Write(), CIccTagMultiProcessElement::Write(), and CIccTagProfileSequenceId::Write().
|
protectedinherited |
Referenced by CIccTagArray::CIccTagArray(), CIccTagArray::CIccTagArray(), CIccTagArray::CIccTagArray(), CIccTagArray::AreAllOfType(), CIccTagArray::AttachTag(), CIccTagArray::Cleanup(), CIccTagArray::Describe(), CIccTagArray::DetachTag(), CIccTagArray::GetIndex(), CIccTagArray::GetSize(), CIccTagArray::operator=(), ParseXml(), CIccTagArray::SetSize(), ToXml(), CIccTagArray::Validate(), and CIccTagArray::Write().
|
protectedinherited |
|
protectedinherited |
Referenced by CIccTagArray::CIccTagArray(), CIccTagArray::CIccTagArray(), CIccTagArray::Cleanup(), CIccTagArray::Describe(), CIccTagArray::GetArrayHandler(), CIccTagArray::GetTagArrayType(), CIccTagArray::operator=(), CIccTagArray::SetTagArrayType(), ToXml(), CIccTagArray::Validate(), and CIccTagArray::Write().
|
protectedinherited |
Referenced by CIccTagArray::CIccTagArray(), CIccTagArray::CIccTagArray(), CIccTagArray::CIccTagArray(), CIccTagArray::AttachTag(), CIccTagArray::Cleanup(), CIccTagArray::Describe(), CIccTagArray::DetachTag(), CIccTagArray::GetIndex(), CIccTagArray::operator=(), ParseXml(), CIccTagArray::Read(), CIccTagArray::SetSize(), ToXml(), CIccTagArray::Validate(), and CIccTagArray::Write().