Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
Class: CIccTagDict. More...
#include <IccTagDict.h>
Public Member Functions | |
bool | AreNamesNonzero () const |
Name: CIccTagDict::AreNamesNonzero. | |
bool | AreNamesUnique () const |
Name: CIccTagDict::AreNamesUnique. | |
CIccTagDict () | |
Name: CIccTagDict::CIccTagDict. | |
CIccTagDict (const CIccTagDict &dict) | |
Name: CIccTagDict::CIccTagDict. | |
virtual void | Describe (std::string &sDescription, int nVerboseness) |
Name: CIccTagDict::Describe. | |
CIccDictEntry * | Get (const char *szName) const |
Name: CIccTagDict::Get. | |
CIccDictEntry * | Get (const icUInt16Number *szName) const |
Name: CIccTagDict::Get. | |
CIccDictEntry * | Get (std::wstring sName) const |
Name: CIccTagDict::Get. | |
virtual const icChar * | GetClassName () const |
CIccTagMultiLocalizedUnicode * | GetNameLocalized (const char *szName) const |
Name: CIccTagDict::GetNameLocalized. | |
CIccTagMultiLocalizedUnicode * | GetNameLocalized (const icUnicodeChar *szName) const |
Name: CIccTagDict::GetNameLocalized. | |
CIccTagMultiLocalizedUnicode * | GetNameLocalized (std::wstring sName) const |
Name: CIccTagDict::GetNameLocalized. | |
virtual icTagTypeSignature | GetType () const |
Function: GetType() | |
std::wstring | GetValue (const char *szName, bool *bIsSet=NULL) const |
Name: CIccTagDict::GetValue. | |
std::wstring | GetValue (const icUnicodeChar *szName, bool *bIsSet=NULL) const |
Name: CIccTagDict::GetValue. | |
std::wstring | GetValue (std::wstring sName, bool *bIsSet=NULL) const |
Name: CIccTagDict::GetValue. | |
CIccTagMultiLocalizedUnicode * | GetValueLocalized (const char *szName) const |
Name: CIccTagDict::GetValueLocalized. | |
CIccTagMultiLocalizedUnicode * | GetValueLocalized (const icUnicodeChar *szName) const |
Name: CIccTagDict::GetValueLocalized. | |
CIccTagMultiLocalizedUnicode * | GetValueLocalized (std::wstring sName) const |
Name: CIccTagDict::GetValueLocalized. | |
virtual CIccTag * | NewCopy () const |
Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function. | |
CIccTagDict & | operator= (const CIccTagDict &dict) |
Name: &operator=. | |
virtual bool | Read (icUInt32Number size, CIccIO *pIO) |
Name: CIccTagDict::Read. | |
bool | Remove (const char *szName) |
Name: CIccTagDict::Remove. | |
bool | Remove (const icUnicodeChar *szName) |
Name: CIccTagDict::Remove. | |
bool | Remove (std::wstring sName) |
Name: CIccTagDict::Remove. | |
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) |
Name: CIccTagDict::Set. | |
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 icValidateStatus | Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const |
Name: CIccTagDict::Validate. | |
virtual bool | Write (CIccIO *pIO) |
Name: CIccTagDict::Write. | |
virtual | ~CIccTagDict () |
Name: CIccTagDict::~CIccTagDict. | |
![]() | |
CIccTag () | |
Name: CIccTag::CIccTag. | |
virtual void | DetachIO () |
Function: ReadAll() - Read All sub data for tag from file. | |
virtual IIccExtensionTag * | GetExtension () |
virtual icArraySignature | GetTagArrayType () const |
virtual icStructSignature | GetTagStructType () const |
virtual bool | IsArrayType () |
virtual bool | IsMBBType () |
virtual bool | IsNumArrayType () const |
virtual bool | IsSupported () |
Function: IsSupported(size, pIO) - Check if tag fully supported for apply purposes. | |
virtual bool | Read (icUInt32Number size, CIccIO *pIO, CIccProfile *pProfile) |
Function: Read(size, pIO) - Read tag from file. | |
virtual bool | ReadAll () |
Function: ReadAll() - Read All sub data for tag from file. | |
virtual | ~CIccTag () |
Name: CIccTag::CIccTag. | |
Public Attributes | |
CIccNameValueDict * | m_Dict |
![]() | |
icUInt32Number | m_nReserved |
Protected Member Functions | |
void | Cleanup () |
Name: CIccTagDict::Cleanup. | |
icUInt32Number | MaxPosRecSize () |
Name: CIccTagDict::MaxPosRecSize;. | |
Protected Attributes | |
bool | m_bBadAlignment |
icUInt32Number | m_tagSize |
icUInt32Number | m_tagStart |
Additional Inherited Members | |
![]() | |
static CIccTag * | Create (icTagTypeSignature sig) |
Name: CIccTag::Create. | |
Class: CIccTagDict.
Purpose: A name-value dictionary tag with optional localization
Definition at line 160 of file IccTagDict.h.
CIccTagDict::CIccTagDict | ( | ) |
Name: CIccTagDict::CIccTagDict.
Purpose:
Args:
Return:
Definition at line 337 of file IccTagDict.cpp.
References m_bBadAlignment, m_Dict, m_tagSize, and m_tagStart.
CIccTagDict::CIccTagDict | ( | const CIccTagDict & | dict | ) |
Name: CIccTagDict::CIccTagDict.
Purpose:
Args:
Return:
Definition at line 355 of file IccTagDict.cpp.
References m_bBadAlignment, m_Dict, m_tagSize, m_tagStart, and CIccDictEntryPtr::ptr.
|
virtual |
Name: CIccTagDict::~CIccTagDict.
Purpose:
Args:
Return:
Definition at line 410 of file IccTagDict.cpp.
References Cleanup(), and m_Dict.
bool CIccTagDict::AreNamesNonzero | ( | ) | const |
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.
Definition at line 1007 of file IccTagDict.cpp.
References m_Dict.
Referenced by Validate().
bool CIccTagDict::AreNamesUnique | ( | ) | const |
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.
Definition at line 979 of file IccTagDict.cpp.
References m_Dict.
Referenced by Validate().
|
protected |
Name: CIccTagDict::Cleanup.
Purpose: Detach from a pending IO object
Definition at line 955 of file IccTagDict.cpp.
References m_Dict.
Referenced by operator=(), Read(), and ~CIccTagDict().
|
virtual |
Name: CIccTagDict::Describe.
Purpose:
Args:
Return:
Reimplemented from CIccTag.
Definition at line 454 of file IccTagDict.cpp.
References m_Dict.
CIccDictEntry * CIccTagDict::Get | ( | const char * | szName | ) | const |
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.
Definition at line 1081 of file IccTagDict.cpp.
Referenced by Get(), Get(), GetNameLocalized(), GetValue(), GetValueLocalized(), Set(), SetNameLocalized(), and SetValueLocalized().
CIccDictEntry * CIccTagDict::Get | ( | const icUInt16Number * | szName | ) | const |
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.
Definition at line 1058 of file IccTagDict.cpp.
CIccDictEntry * CIccTagDict::Get | ( | std::wstring | sName | ) | const |
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.
Definition at line 1033 of file IccTagDict.cpp.
References m_Dict.
|
inlinevirtual |
Reimplemented from CIccTag.
Reimplemented in CIccTagXmlDict.
Definition at line 170 of file IccTagDict.h.
CIccTagMultiLocalizedUnicode * CIccTagDict::GetNameLocalized | ( | const char * | szName | ) | const |
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
Definition at line 1221 of file IccTagDict.cpp.
References GetNameLocalized(), and szName.
CIccTagMultiLocalizedUnicode * CIccTagDict::GetNameLocalized | ( | const icUnicodeChar * | szName | ) | const |
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
Definition at line 1198 of file IccTagDict.cpp.
References GetNameLocalized(), and szName.
CIccTagMultiLocalizedUnicode * CIccTagDict::GetNameLocalized | ( | std::wstring | sName | ) | const |
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
Definition at line 1175 of file IccTagDict.cpp.
References Get(), and CIccDictEntry::GetNameLocalized().
Referenced by GetNameLocalized(), and GetNameLocalized().
|
inlinevirtual |
Function: GetType()
Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.
Reimplemented from CIccTag.
Definition at line 169 of file IccTagDict.h.
References icSigDictType.
Referenced by Write().
std::wstring CIccTagDict::GetValue | ( | const char * | szName, |
bool * | bIsSet = NULL ) const |
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.
Definition at line 1155 of file IccTagDict.cpp.
References GetValue(), and szName.
Referenced by GetValue(), and GetValue().
std::wstring CIccTagDict::GetValue | ( | const icUnicodeChar * | szName, |
bool * | bIsSet = NULL ) const |
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.
Definition at line 1133 of file IccTagDict.cpp.
References GetValue(), and szName.
std::wstring CIccTagDict::GetValue | ( | std::wstring | sName, |
bool * | bIsSet = NULL ) const |
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.
Definition at line 1101 of file IccTagDict.cpp.
References Get(), CIccDictEntry::GetValue(), and CIccDictEntry::IsValueSet().
CIccTagMultiLocalizedUnicode * CIccTagDict::GetValueLocalized | ( | const char * | szName | ) | const |
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
Definition at line 1288 of file IccTagDict.cpp.
References GetValueLocalized(), and szName.
CIccTagMultiLocalizedUnicode * CIccTagDict::GetValueLocalized | ( | const icUnicodeChar * | szName | ) | const |
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
Definition at line 1265 of file IccTagDict.cpp.
References GetValueLocalized(), and szName.
CIccTagMultiLocalizedUnicode * CIccTagDict::GetValueLocalized | ( | std::wstring | sName | ) | const |
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
Definition at line 1242 of file IccTagDict.cpp.
References Get(), and CIccDictEntry::GetValueLocalized().
Referenced by GetValueLocalized(), and GetValueLocalized().
|
protected |
Name: CIccTagDict::MaxPosRecSize;.
Purpose:
Args:
Return:
Definition at line 427 of file IccTagDict.cpp.
References m_Dict, and CIccDictEntry::PosRecSize().
Referenced by Write().
|
inlinevirtual |
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.
Definition at line 166 of file IccTagDict.h.
CIccTagDict & CIccTagDict::operator= | ( | const CIccTagDict & | dict | ) |
Name: &operator=.
Purpose:
Args:
Return:
Definition at line 381 of file IccTagDict.cpp.
References Cleanup(), m_Dict, and CIccDictEntryPtr::ptr.
|
virtual |
Name: CIccTagDict::Read.
Purpose:
Args:
Return:
Reimplemented from CIccTag.
Definition at line 491 of file IccTagDict.cpp.
References Cleanup(), CIccDictEntry::GetName(), icRealloc(), icSeekSet, icSigMultiLocalizedUnicodeType, m_bBadAlignment, m_Dict, CIccTag::m_nReserved, m_tagSize, 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(), sig, icPositionNumber::size, and CIccIO::Tell().
bool CIccTagDict::Remove | ( | const char * | szName | ) |
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
Definition at line 1363 of file IccTagDict.cpp.
References Remove(), and szName.
bool CIccTagDict::Remove | ( | const icUnicodeChar * | szName | ) |
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
Definition at line 1339 of file IccTagDict.cpp.
References Remove(), and szName.
bool CIccTagDict::Remove | ( | std::wstring | sName | ) |
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
Definition at line 1309 of file IccTagDict.cpp.
References m_Dict.
Referenced by Remove(), and Remove().
bool CIccTagDict::Set | ( | const char * | szName, |
const char * | szValue = NULL ) |
Definition at line 1429 of file IccTagDict.cpp.
Referenced by Set(), and Set().
bool CIccTagDict::Set | ( | const icUnicodeChar * | szName, |
const icUnicodeChar * | szValue = NULL ) |
Definition at line 1411 of file IccTagDict.cpp.
bool CIccTagDict::Set | ( | std::wstring | sName, |
std::wstring | sValue, | ||
bool | bUnSet = false ) |
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
Definition at line 1386 of file IccTagDict.cpp.
References Get(), CIccDictEntry::GetName(), CIccDictEntry::GetValue(), CIccDictEntry::IsValueSet(), m_Dict, CIccDictEntryPtr::ptr, CIccDictEntry::SetValue(), and CIccDictEntry::UnsetValue().
bool CIccTagDict::SetNameLocalized | ( | const char * | szName, |
CIccTagMultiLocalizedUnicode * | pTag ) |
Definition at line 1468 of file IccTagDict.cpp.
References SetNameLocalized(), and szName.
Referenced by SetNameLocalized(), and SetNameLocalized().
bool CIccTagDict::SetNameLocalized | ( | const icUnicodeChar * | szName, |
CIccTagMultiLocalizedUnicode * | pTag ) |
Definition at line 1459 of file IccTagDict.cpp.
References SetNameLocalized(), and szName.
bool CIccTagDict::SetNameLocalized | ( | std::wstring | sName, |
CIccTagMultiLocalizedUnicode * | pTag ) |
Definition at line 1443 of file IccTagDict.cpp.
References Get(), CIccDictEntry::GetName(), m_Dict, CIccDictEntryPtr::ptr, and CIccDictEntry::SetNameLocalized().
bool CIccTagDict::SetValueLocalized | ( | const char * | szName, |
CIccTagMultiLocalizedUnicode * | pTag ) |
Definition at line 1502 of file IccTagDict.cpp.
References SetValueLocalized(), and szName.
Referenced by SetValueLocalized(), and SetValueLocalized().
bool CIccTagDict::SetValueLocalized | ( | const icUnicodeChar * | szName, |
CIccTagMultiLocalizedUnicode * | pTag ) |
Definition at line 1493 of file IccTagDict.cpp.
References SetValueLocalized(), and szName.
bool CIccTagDict::SetValueLocalized | ( | std::wstring | sName, |
CIccTagMultiLocalizedUnicode * | pTag ) |
Definition at line 1477 of file IccTagDict.cpp.
References Get(), CIccDictEntry::GetName(), m_Dict, CIccDictEntryPtr::ptr, and CIccDictEntry::SetValueLocalized().
|
virtual |
Name: CIccTagDict::Validate.
Purpose:
Args:
Return:
Reimplemented from CIccTag.
Definition at line 914 of file IccTagDict.cpp.
References AreNamesNonzero(), AreNamesUnique(), CIccInfo::GetSigPathName(), icMaxStatus(), icMsgValidateWarning, icValidateWarning, m_bBadAlignment, and CIccTag::Validate().
|
virtual |
Name: CIccTagDict::Write.
Purpose:
Args:
Return:
Reimplemented from CIccTag.
Definition at line 790 of file IccTagDict.cpp.
References CIccIO::Align32(), GetType(), icSeekSet, m_Dict, CIccTag::m_nReserved, m_tagStart, MaxPosRecSize(), icPositionNumber::offset, icDictRecordPos::posName, icDictRecordPos::posNameLocalized, icDictRecordPos::posValue, icDictRecordPos::posValueLocalized, CIccIO::Seek(), sig, icPositionNumber::size, CIccIO::Tell(), CIccIO::Write16(), CIccIO::Write32(), and CIccIO::Write8().
|
protected |
Definition at line 217 of file IccTagDict.h.
Referenced by CIccTagDict(), CIccTagDict(), Read(), and Validate().
CIccNameValueDict* CIccTagDict::m_Dict |
Definition at line 214 of file IccTagDict.h.
Referenced by AreNamesNonzero(), AreNamesUnique(), CIccTagDict(), CIccTagDict(), Cleanup(), Describe(), Get(), MaxPosRecSize(), operator=(), Read(), Remove(), Set(), SetNameLocalized(), SetValueLocalized(), Write(), and ~CIccTagDict().
|
protected |
Definition at line 221 of file IccTagDict.h.
Referenced by CIccTagDict(), CIccTagDict(), and Read().
|
protected |
Definition at line 222 of file IccTagDict.h.
Referenced by CIccTagDict(), CIccTagDict(), Read(), and Write().