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

#include <IccTagXml.h>

+ Inheritance diagram for CIccTagXmlColorantOrder:
+ Collaboration diagram for CIccTagXmlColorantOrder:

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 ~CIccTagXmlColorantOrder ()
 
- Public Member Functions inherited from CIccTagColorantOrder
 CIccTagColorantOrder (const CIccTagColorantOrder &ITCO)
 Name: CIccTagColorantOrder::CIccTagColorantOrder.
 
 CIccTagColorantOrder (int nsize=1)
 Name: CIccTagColorantOrder::CIccTagColorantOrder.
 
virtual void Describe (std::string &sDescription, int nVerboseness)
 Name: CIccTagColorantOrder::Describe.
 
icUInt8NumberGetData (int index)
 
icUInt32Number GetSize () const
 
virtual icTagTypeSignature GetType () const
 Function: GetType()
 
virtual CIccTagNewCopy () const
 Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function.
 
CIccTagColorantOrderoperator= (const CIccTagColorantOrder &ColorantOrderTag)
 Name: CIccTagColorantOrder::operator=.
 
icUInt8Numberoperator[] (int index)
 
virtual bool Read (icUInt32Number size, CIccIO *pIO)
 Name: CIccTagColorantOrder::Read.
 
bool SetSize (icUInt16Number nsize, bool bZeronew=true)
 Name: CIccTagColorantOrder::SetSize.
 
virtual icValidateStatus Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const
 Name: CIccTagColorantOrder::Validate.
 
virtual bool Write (CIccIO *pIO)
 Name: CIccTagColorantOrder::Write.
 
virtual ~CIccTagColorantOrder ()
 Name: CIccTagColorantOrder::~CIccTagColorantOrder.
 
- 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 CIccTag
icUInt32Number m_nReserved
 
- Protected Attributes inherited from CIccTagColorantOrder
icUInt32Number m_nCount
 
icUInt8Numberm_pData
 

Detailed Description

Definition at line 396 of file IccTagXml.h.

Constructor & Destructor Documentation

◆ ~CIccTagXmlColorantOrder()

virtual CIccTagXmlColorantOrder::~CIccTagXmlColorantOrder ( )
inlinevirtual

Definition at line 399 of file IccTagXml.h.

399{}

Member Function Documentation

◆ GetClassName()

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

Reimplemented from CIccTagColorantOrder.

Definition at line 401 of file IccTagXml.h.

401{return "CIccTagXmlColorantOrder"; }

◆ GetExtension()

virtual IIccExtensionTag * CIccTagXmlColorantOrder::GetExtension ( )
inlinevirtual

Reimplemented from CIccTag.

Definition at line 403 of file IccTagXml.h.

403{return this; }

◆ ParseXml()

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

Implements CIccTagXml.

Definition at line 1789 of file IccTagXml.cpp.

1790{
1791 pNode = icXmlFindNode(pNode, "ColorantOrder");
1792
1793 if (pNode) {
1794 int n = icXmlNodeCount(pNode->children, "n");
1795
1796 if (n) {
1797 SetSize(n);
1798
1799 if (m_pData) {
1800 if (CIccUInt8Array::ParseArray(m_pData, n, pNode->children))
1801 return true;
1802 }
1803 }
1804 }
1805 return false;
1806}
icUInt32Number icXmlNodeCount(xmlNode *pNode, const char *szNodeName)
xmlNode * icXmlFindNode(xmlNode *pNode, const char *szNodeName)
bool SetSize(icUInt16Number nsize, bool bZeronew=true)
Name: CIccTagColorantOrder::SetSize.
icUInt8Number * m_pData
static bool ParseArray(T *buf, icUInt32Number nBufSize, xmlNode *pNode)

References icXmlFindNode(), icXmlNodeCount(), and CIccXmlArrayType< T, Tsig >::ParseArray().

+ Here is the call graph for this function:

◆ ToXml()

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

Implements CIccTagXml.

Definition at line 1773 of file IccTagXml.cpp.

1774{
1775 char buf[40];
1776 int i;
1777
1778 xml += blanks + "<ColorantOrder>\n"; //+ blanks + " ";
1779 for (i=0; i<(int)m_nCount; i++) {
1780 sprintf(buf, " <n>%d</n>\n", m_pData[i]);
1781 xml += blanks + buf;
1782 }
1783
1784 xml += blanks + "</ColorantOrder>\n";
1785
1786 return true;
1787}
icUInt32Number m_nCount

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