IccMAX 2.1.27
Color Profile Tools
|
#include <IccTagXml.h>
Public Member Functions | |
virtual | ~CIccTagXmlDict () |
bool | AreNamesNonzero () const |
bool | AreNamesUnique () const |
virtual void | Describe (std::string &sDescription, int nVerboseness) |
virtual void | DetachIO () |
CIccDictEntry * | Get (const char *szName) const |
CIccDictEntry * | Get (const icUInt16Number *szName) const |
CIccDictEntry * | Get (std::wstring sName) const |
virtual const char * | GetClassName () const |
virtual const char * | GetExtClassName () const |
virtual const char * | GetExtDerivedClassName () const |
virtual IIccExtensionTag * | GetExtension () |
CIccTagMultiLocalizedUnicode * | GetNameLocalized (const char *szName) const |
CIccTagMultiLocalizedUnicode * | GetNameLocalized (const icUnicodeChar *szName) const |
CIccTagMultiLocalizedUnicode * | GetNameLocalized (std::wstring sName) const |
virtual icArraySignature | GetTagArrayType () const |
virtual icStructSignature | GetTagStructType () const |
virtual icTagTypeSignature | GetType () const |
std::wstring | GetValue (const char *szName, bool *bIsSet=NULL) const |
std::wstring | GetValue (const icUnicodeChar *szName, bool *bIsSet=NULL) const |
std::wstring | GetValue (std::wstring sName, bool *bIsSet=NULL) const |
CIccTagMultiLocalizedUnicode * | GetValueLocalized (const char *szName) const |
CIccTagMultiLocalizedUnicode * | GetValueLocalized (const icUnicodeChar *szName) const |
CIccTagMultiLocalizedUnicode * | GetValueLocalized (std::wstring sName) const |
virtual bool | IsArrayType () |
virtual bool | IsMBBType () |
virtual bool | IsNumArrayType () const |
virtual bool | IsSupported () |
virtual CIccTag * | NewCopy () 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 | Remove (const char *szName) |
bool | Remove (const icUnicodeChar *szName) |
bool | Remove (std::wstring sName) |
bool | Set (const char *szName, const char *szValue=NULL) |
bool | Set (const icUnicodeChar *szName, const icUnicodeChar *szValue=NULL) |
bool | Set (std::wstring sName, std::wstring sValue, bool bUnSet=false) |
bool | SetNameLocalized (const char *szName, CIccTagMultiLocalizedUnicode *pTag) |
bool | SetNameLocalized (const icUnicodeChar *szName, CIccTagMultiLocalizedUnicode *pTag) |
bool | SetNameLocalized (std::wstring sName, CIccTagMultiLocalizedUnicode *pTag) |
bool | SetValueLocalized (const char *szName, CIccTagMultiLocalizedUnicode *pTag) |
bool | SetValueLocalized (const icUnicodeChar *szName, CIccTagMultiLocalizedUnicode *pTag) |
bool | SetValueLocalized (std::wstring sName, CIccTagMultiLocalizedUnicode *pTag) |
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) |
Data Fields | |
CIccNameValueDict * | m_Dict |
icUInt32Number | m_nReserved |
Protected Member Functions | |
void | Cleanup () |
icUInt32Number | MaxPosRecSize () |
Protected Attributes | |
bool | m_bBadAlignment |
icUInt32Number | m_tagSize |
icUInt32Number | m_tagStart |
|
inlinevirtual |
|
inherited |
Name: CIccTagDict::AreNamesNonzero
Purpose: For each tag it checks to see if any other tags have the same signature.
Return: true if all tags have unique signatures, or false if there are duplicate tag signatures.
References CIccDictEntry::GetName(), CIccTagDict::m_Dict, and CIccDictEntryPtr::ptr.
Referenced by CIccTagDict::Validate().
|
inherited |
Name: CIccTagDict::AreNamesUnique
Purpose: For each tag it checks to see if any other tags have the same signature.
Return: true if all tags have unique signatures, or false if there are duplicate tag signatures.
References CIccDictEntry::GetName(), CIccTagDict::m_Dict, and CIccDictEntryPtr::ptr.
Referenced by CIccTagDict::Validate().
|
protectedinherited |
Name: CIccTagDict::Cleanup
Purpose: Detach from a pending IO object
References CIccTagDict::m_Dict, and CIccDictEntryPtr::ptr.
Referenced by CIccTagDict::~CIccTagDict(), CIccTagDict::operator=(), and CIccTagDict::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(), CIccTagXmlArray::ParseXml(), CIccMpeTintArray::Read(), CIccTagLutAtoB::Read(), CIccTagLut8::Read(), CIccTagLut16::Read(), CIccTagLut8::SetColorSpaces(), CIccTagLut16::SetColorSpaces(), and CIccProfileDescText::SetType().
|
virtualinherited |
Name: CIccTagDict::Describe
Purpose:
Args:
Return:
Reimplemented from CIccTag.
References CIccDictEntry::Describe(), CIccTagDict::m_Dict, and CIccDictEntryPtr::ptr.
|
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: CIccTagDict::Get
Purpose: Get a dictionary entry with a given name
Args: sName - name to find in dictionary
Return: Pointer to desired dictionary entry, or NULL if not found.
References CIccTagDict::Get().
|
inherited |
Name: CIccTagDict::Get
Purpose: Get a dictionary entry with a given name
Args: sName - name to find in dictionary
Return: Pointer to desired dictionary entry, or NULL if not found.
References CIccTagDict::Get().
|
inherited |
Name: CIccTagDict::Get
Purpose: Get a dictionary entry with a given name
Args: sName - name to find in dictionary
Return: Pointer to desired dictionary entry, or NULL if not found.
References CIccDictEntry::GetName(), CIccTagDict::m_Dict, and CIccDictEntryPtr::ptr.
Referenced by CIccTagDict::Get(), CIccTagDict::Get(), CIccTagDict::GetNameLocalized(), CIccTagDict::GetValue(), CIccTagDict::GetValueLocalized(), CIccTagDict::Set(), CIccTagDict::SetNameLocalized(), and CIccTagDict::SetValueLocalized().
|
inlinevirtual |
Reimplemented from CIccTagDict.
|
inlinevirtualinherited |
Implements IIccExtensionTag.
Referenced by icProfDescToXml(), and icXmlParseProfDesc().
|
inlinevirtualinherited |
|
inlinevirtual |
Reimplemented from CIccTag.
|
inherited |
Name: CIccTagDict::GetNameLocalized
Purpose: Get a localized name information associated with a given name
Args: sName - name to find in dictionary
Return: localized information for name
References CIccTagDict::GetNameLocalized().
|
inherited |
Name: CIccTagDict::GetNameLocalized
Purpose: Get a localized name information associated with a given name
Args: sName - name to find in dictionary
Return: localized information for name
References CIccTagDict::GetNameLocalized().
|
inherited |
Name: CIccTagDict::GetNameLocalized
Purpose: Get a localized name information associated with a given name
Args: sName - name to find in dictionary
Return: localized information for name
References CIccTagDict::Get(), and CIccDictEntry::GetNameLocalized().
Referenced by CIccTagDict::GetNameLocalized(), and CIccTagDict::GetNameLocalized().
|
inlinevirtualinherited |
Reimplemented in CIccTagArray.
References icSigUndefinedArray.
Referenced by icGetTagArrayHandlerOfType(), and CIccProfileXml::ParseTag().
|
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 icSigDictType.
Referenced by CIccTagDict::Write().
|
inherited |
Name: CIccTagDict::GetValue
Purpose: Get a value associated with a given name
Args: szName - name to find in dictionary
Return: Pointer to desired dictionary entry, or NULL if not found.
References CIccTagDict::GetValue().
|
inherited |
Name: CIccTagDict::GetValue
Purpose: Get a value associated with a given name
Args: szName - name to find in dictionary
Return: Pointer to desired dictionary entry, or NULL if not found.
References CIccTagDict::GetValue().
|
inherited |
Name: CIccTagDict::GetValue
Purpose: Get a value associated with a given name
Args: sName - name to find in dictionary
Return: Pointer to desired dictionary entry, or NULL if not found.
References CIccTagDict::Get(), CIccDictEntry::GetValue(), and CIccDictEntry::IsValueSet().
Referenced by CIccTagDict::GetValue(), and CIccTagDict::GetValue().
|
inherited |
Name: CIccTagDict::GetValueLocalized
Purpose: Get a localized name information for value associated with a given name
Args: sName - name to find in dictionary
Return: localized information for name's value
References CIccTagDict::GetValueLocalized().
|
inherited |
Name: CIccTagDict::GetValueLocalized
Purpose: Get a localized name information for value associated with a given name
Args: sName - name to find in dictionary
Return: localized information for name's value
References CIccTagDict::GetValueLocalized().
|
inherited |
Name: CIccTagDict::GetValueLocalized
Purpose: Get a localized name information for value associated with a given name
Args: sName - name to find in dictionary
Return: localized information for name's value
References CIccTagDict::Get(), and CIccDictEntry::GetValueLocalized().
Referenced by CIccTagDict::GetValueLocalized(), and CIccTagDict::GetValueLocalized().
|
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.
|
protectedinherited |
Name: CIccTagDict::MaxPosRecSize;
Purpose:
Args:
Return:
References CIccTagDict::m_Dict, CIccDictEntry::PosRecSize(), and CIccDictEntryPtr::ptr.
Referenced by CIccTagDict::Write().
|
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 CIccTagDict::CIccTagDict().
|
virtual |
Implements CIccTagXml.
References CIccDictEntry::CIccDictEntry(), CIccTagMultiLocalizedUnicode::CIccTagMultiLocalizedUnicode(), CIccUTF16String::CIccUTF16String(), CIccUTF16String::c_str(), CIccDictEntry::GetName(), CIccDictEntry::GetNameLocalized(), CIccDictEntry::GetValueLocalized(), icGetSigVal(), icXmlAttrValue(), icXmlAttrValue(), icXmlFindAttr(), icXmlFindNode(), CIccTagDict::m_Dict, CIccUTF16String::operator=(), CIccDictEntryPtr::ptr, CIccDictEntry::SetNameLocalized(), CIccTagMultiLocalizedUnicode::SetText(), CIccTagMultiLocalizedUnicode::SetText(), CIccDictEntry::SetValue(), CIccDictEntry::SetValueLocalized(), and CIccUTF16String::ToWString().
|
virtualinherited |
Name: CIccTagDict::Read
Purpose:
Args:
Return:
Reimplemented from CIccTag.
References CIccDictEntry::CIccDictEntry(), CIccTagMultiLocalizedUnicode::CIccTagMultiLocalizedUnicode(), CIccTagDict::Cleanup(), CIccDictEntry::GetName(), icRealloc(), icSeekSet, icSigMultiLocalizedUnicodeType, CIccTagDict::m_bBadAlignment, CIccTagDict::m_Dict, CIccTag::m_nReserved, CIccTagDict::m_tagSize, CIccTagDict::m_tagStart, icPositionNumber::offset, icDictRecordPos::posName, icDictRecordPos::posNameLocalized, icDictRecordPos::posValue, icDictRecordPos::posValueLocalized, CIccDictEntryPtr::ptr, CIccTagMultiLocalizedUnicode::Read(), CIccIO::Read16(), CIccIO::Read32(), CIccIO::Seek(), CIccDictEntry::SetNameLocalized(), CIccDictEntry::SetValue(), CIccDictEntry::SetValueLocalized(), 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: CIccTagDict::Remove
Purpose: Remove a name value pair from the dictionary
Args: sName = the name to look for in the dictionary
Return: true if sName exists and was remove , or false otherwise
References CIccTagDict::Remove().
|
inherited |
Name: CIccTagDict::Remove
Purpose: Remove a name value pair from the dictionary
Args: sName = the name to look for in the dictionary
Return: true if sName exists and was remove , or false otherwise
References CIccTagDict::Remove().
|
inherited |
Name: CIccTagDict::Remove
Purpose: Remove a name value pair from the dictionary
Args: sName = the name to look for in the dictionary
Return: true if sName exists and was removed, or false otherwise
References CIccDictEntry::GetName(), CIccTagDict::m_Dict, and CIccDictEntryPtr::ptr.
Referenced by CIccTagDict::Remove(), and CIccTagDict::Remove().
|
inherited |
References CIccTagDict::Set().
|
inherited |
References CIccTagDict::Set().
|
inherited |
Name: CIccTagDict::Set
Purpose: Associate a value with a name in the dictionary
Args: sName = the name to look for in the dictionary sValue = value to associate with sName bUnset = flag to indicate that value has not been set (no data for value in tag)
Return: true if value associate with sName was changed, or false if no change
References CIccTagDict::Get(), CIccDictEntry::GetName(), CIccDictEntry::GetValue(), CIccDictEntry::IsValueSet(), CIccTagDict::m_Dict, CIccDictEntryPtr::ptr, CIccDictEntry::SetValue(), and CIccDictEntry::UnsetValue().
Referenced by CIccTagDict::Set(), and CIccTagDict::Set().
|
inherited |
References CIccTagDict::SetNameLocalized().
|
inherited |
References CIccTagDict::SetNameLocalized().
|
inherited |
References CIccTagDict::Get(), CIccDictEntry::GetName(), CIccTagDict::m_Dict, CIccDictEntryPtr::ptr, and CIccDictEntry::SetNameLocalized().
Referenced by CIccTagDict::SetNameLocalized(), and CIccTagDict::SetNameLocalized().
|
inherited |
References CIccTagDict::SetValueLocalized().
|
inherited |
References CIccTagDict::SetValueLocalized().
|
inherited |
References CIccTagDict::Get(), CIccDictEntry::GetName(), CIccTagDict::m_Dict, CIccDictEntryPtr::ptr, and CIccDictEntry::SetValueLocalized().
Referenced by CIccTagDict::SetValueLocalized(), and CIccTagDict::SetValueLocalized().
|
virtual |
Implements CIccTagXml.
References CIccLocalizedUnicode::GetBuf(), CIccLocalizedUnicode::GetLength(), CIccDictEntry::GetName(), CIccDictEntry::GetNameLocalized(), CIccDictEntry::GetValue(), CIccDictEntry::GetValueLocalized(), icFixXml(), icGetSigStr(), icUtf16ToUtf8(), CIccDictEntry::IsValueSet(), CIccTagDict::m_Dict, CIccLocalizedUnicode::m_nCountryCode, CIccLocalizedUnicode::m_nLanguageCode, CIccTagMultiLocalizedUnicode::m_Strings, and CIccDictEntryPtr::ptr.
|
virtualinherited |
Name: CIccTagDict::Validate
Purpose:
Args:
Return:
Reimplemented from CIccTag.
References CIccTagDict::AreNamesNonzero(), CIccTagDict::AreNamesUnique(), CIccInfo::GetSigPathName(), icMaxStatus(), icMsgValidateWarning, icValidateWarning, CIccTagDict::m_bBadAlignment, and CIccTag::Validate().
|
virtualinherited |
Name: CIccTagDict::Write
Purpose:
Args:
Return:
Reimplemented from CIccTag.
References CIccIO::Align32(), CIccDictEntry::GetName(), CIccDictEntry::GetNameLocalized(), CIccTagDict::GetType(), CIccDictEntry::GetValueLocalized(), icSeekSet, CIccDictEntry::IsValueSet(), CIccTagDict::m_Dict, CIccTag::m_nReserved, CIccTagDict::m_tagStart, CIccTagDict::MaxPosRecSize(), icPositionNumber::offset, icDictRecordPos::posName, icDictRecordPos::posNameLocalized, icDictRecordPos::posValue, icDictRecordPos::posValueLocalized, CIccDictEntryPtr::ptr, CIccIO::Seek(), icPositionNumber::size, CIccIO::Tell(), CIccDictEntry::ValueBegin(), CIccDictEntry::ValueEnd(), CIccTagMultiLocalizedUnicode::Write(), CIccIO::Write16(), CIccIO::Write32(), and CIccIO::Write8().
|
protectedinherited |
Referenced by CIccTagDict::CIccTagDict(), CIccTagDict::CIccTagDict(), CIccTagDict::Read(), and CIccTagDict::Validate().
|
inherited |
Referenced by CIccTagDict::CIccTagDict(), CIccTagDict::CIccTagDict(), CIccTagDict::~CIccTagDict(), CIccTagDict::AreNamesNonzero(), CIccTagDict::AreNamesUnique(), CIccTagDict::Cleanup(), CIccTagDict::Describe(), CIccTagDict::Get(), CIccTagDict::MaxPosRecSize(), CIccTagDict::operator=(), ParseXml(), CIccTagDict::Read(), CIccTagDict::Remove(), CIccTagDict::Set(), CIccTagDict::SetNameLocalized(), CIccTagDict::SetValueLocalized(), ToXml(), and CIccTagDict::Write().
|
inherited |
Referenced by CIccTag::CIccTag(), CIccTagMultiProcessElement::CIccTagMultiProcessElement(), CIccTagMultiProcessElement::CIccTagMultiProcessElement(), CIccTagMultiProcessElement::operator=(), CIccProfileXml::ParseTag(), CIccTagXmlStruct::ParseTag(), CIccMpeXmlTintArray::ParseXml(), CIccTagXmlArray::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 CIccTagDict::CIccTagDict(), CIccTagDict::CIccTagDict(), and CIccTagDict::Read().
|
protectedinherited |
Referenced by CIccTagDict::CIccTagDict(), CIccTagDict::CIccTagDict(), CIccTagDict::Read(), and CIccTagDict::Write().