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

#include <IccTagXml.h>

+ Inheritance diagram for CIccTagXmlCicp:
+ Collaboration diagram for CIccTagXmlCicp:

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 ~CIccTagXmlCicp ()
 
- Public Member Functions inherited from CIccTagCicp
 CIccTagCicp ()
 Name: CIccTagCicp::CIccTagCicp.
 
 CIccTagCicp (const CIccTagCicp &ITCICP)
 Name: CIccTagCicp::CIccTagCicp.
 
virtual void Describe (std::string &sDescription, int nVerboseness)
 Name: CIccTagCicp::Describe.
 
void GetFields (icUInt8Number &colorPrimaries, icUInt8Number &transferCharacteristics, icUInt8Number &matrixCoefficients, icUInt8Number &videoFullRangeFlag)
 Name: CIccTagCicp::GetFields.
 
virtual icTagTypeSignature GetType () const
 Function: GetType()
 
virtual CIccTagNewCopy () const
 Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function.
 
CIccTagCicpoperator= (const CIccTagCicp &XYZTag)
 Name: CIccTagCicp::operator=.
 
virtual bool Read (icUInt32Number size, CIccIO *pIO)
 Name: CIccTagCicp::Read.
 
void SetFields (icUInt8Number colorPrimaries, icUInt8Number transferCharacteristics, icUInt8Number matrixCoefficients, icUInt8Number videoFullRangeFlag)
 Name: CIccTagCicp::SetFields.
 
virtual icValidateStatus Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const
 Name: CIccTagCicp::Validate.
 
virtual bool Write (CIccIO *pIO)
 Name: CIccTagCicp::Write.
 
virtual ~CIccTagCicp ()
 Name: CIccTagCicp::~CIccTagCicp.
 
- 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 CIccTagCicp
icUInt8Number m_nColorPrimaries
 
icUInt8Number m_nMatrixCoefficients
 
icUInt8Number m_nTransferCharacteristics
 
icUInt8Number m_nVideoFullRangeFlag
 

Detailed Description

Definition at line 255 of file IccTagXml.h.

Constructor & Destructor Documentation

◆ ~CIccTagXmlCicp()

virtual CIccTagXmlCicp::~CIccTagXmlCicp ( )
inlinevirtual

Definition at line 258 of file IccTagXml.h.

258{}

Member Function Documentation

◆ GetClassName()

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

Reimplemented from CIccTagCicp.

Definition at line 260 of file IccTagXml.h.

260{ return "CIccTagXmlCicp"; }

◆ GetExtension()

virtual IIccExtensionTag * CIccTagXmlCicp::GetExtension ( )
inlinevirtual

Reimplemented from CIccTag.

Definition at line 262 of file IccTagXml.h.

262{ return this; }

◆ ParseXml()

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

Implements CIccTagXml.

Definition at line 996 of file IccTagXml.cpp.

997{
998
999 pNode = icXmlFindNode(pNode, "cicpFields");
1000
1001 if (pNode) {
1002 xmlAttr* attr;
1003 if ((attr = icXmlFindAttr(pNode, "ColorPrimaries")))
1004 m_nColorPrimaries = atoi(icXmlAttrValue(attr));
1005 else
1007
1008 if ((attr = icXmlFindAttr(pNode, "TransferCharacteristics")))
1010 else
1012
1013 if ((attr = icXmlFindAttr(pNode, "MatrixCoefficients")))
1015 else
1017
1018 if ((attr = icXmlFindAttr(pNode, "VideoFullRangeFlag")))
1020 else
1022 }
1023 else
1024 return false;
1025
1026 return true;
1027}
xmlAttr * icXmlFindAttr(xmlNode *pNode, const char *szAttrName)
xmlNode * icXmlFindNode(xmlNode *pNode, const char *szNodeName)
const char * icXmlAttrValue(xmlAttr *attr, const char *szDefault)
icUInt8Number m_nVideoFullRangeFlag
icUInt8Number m_nMatrixCoefficients
icUInt8Number m_nColorPrimaries
icUInt8Number m_nTransferCharacteristics

References icXmlAttrValue(), icXmlFindAttr(), and icXmlFindNode().

+ Here is the call graph for this function:

◆ ToXml()

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

Implements CIccTagXml.

Definition at line 983 of file IccTagXml.cpp.

984{
985 char buf[256];
986
987 CIccInfo info;
988 sprintf(buf, "<cicpFields ColorPrimaries=\"%d\" TransferCharacteristics=\"%d\" MatrixCoefficients=\"%d\" VideoFullRangeFlag=\"%d\"/>\n",
990 xml += blanks + buf;
991
992 return true;
993}
Type: Class.
Definition IccUtil.h:303

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