Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
Loading...
Searching...
No Matches
CIccTagXmlProfileSeqDesc Class Reference

#include <IccTagXml.h>

+ Inheritance diagram for CIccTagXmlProfileSeqDesc:
+ Collaboration diagram for CIccTagXmlProfileSeqDesc:

Public Member Functions

virtual const char * GetClassName () const
 
virtual IIccExtensionTagGetExtension ()
 
virtual bool ParseXml (xmlNode *pNode, std::string &parseStr)
 
virtual bool ToXml (std::string &xml, std::string blanks="")
 
virtual ~CIccTagXmlProfileSeqDesc ()
 
- Public Member Functions inherited from CIccTagProfileSeqDesc
 CIccTagProfileSeqDesc ()
 Name: CIccTagProfileSeqDesc::CIccTagProfileSeqDesc.
 
 CIccTagProfileSeqDesc (const CIccTagProfileSeqDesc &ITPSD)
 Name: CIccTagProfileSeqDesc::CIccTagProfileSeqDesc.
 
virtual void Describe (std::string &sDescription, int nVerboseness)
 Name: CIccTagProfileSeqDesc::Describe.
 
virtual icTagTypeSignature GetType () const
 Function: GetType()
 
virtual CIccTagNewCopy () const
 Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function.
 
CIccTagProfileSeqDescoperator= (const CIccTagProfileSeqDesc &ProfSeqDescTag)
 Name: CIccTagProfileSeqDesc::operator=.
 
virtual bool Read (icUInt32Number size, CIccIO *pIO)
 Name: CIccTagProfileSeqDesc::Read.
 
virtual icValidateStatus Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const
 Name: CIccTagProfileSeqDesc::Validate.
 
virtual bool Write (CIccIO *pIO)
 Name: CIccTagProfileSeqDesc::Write.
 
virtual ~CIccTagProfileSeqDesc ()
 Name: CIccTagProfileSeqDesc::~CIccTagProfileSeqDesc.
 
- Public Member Functions inherited from CIccTag
 CIccTag ()
 Name: CIccTag::CIccTag.
 
virtual void DetachIO ()
 Function: ReadAll() - Read All sub data for tag from file.
 
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 Member Functions inherited from CIccTagXml
virtual const char * GetExtClassName () const
 
virtual const char * GetExtDerivedClassName () const
 
virtual ~CIccTagXml (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from CIccTag
static CIccTagCreate (icTagTypeSignature sig)
 Name: CIccTag::Create.
 
- Public Attributes inherited from CIccTagProfileSeqDesc
CIccProfileSeqDescm_Descriptions
 
- Public Attributes inherited from CIccTag
icUInt32Number m_nReserved
 

Detailed Description

Definition at line 461 of file IccTagXml.h.

Constructor & Destructor Documentation

◆ ~CIccTagXmlProfileSeqDesc()

virtual CIccTagXmlProfileSeqDesc::~CIccTagXmlProfileSeqDesc ( )
inlinevirtual

Definition at line 464 of file IccTagXml.h.

464{}

Member Function Documentation

◆ GetClassName()

virtual const char * CIccTagXmlProfileSeqDesc::GetClassName ( ) const
inlinevirtual

Reimplemented from CIccTagProfileSeqDesc.

Definition at line 466 of file IccTagXml.h.

466{return "CIccTagXmlProfileSeqDesc"; }

◆ GetExtension()

virtual IIccExtensionTag * CIccTagXmlProfileSeqDesc::GetExtension ( )
inlinevirtual

Reimplemented from CIccTag.

Definition at line 468 of file IccTagXml.h.

468{return this; }

◆ ParseXml()

bool CIccTagXmlProfileSeqDesc::ParseXml ( xmlNode * pNode,
std::string & parseStr )
virtual

Implements CIccTagXml.

Definition at line 2357 of file IccTagXml.cpp.

2358{
2359 pNode = icXmlFindNode(pNode, "ProfileSequence");
2360
2361 if (!m_Descriptions)
2362 return false;
2363
2364 m_Descriptions->clear();
2365
2366 if (pNode) {
2367 for (pNode = pNode->children; pNode; pNode=pNode->next) {
2368 if (pNode->type==XML_ELEMENT_NODE && !icXmlStrCmp(pNode->name, "ProfileDesc")) {
2369 CIccProfileDescStruct ProfileDescStruct;
2370
2371 if (!icXmlParseProfDesc(pNode, ProfileDescStruct, parseStr))
2372 return false;
2373
2374 m_Descriptions->push_back(ProfileDescStruct);
2375 }
2376 }
2377 }
2378 return true;
2379}
bool icXmlParseProfDesc(xmlNode *pNode, CIccProfileDescStruct &p, std::string &parseStr)
xmlNode * icXmlFindNode(xmlNode *pNode, const char *szNodeName)
#define icXmlStrCmp(x, y)
Definition IccUtilXml.h:134
Data Class: CIccProfileDescStruct.
CIccProfileSeqDesc * m_Descriptions

References icXmlFindNode(), icXmlParseProfDesc(), and icXmlStrCmp.

+ Here is the call graph for this function:

◆ ToXml()

bool CIccTagXmlProfileSeqDesc::ToXml ( std::string & xml,
std::string blanks = "" )
virtual

Implements CIccTagXml.

Definition at line 2341 of file IccTagXml.cpp.

2342{
2343 CIccProfileSeqDesc::iterator i;
2344 if (!m_Descriptions)
2345 return false;
2346
2347 xml += blanks + "<ProfileSequence>\n";
2348 for (i=m_Descriptions->begin(); i!=m_Descriptions->end(); i++) {
2349 if (!icProfDescToXml(xml, *i, blanks + " "))
2350 return false;
2351 }
2352 xml += blanks + "</ProfileSequence>\n";
2353 return true;
2354}
bool icProfDescToXml(std::string &xml, CIccProfileDescStruct &p, std::string blanks="")

References icProfDescToXml().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: