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

#include <IccMpeXml.h>

+ Inheritance diagram for CIccMpeXmlUnknown:
+ Collaboration diagram for CIccMpeXmlUnknown:

Public Member Functions

virtual const char * GetClassName () const
 
virtual IIccExtensionMpeGetExtension ()
 
virtual bool ParseXml (xmlNode *pNode, std::string &parseStr)
 
virtual bool ToXml (std::string &xml, std::string blanks="")
 
virtual ~CIccMpeXmlUnknown ()
 
- Public Member Functions inherited from CIccMpeUnknown
virtual void Apply (CIccApplyMpe *pApply, icFloatNumber *pDestPixel, const icFloatNumber *pSrcPixel) const
 
virtual bool Begin (icElemInterp nIterp=icElemInterpLinear, CIccTagMultiProcessElement *pMPE=NULL)
 
 CIccMpeUnknown ()
 Name: CIccMpeUnknown::CIccMpeUnknown.
 
 CIccMpeUnknown (const CIccMpeUnknown &elem)
 Name: CIccMpeUnknown::CIccMpeUnknown.
 
virtual void Describe (std::string &sDescription, int nVerboseness)
 Name: CIccMpeUnknown::Describe.
 
icUInt8NumberGetData ()
 
virtual CIccApplyMpeGetNewApply ()
 
virtual icElemTypeSignature GetType () const
 
virtual bool IsSupported ()
 
virtual CIccMultiProcessElementNewCopy () const
 
CIccMpeUnknownoperator= (const CIccMpeUnknown &elem)
 Name: CIccMpeUnknown::operator=.
 
virtual bool Read (icUInt32Number nSize, CIccIO *pIO)
 Name: CIccMpeUnknown::Read.
 
void SetChannels (icUInt16Number nInputChannels, icUInt16Number nOutputChannels)
 Name: CIccMpeUnknown::Describe.
 
bool SetDataSize (icUInt32Number nSize, bool bZeroData=true)
 Name: CIccMpeUnknown::SetDataSize.
 
void SetType (icElemTypeSignature sig)
 Name: CIccMpeUnknown::SetType.
 
virtual icValidateStatus Validate (std::string sigPath, std::string &sReport, const CIccTagMultiProcessElement *pMPE=NULL, const CIccProfile *pProfile=NULL) const
 Name: CIccMpeUnknown::Validate.
 
virtual bool Write (CIccIO *pIO)
 Name: CIccMpeUnknown::Write.
 
virtual ~CIccMpeUnknown ()
 Name: CIccMpeUnknown::~CIccMpeUnknown.
 
- Public Member Functions inherited from CIccMultiProcessElement
 CIccMultiProcessElement ()
 
virtual icAcsSignature GetBAcsSig ()
 
virtual icAcsSignature GetEAcsSig ()
 
virtual CIccApplyMpeGetNewApply (CIccApplyTagMpe *pApplyTag)
 Name: CIccMultiProcessElement::GetNewApply()
 
virtual bool IsAcs ()
 
virtual bool IsLateBinding () const
 
virtual bool IsLateBindingReflectance () const
 
virtual icUInt16Number NumInputChannels () const
 
virtual icUInt16Number NumOutputChannels () const
 
virtual ~CIccMultiProcessElement ()
 
- Public Member Functions inherited from CIccMpeXml
virtual const char * GetExtClassName ()
 
