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

#include <IccTagXml.h>

+ Inheritance diagram for CIccTagXmlZipUtf8Text:
+ Collaboration diagram for CIccTagXmlZipUtf8Text:

Public Member Functions

 CIccTagXmlZipUtf8Text ()
 
 CIccTagXmlZipUtf8Text (const CIccTagXmlZipUtf8Text &ITT)
 
virtual const char * GetClassName () const
 
virtual IIccExtensionTagGetExtension ()
 
virtual CIccTagNewCopy () const
 Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function.
 
virtual bool ParseXml (xmlNode *pNode, std::string &parseStr)
 
virtual bool ToXml (std::string &xml, std::string blanks="")
 
virtual ~CIccTagXmlZipUtf8Text ()
 
- Public Member Functions inherited from CIccTagZipUtf8Text
icUCharAllocBuffer (icUInt32Number nSize)
 Name: CIccTagZipUtf8Text::AllocBuffer.
 
icUInt32Number BufferSize () const
 
 CIccTagZipUtf8Text ()
 Name: CIccTagZipUtf8Text::CIccTagZipUtf8Text.
 
 CIccTagZipUtf8Text (const CIccTagZipUtf8Text &ITT)
 Name: CIccTagZipUtf8Text::CIccTagZipUtf8Text.
 
virtual void Describe (std::string &sDescription, int nVerboseness)
 Name: CIccTagZipUtf8Text::Describe.
 
icUCharGetBuffer () const
 
virtual bool GetText (std::string &str) const
 Name: CIccTagZipUtf8Text::GetText.
 
virtual icTagTypeSignature GetType () const
 Function: GetType()
 
CIccTagZipUtf8Textoperator= (const CIccTagZipUtf8Text &TextTag)
 Name: CIccTagZipUtf8Text::operator=.
 
virtual bool Read (icUInt32Number size, CIccIO *pIO)
 Name: CIccTagZipUtf8Text::Read.
 
bool SetText (const icChar *szText)
 
virtual bool SetText (const icUChar *szText)
 Name: CIccTagZipUtf8Text::SetText.
 
bool SetText (const icUChar16 *szText)
 Name: CIccTagZipUtf8Text::SetText.
 
virtual icValidateStatus Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const
 Name: CIccTagZipUtf8Text::Validate.
 
virtual bool Write (CIccIO *pIO)
 Name: CIccTagZipUtf8Text::Write.
 
virtual ~CIccTagZipUtf8Text ()
 Name: CIccTagZipUtf8Text::~CIccTagZipUtf8Text.
 
- 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 CIccTagZipUtf8Text
icUInt32Number m_nBufSize
 
icUCharm_pZipBuf
 

Detailed Description

Definition at line 134 of file IccTagXml.h.

Constructor & Destructor Documentation

◆ CIccTagXmlZipUtf8Text() [1/2]

CIccTagXmlZipUtf8Text::CIccTagXmlZipUtf8Text ( )
inline

Definition at line 137 of file IccTagXml.h.

CIccTagZipUtf8Text()
Name: CIccTagZipUtf8Text::CIccTagZipUtf8Text.

Referenced by NewCopy().

+ Here is the caller graph for this function:

◆ CIccTagXmlZipUtf8Text() [2/2]

CIccTagXmlZipUtf8Text::CIccTagXmlZipUtf8Text ( const CIccTagXmlZipUtf8Text & ITT)
inline

Definition at line 138 of file IccTagXml.h.

138: CIccTagZipUtf8Text(ITT) {}

◆ ~CIccTagXmlZipUtf8Text()

virtual CIccTagXmlZipUtf8Text::~CIccTagXmlZipUtf8Text ( )
inlinevirtual

Definition at line 139 of file IccTagXml.h.

139{}

Member Function Documentation

◆ GetClassName()

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

Reimplemented from CIccTagZipUtf8Text.

Definition at line 143 of file IccTagXml.h.

143{return "CIccTagXmlZipUtf8Text"; }

◆ GetExtension()

virtual IIccExtensionTag * CIccTagXmlZipUtf8Text::GetExtension ( )
inlinevirtual

Reimplemented from CIccTag.

Definition at line 145 of file IccTagXml.h.

145{return this; }

◆ NewCopy()

virtual CIccTag * CIccTagXmlZipUtf8Text::NewCopy ( ) const
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 CIccTagZipUtf8Text.

Definition at line 141 of file IccTagXml.h.

141{return new CIccTagXmlZipUtf8Text(*this);}

References CIccTagXmlZipUtf8Text().

+ Here is the call graph for this function:

◆ ParseXml()

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

Implements CIccTagXml.

Definition at line 275 of file IccTagXml.cpp.

276{
277 while (pNode) {
278 if (pNode->type==XML_ELEMENT_NODE) {
279 if (!icXmlStrCmp(pNode->name, "HexCompressedData") && pNode->children && pNode->children->content) {
280 CIccUInt8Array buf;
281 if (!buf.SetSize(icXmlGetHexDataSize((const icChar*)pNode->children->content) ||
282 icXmlGetHexData(buf.GetBuf(), (const icChar*)pNode->children->content, buf.GetSize())!=buf.GetSize()))
283 return false;
284
285 AllocBuffer(buf.GetSize());
286 if (m_nBufSize && m_pZipBuf) {
287 memcpy(m_pZipBuf, buf.GetBuf(), m_nBufSize);
288 }
289 return true;
290 }
291 }
292 pNode = pNode->next;
293 }
294
295 std::string str = icXmlParseTextString(pNode, parseStr, false);
296
297 return SetText(str.c_str());
298}
char icChar
Definition IccDefs.h:109
static std::string icXmlParseTextString(xmlNode *pNode, std::string &parseStr, bool bConvert=true)
icUInt32Number icXmlGetHexDataSize(const char *szText)
icUInt32Number icXmlGetHexData(void *pBuf, const char *szText, icUInt32Number nBufSize)
#define icXmlStrCmp(x, y)
Definition IccUtilXml.h:134
bool SetText(const icUChar16 *szText)
Name: CIccTagZipUtf8Text::SetText.
icUChar * AllocBuffer(icUInt32Number nSize)
Name: CIccTagZipUtf8Text::AllocBuffer.
icUInt32Number m_nBufSize
bool SetSize(icUInt32Number nSize)
icUInt32Number GetSize()
Definition IccUtilXml.h:166

References CIccXmlArrayType< T, Tsig >::GetBuf(), CIccXmlArrayType< T, Tsig >::GetSize(), icXmlGetHexData(), icXmlGetHexDataSize(), icXmlParseTextString(), icXmlStrCmp, and CIccXmlArrayType< T, Tsig >::SetSize().

+ Here is the call graph for this function:

◆ ToXml()

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

Implements CIccTagXml.

Definition at line 156 of file IccTagXml.cpp.

157{
158 xml += blanks + "<HexCompressedData>\n";
159 icXmlDumpHexData(xml, blanks+" ", m_pZipBuf, m_nBufSize);
160 xml += blanks + "</HexCompressedData>\n";
161
162 return true;
163}
icUInt32Number icXmlDumpHexData(std::string &xml, std::string blanks, void *pBuf, icUInt32Number nBufSize)

References icXmlDumpHexData().

+ Here is the call graph for this function:

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