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

#include <IccTagXml.h>

+ Inheritance diagram for CIccTagXmlEmbeddedProfile:
+ Collaboration diagram for CIccTagXmlEmbeddedProfile:

Public Member Functions

virtual IIccExtensionTagGetExtension ()
 
virtual const char * GetGlassName () const
 
virtual bool ParseXml (xmlNode *pNode, std::string &parseStr)
 
virtual bool ToXml (std::string &xml, std::string blanks="")
 
virtual ~CIccTagXmlEmbeddedProfile ()
 
- Public Member Functions inherited from CIccTagEmbeddedProfile
 CIccTagEmbeddedProfile ()
 Name: CIccTagEmbedProfile::CIccTagEmbedProfile.
 
 CIccTagEmbeddedProfile (const CIccTagEmbeddedProfile &ITU)
 Name: CIccTagEmbedProfile::CIccTagEmbedProfile.
 
virtual void Describe (std::string &sDescription, int nVerboseness)
 Name: CIccTagEmbedProfile::Describe.
 
virtual const icCharGetClassName () const
 
virtual CIccProfile * GetProfile () const
 
virtual icTagTypeSignature GetType () const
 Function: GetType()
 
virtual bool IsSupported ()
 Function: IsSupported(size, pIO) - Check if tag fully supported for apply purposes.
 
virtual CIccTagNewCopy () const
 Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function.
 
CIccTagEmbeddedProfileoperator= (const CIccTagEmbeddedProfile &UnknownTag)
 Name: CIccTagEmbedProfile::operator=.
 
virtual bool Read (icUInt32Number size, CIccIO *pIO)
 Function: Read(size, pIO) - Read tag from file.
 
virtual bool Read (icUInt32Number size, CIccIO *pIO, CIccProfile *pProfile)
 Name: CIccTagEmbedProfile::Read.
 
virtual bool ReadAll ()
 Name: CIccTagEmbedProfile::ReadAll.
 
virtual icValidateStatus Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const
 Name: CIccTagEmbedProfile::Validate.
 
virtual bool Write (CIccIO *pIO)
 Name: CIccTagEmbedProfile::Write.
 
virtual ~CIccTagEmbeddedProfile ()
 Name: CIccTagEmbedProfile::~CIccTagEmbedProfile.
 
- 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 ~CIccTag ()
 Name: CIccTag::CIccTag.
 

Additional Inherited Members

- Static Public Member Functions inherited from CIccTag
static CIccTagCreate (icTagTypeSignature sig)
 Name: CIccTag::Create.
 
- Public Attributes inherited from CIccTagEmbeddedProfile
CIccProfile * m_pProfile
 
- Public Attributes inherited from CIccTag
icUInt32Number m_nReserved
 
- Private Member Functions inherited from CIccTagXml
virtual const char * GetExtClassName () const
 
virtual const char * GetExtDerivedClassName () const
 
virtual ~CIccTagXml (void)
 

Detailed Description

Definition at line 713 of file IccTagXml.h.

Constructor & Destructor Documentation

◆ ~CIccTagXmlEmbeddedProfile()

virtual CIccTagXmlEmbeddedProfile::~CIccTagXmlEmbeddedProfile ( )
inlinevirtual

Definition at line 716 of file IccTagXml.h.

716{}

Member Function Documentation

◆ GetExtension()

virtual IIccExtensionTag * CIccTagXmlEmbeddedProfile::GetExtension ( )
inlinevirtual

Reimplemented from CIccTag.

Definition at line 720 of file IccTagXml.h.

720{ return this; }

◆ GetGlassName()

virtual const char * CIccTagXmlEmbeddedProfile::GetGlassName ( ) const
inlinevirtual

Definition at line 718 of file IccTagXml.h.

718{ return "CIccTagXmlEmbeddedProfile"; }

◆ ParseXml()

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

Implements CIccTagXml.

Definition at line 5045 of file IccTagXml.cpp.

5046{
5047 // parse each tag
5048 xmlNode *tagNode;
5049
5050 tagNode = icXmlFindNode(pNode, "IccProfile");
5051 if (!tagNode)
5052 return false;
5053
5054 if (m_pProfile) {
5055 delete m_pProfile;
5056 }
5057
5058 CIccProfileXml *pProfile = new CIccProfileXml();
5059 m_pProfile = pProfile;
5060
5061 if (!pProfile->ParseXml(tagNode, parseStr)) {
5062 delete m_pProfile;
5063 m_pProfile = NULL;
5064 return false;
5065 }
5066 return true;
5067}
xmlNode * icXmlFindNode(xmlNode *pNode, const char *szNodeName)
bool ParseXml(xmlNode *pNode, std::string &parseStr)

References icXmlFindNode(), and CIccProfileXml::ParseXml().

+ Here is the call graph for this function:

◆ ToXml()

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

Implements CIccTagXml.

Definition at line 5069 of file IccTagXml.cpp.

5070{
5071 if (!m_pProfile || strcmp(m_pProfile->GetClassName(), "CIccProfileXml")) {
5072 return false;
5073 }
5074
5076
5077 return pProfile->ToXmlWithBlanks(xml, blanks);
5078}
bool ToXmlWithBlanks(std::string &xmlString, std::string blanks)

References CIccProfileXml::ToXmlWithBlanks().

+ Here is the call graph for this function:

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