Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
Class: CIccTagStruct. More...
#include <IccTagComposite.h>
Public Member Functions | |
bool | AreElemsUnique () const |
Name: CIccTagStruct::AreElemsUnique. | |
bool | AttachElem (icSignature sig, CIccTag *pTag) |
Name: CIccTagStruct::AttachTag. | |
CIccTagStruct () | |
Name: CIccTagStruct::CIccTagStruct. | |
CIccTagStruct (const CIccTagStruct &lut) | |
Name: CIccTagStruct::CIccTagStruct. | |
bool | DeleteElem (icSignature sig) |
Name: CIccTagStruct::DeleteSubTag. | |
virtual void | Describe (std::string &sDescription, int nVerboseness) |
Name: CIccTagStruct::Describe. | |
CIccTag * | FindElem (icSignature sig) |
Name: CIccTagStruct::FindElem. | |
CIccTag * | FindElemOfType (icSignature sig, icTagTypeSignature sigType) |
Name: CIccTagStruct::FindElemOfType. | |
virtual const icChar * | GetClassName () const |
TagEntryList * | GetElemList () |
icFloatNumber | GetElemNumberValue (icSignature sig, icFloatNumber defaultValue=0) |
Name: CIccTagStruct::GetElemNumberValue. | |
IIccStruct * | GetStructHandler () |
Name: CIccTagStruct::GetStructHandler. | |
virtual icStructSignature | GetTagStructType () const |
virtual icTagTypeSignature | GetType () const |
Function: GetType() | |
virtual CIccTag * | NewCopy () const |
Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function. | |
CIccTagStruct & | operator= (const CIccTagStruct &lut) |
Name: &operator=. | |
virtual bool | Read (icUInt32Number size, CIccIO *pIO) |
Name: CIccTagStruct::Read. | |
virtual bool | SetTagStructType (icStructSignature sig) |
Name: CIccTagStruct::SetTagStructType. | |
virtual icValidateStatus | Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const |
Name: CIccTagStruct::Validate. | |
virtual bool | Write (CIccIO *pIO) |
Name: CIccTagStruct::Write. | |
virtual | ~CIccTagStruct () |
Name: CIccTagStruct::~CIccTagStruct. | |
![]() | |
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 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. | |
Static Public Member Functions | |
static std::string | GetElemName (icTagSignature sig, icStructSignature sigThis) |
static CIccTagStruct * | ParseMem (icUInt8Number *pMem, icUInt32Number size) |
Name: CIccTagStruct::ParseMem. | |
![]() | |
static CIccTag * | Create (icTagTypeSignature sig) |
Name: CIccTag::Create. | |
Protected Member Functions | |
void | Cleanup () |
Name: CIccTagStruct::Cleanup. | |
bool | DetachElem (CIccTag *pTag) |
Name: CIccTagStruct::DetachSubTag. | |
IccTagEntry * | GetElem (CIccTag *pTag) const |
Name: CIccTagStruct::GetElem. | |
IccTagEntry * | GetElem (icSignature sig) const |
Name: CIccTagStruct::GetElem. | |
bool | LoadElem (IccTagEntry *pTagEntry, CIccIO *pIO) |
Name: CIccTagStruct::LoadSubTag. | |
Protected Attributes | |
TagEntryList * | m_ElemEntries |
TagPtrList * | m_ElemVals |
IIccStruct * | m_pStruct |
icStructSignature | m_sigStructType |
icUInt32Number | m_tagSize |
icUInt32Number | m_tagStart |
Friends | |
class | IIccStruct |
Additional Inherited Members | |
![]() | |
icUInt32Number | m_nReserved |
Class: CIccTagStruct.
Purpose: The general purpose Tag Struct type tag
Definition at line 155 of file IccTagComposite.h.
CIccTagStruct::CIccTagStruct | ( | ) |
Name: CIccTagStruct::CIccTagStruct.
Purpose:
Args:
Return:
Definition at line 129 of file IccTagComposite.cpp.
References m_ElemEntries, m_ElemVals, and m_pStruct.
Referenced by ParseMem().
CIccTagStruct::CIccTagStruct | ( | const CIccTagStruct & | subTags | ) |
Name: CIccTagStruct::CIccTagStruct.
Purpose:
Args:
Return:
Definition at line 146 of file IccTagComposite.cpp.
References m_ElemEntries, m_ElemVals, m_pStruct, m_sigStructType, and IIccStruct::NewCopy().
|
virtual |
Name: CIccTagStruct::~CIccTagStruct.
Purpose:
Args:
Return:
Definition at line 237 of file IccTagComposite.cpp.
References Cleanup(), m_ElemEntries, m_ElemVals, and m_pStruct.
bool CIccTagStruct::AreElemsUnique | ( | ) | const |
Name: CIccTagStruct::AreElemsUnique.
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 615 of file IccTagComposite.cpp.
References m_ElemEntries.
Referenced by Validate().
bool CIccTagStruct::AttachElem | ( | icSignature | sig, |
CIccTag * | pTag ) |
Name: CIccTagStruct::AttachTag.
Purpose: Assign a tag object to a directory entry in the profile. This will assume ownership of the tag object.
Args: sig - signature of tag 'name' to use to assign tag object with, pTag - pointer to tag object to attach to profile.
Return: true = tag assigned to profile, false - tag not assigned to profile (tag already exists).
Definition at line 757 of file IccTagComposite.cpp.
References GetElem(), m_ElemEntries, m_ElemVals, and sig.
Referenced by icConvertEncodingProfile().
|
protected |
Name: CIccTagStruct::Cleanup.
Purpose: Detach from a pending IO object
Definition at line 559 of file IccTagComposite.cpp.
References icSigUndefinedStruct, m_ElemEntries, m_ElemVals, m_pStruct, and m_sigStructType.
Referenced by operator=(), Read(), and ~CIccTagStruct().
bool CIccTagStruct::DeleteElem | ( | icSignature | sig | ) |
Name: CIccTagStruct::DeleteSubTag.
Purpose: Delete tag directory entry with given signature. If no other tag directory entries use the tag object, the tag object will also be deleted.
Args: sig - signature of tag directory entry to remove
Return: true - desired tag directory entry was found and deleted, false - desired tag directory entry was not found
Definition at line 807 of file IccTagComposite.cpp.
References DetachElem(), GetElem(), m_ElemEntries, and sig.
Referenced by icConvertEncodingProfile().
|
virtual |
Name: CIccTagStruct::Describe.
Purpose:
Args:
Return:
Reimplemented from CIccTag.
Definition at line 308 of file IccTagComposite.cpp.
References CIccStructCreator::CreateStruct(), CIccStructUnknown::Describe(), IIccStruct::Describe(), CIccStructCreator::GetStructSigName(), m_pStruct, and m_sigStructType.
|
protected |
Name: CIccTagStruct::DetachSubTag.
Purpose: Remove association of a tag object from all tag directory entries. Associated tag directory entries will be removed from the tag directory. The tag object is NOT deleted from memory, but is considered to be no longer associated with the CIccTagStruct object. The caller assumes ownership of the tag object.
Args: pTag - pointer to tag object unassociated with the profile object
Return: true - tag object found and unassociated with profile object, false - tag object not found
Definition at line 932 of file IccTagComposite.cpp.
References m_ElemEntries, and m_ElemVals.
Referenced by DeleteElem().
CIccTag * CIccTagStruct::FindElem | ( | icSignature | sig | ) |
Name: CIccTagStruct::FindElem.
Purpose: Finds the tag object associated with the struct entry with the given signature.
Args: sig - element signature to find
Return: The desired tag object, or NULL if unable to find in the struct
Definition at line 672 of file IccTagComposite.cpp.
References GetElem(), and sig.
Referenced by GetElemNumberValue().
CIccTag * CIccTagStruct::FindElemOfType | ( | icSignature | sig, |
icTagTypeSignature | sigType ) |
Name: CIccTagStruct::FindElemOfType.
Purpose: Finds the tag object associated with the struct entry with the given signature that has a specific tag type.
Args: sig - element signature to find sigType - signature of desired tag type
Return: The desired tag object, or NULL if unable to find in the struct
Definition at line 698 of file IccTagComposite.cpp.
References GetElem(), and sig.
Referenced by CIccDefaultEncProfileConverter::ConvertFromParams(), and icGetParamFloatNum().
|
inlinevirtual |
Reimplemented from CIccTag.
Reimplemented in CIccTagXmlStruct.
Definition at line 172 of file IccTagComposite.h.
|
protected |
Name: CIccTagStruct::GetElem.
Purpose: Finds the first tag entry that points to the indicated tag object
Args: pTag - pointer to tag object desired to be found
Return: pointer to first tag struct entry that points to the desired tag object, or NULL if tag object is not pointed to by any tag struct entries.
Definition at line 645 of file IccTagComposite.cpp.
References m_ElemEntries.
|
protected |
Name: CIccTagStruct::GetElem.
Purpose: Get a tag entry with a given signature
Args: sig - signature id to find in tag structure
Return: Pointer to desired tag struct entry, or NULL if not found.
Definition at line 589 of file IccTagComposite.cpp.
References m_ElemEntries, and sig.
Referenced by AttachElem(), DeleteElem(), FindElem(), and FindElemOfType().
|
inline |
Definition at line 181 of file IccTagComposite.h.
Referenced by IIccStruct::Describe(), and icConvertEncodingProfile().
|
static |
icFloatNumber CIccTagStruct::GetElemNumberValue | ( | icSignature | sig, |
icFloatNumber | defaultValue = 0 ) |
Name: CIccTagStruct::GetElemNumberValue.
Purpose: Returns the number value associated with the first entry of a CIccTagNumberArray based tag with the given signature.
Args: sig - subtag signature to find defaultValue - value to use if the tag cannot be found, or is not a number tag
Return: The tags value or defaultValue if unable to find subtag in the struct or if the subtag is not a CIccTagNumberArray based tag.
Definition at line 726 of file IccTagComposite.cpp.
References FindElem(), CIccTagNumArray::GetValues(), CIccTag::IsNumArrayType(), and sig.
Referenced by CIccDefaultEncProfileConverter::ConvertFromParams().
IIccStruct * CIccTagStruct::GetStructHandler | ( | ) |
Name: CIccTagStruct::GetStructHandler.
Purpose: Get struct object handler
Args:
Return: Pointer to a IIccStruct object handler for the associated struct type
Definition at line 973 of file IccTagComposite.cpp.
References CIccStructCreator::CreateStruct(), m_pStruct, and m_sigStructType.
Referenced by icGetTagStructHandler(), and CIccArrayNamedColor::Validate().
|
inlinevirtual |
Reimplemented from CIccTag.
Definition at line 168 of file IccTagComposite.h.
Referenced by CIccDefaultEncProfileConverter::ConvertFromParams(), and IIccStruct::Describe().
|
inlinevirtual |
Function: GetType()
Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.
Reimplemented from CIccTag.
Definition at line 167 of file IccTagComposite.h.
References icSigTagStructType.
Referenced by Write().
|
protected |
Name: CIccTagStruct::LoadSubTag.
Purpose: This will load from the indicated IO object and associate a tag object to a tag directory entry. Nothing happens if tag directory entry is associated with a tag object.
Args: pTagEntry - pointer to tag directory entry, pIO - pointer to IO object to read tag object data from
Return: true - tag directory object associated with tag directory entry, false - failure
Definition at line 847 of file IccTagComposite.cpp.
References CIccTag::Create(), icSeekSet, m_ElemEntries, m_ElemVals, m_tagSize, m_tagStart, CIccTag::Read(), CIccIO::Read32(), and CIccIO::Seek().
Referenced by Read().
|
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 162 of file IccTagComposite.h.
CIccTagStruct & CIccTagStruct::operator= | ( | const CIccTagStruct & | subTags | ) |
Name: &operator=.
Purpose:
Args:
Return:
Definition at line 189 of file IccTagComposite.cpp.
References Cleanup(), m_ElemEntries, m_ElemVals, m_pStruct, m_sigStructType, and IIccStruct::NewCopy().
|
static |
Name: CIccTagStruct::ParseMem.
Purpose:
Args:
Return:
Definition at line 280 of file IccTagComposite.cpp.
References CIccMemIO::Attach(), CIccTagStruct(), and Read().
|
virtual |
Name: CIccTagStruct::Read.
Purpose:
Args:
Return:
Reimplemented from CIccTag.
Definition at line 346 of file IccTagComposite.cpp.
References Cleanup(), LoadElem(), m_ElemEntries, CIccTag::m_nReserved, m_tagSize, m_tagStart, CIccIO::Read32(), SetTagStructType(), sig, and CIccIO::Tell().
Referenced by ParseMem().
|
virtual |
Name: CIccTagStruct::SetTagStructType.
Purpose:
Args:
Return:
Definition at line 259 of file IccTagComposite.cpp.
References CIccStructCreator::CreateStruct(), m_pStruct, m_sigStructType, and sig.
Referenced by Read().
|
virtual |
Name: CIccTagStruct::Validate.
Purpose:
Args:
Return:
Reimplemented from CIccTag.
Definition at line 519 of file IccTagComposite.cpp.
References AreElemsUnique(), CIccInfo::GetSigPathName(), icGetSigPath(), icMaxStatus(), icMsgValidateWarning, icValidateWarning, m_ElemEntries, m_pStruct, CIccTag::Validate(), and IIccStruct::Validate().
|
virtual |
Name: CIccTagStruct::Write.
Purpose:
Args:
Return:
Reimplemented from CIccTag.
Definition at line 425 of file IccTagComposite.cpp.
References CIccIO::Align32(), CIccIO::GetLength(), GetType(), icSeekSet, m_ElemEntries, CIccTag::m_nReserved, m_sigStructType, m_tagStart, CIccIO::Seek(), sig, CIccIO::Tell(), and CIccIO::Write32().
|
friend |
Definition at line 157 of file IccTagComposite.h.
|
protected |
Definition at line 212 of file IccTagComposite.h.
Referenced by AreElemsUnique(), AttachElem(), CIccTagStruct(), CIccTagStruct(), Cleanup(), DeleteElem(), DetachElem(), GetElem(), GetElem(), IIccStruct::getTagEntries(), LoadElem(), operator=(), Read(), Validate(), Write(), and ~CIccTagStruct().
|
protected |
Definition at line 214 of file IccTagComposite.h.
Referenced by AttachElem(), CIccTagStruct(), CIccTagStruct(), Cleanup(), DetachElem(), LoadElem(), operator=(), and ~CIccTagStruct().
|
protected |
Definition at line 198 of file IccTagComposite.h.
Referenced by CIccTagStruct(), CIccTagStruct(), Cleanup(), Describe(), GetStructHandler(), operator=(), SetTagStructType(), Validate(), and ~CIccTagStruct().
|
protected |
Definition at line 207 of file IccTagComposite.h.
Referenced by CIccTagStruct(), Cleanup(), Describe(), GetStructHandler(), operator=(), SetTagStructType(), and Write().
|
protected |
Definition at line 210 of file IccTagComposite.h.
Referenced by LoadElem(), and Read().
|
protected |
Definition at line 209 of file IccTagComposite.h.
Referenced by LoadElem(), Read(), and Write().