virtual ~CIccMpeXml (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from CIccMultiProcessElement
static CIccMultiProcessElementCreate (icElemTypeSignature sig)
 Name: CIccMultiProcessElement::Create.
 
- Public Attributes inherited from CIccMultiProcessElement
icUInt32Number m_nReserved
 
- Protected Attributes inherited from CIccMpeUnknown
icUInt16Number m_nInputChannels
 
icUInt16Number m_nOutputChannels
 
icUInt32Number m_nReserved
 
icUInt32Number m_nSize
 
icUInt8Numberm_pData
 
icElemTypeSignature m_sig
 
- Protected Attributes inherited from CIccMultiProcessElement
icUInt16Number m_nInputChannels
 
icUInt16Number m_nOutputChannels
 

Detailed Description

Definition at line 87 of file IccMpeXml.h.

Constructor & Destructor Documentation

◆ ~CIccMpeXmlUnknown()

virtual CIccMpeXmlUnknown::~CIccMpeXmlUnknown ( )
inlinevirtual

Definition at line 90 of file IccMpeXml.h.

90{}

Member Function Documentation

◆ GetClassName()

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

Reimplemented from CIccMpeUnknown.

Definition at line 92 of file IccMpeXml.h.

92{ return "CIccTagXmlUnknown"; }

◆ GetExtension()

virtual IIccExtensionMpe * CIccMpeXmlUnknown::GetExtension ( )
inlinevirtual

Reimplemented from CIccMultiProcessElement.

Definition at line 94 of file IccMpeXml.h.

94{ return this; }

◆ ParseXml()

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

Implements CIccMpeXml.

Definition at line 107 of file IccMpeXml.cpp.

108{
110 SetChannels(atoi(icXmlAttrValue(pNode, "InputChannels")), atoi(icXmlAttrValue(pNode, "OutputChannels")));
111
112 if (pNode->children && pNode->children->type == XML_TEXT_NODE && pNode->children->content) {
113 icUInt32Number nSize = icXmlGetHexDataSize((const char *)pNode->children->content);
114
115 if (!SetDataSize(nSize, false))
116 return false;
117
118 icXmlGetHexData(m_pData, (const char *)pNode->children->content, nSize);
119 }
120 else {
121 SetDataSize(0);
122 }
123 return true;
124}
icUInt32Number icXmlGetHexDataSize(const char *szText)
icUInt32Number icXmlGetHexData(void *pBuf, const char *szText, icUInt32Number nBufSize)
const char * icXmlAttrValue(xmlAttr *attr, const char *szDefault)
icSignature icXmlStrToSig(const char *szStr)
unsigned int icUInt32Number
void SetType(icElemTypeSignature sig)
Name: CIccMpeUnknown::SetType.
bool SetDataSize(icUInt32Number nSize, bool bZeroData=true)
Name: CIccMpeUnknown::SetDataSize.
void SetChannels(icUInt16Number nInputChannels, icUInt16Number nOutputChannels)
Name: CIccMpeUnknown::Describe.
icUInt8Number * m_pData
Definition IccTagMPE.h:266
icElemTypeSignature
Multi-Processing Element type signatures.

References icXmlAttrValue(), icXmlGetHexData(), icXmlGetHexDataSize(), and icXmlStrToSig().

+ Here is the call graph for this function:

◆ ToXml()

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

Implements CIccMpeXml.

Definition at line 83 of file IccMpeXml.cpp.

84{
85 icUInt8Number *m_ptr = m_pData;
86
87 char line[256];
88 char buf[256];
89 char fix[256];
90 sprintf(line, "<UnknownElement Type=\"%s\" InputChannels=\"%d\" OutputChannels=\"%d\"",
92 xml += blanks + line;
93
94 if (m_nReserved) {
95 sprintf(line, " Reserved=\"%u\"", m_nReserved);
96 xml += buf;
97 }
98 xml += ">\n";
99
100 icXmlDumpHexData(xml, blanks + " ", m_pData, m_nSize);
101
102 xml += blanks + "</UnknownElement>\n";
103 return true;
104}
const icChar * icGetSigStr(icChar *pBuf, icUInt32Number nSig)
Definition IccUtil.cpp:1056
icUInt32Number icXmlDumpHexData(std::string &xml, std::string blanks, void *pBuf, icUInt32Number nBufSize)
const char * icFixXml(std::string &buf, const char *szStr)
icUInt32Number m_nReserved
Definition IccTagMPE.h:262
icUInt32Number m_nSize
Definition IccTagMPE.h:265
virtual icElemTypeSignature GetType() const
Definition IccTagMPE.h:238
virtual icUInt16Number NumInputChannels() const
Definition IccTagMPE.h:159
virtual icUInt16Number NumOutputChannels() const
Definition IccTagMPE.h:160
unsigned char icUInt8Number
Number definitions.

References icFixXml(), icGetSigStr(), and icXmlDumpHexData().

+ Here is the call graph for this function:

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