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

#include <IccTagXml.h>

+ Inheritance diagram for CIccTagXmlDateTime:
+ Collaboration diagram for CIccTagXmlDateTime:

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 ~CIccTagXmlDateTime ()
 
- Public Member Functions inherited from CIccTagDateTime
 CIccTagDateTime ()
 Name: CIccTagDateTime::CIccTagDateTime.
 
 CIccTagDateTime (const CIccTagDateTime &ITDT)
 Name: CIccTagDateTime::CIccTagDateTime.
 
virtual void Describe (std::string &sDescription, int nVerboseness)
 Name: CIccTagDateTime::Describe.
 
virtual icTagTypeSignature GetType () const
 Function: GetType()
 
virtual CIccTagNewCopy () const
 Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function.
 
CIccTagDateTimeoperator= (const CIccTagDateTime &DateTimeTag)
 Name: CIccTagDateTime::operator=.
 
virtual bool Read (icUInt32Number size, CIccIO *pIO)
 Name: CIccTagDateTime::Read.
 
void SetDateTime (icDateTimeNumber nDateTime)
 
virtual icValidateStatus Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const
 Name: CIccTagDateTime::Validate.
 
virtual bool Write (CIccIO *pIO)
 Name: CIccTagDateTime::Write.
 
virtual ~CIccTagDateTime ()
 Name: CIccTagDateTime::~CIccTagDateTime.
 
- 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 CIccTagDateTime
icDateTimeNumber m_DateTime
 

Detailed Description

Definition at line 383 of file IccTagXml.h.

Constructor & Destructor Documentation

◆ ~CIccTagXmlDateTime()

virtual CIccTagXmlDateTime::~CIccTagXmlDateTime ( )
inlinevirtual

Definition at line 386 of file IccTagXml.h.

386{}

Member Function Documentation

◆ GetClassName()

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

Reimplemented from CIccTagDateTime.

Definition at line 388 of file IccTagXml.h.

388{return "CIccTagXmlDateTime"; }

◆ GetExtension()

virtual IIccExtensionTag * CIccTagXmlDateTime::GetExtension ( )
inlinevirtual

Reimplemented from CIccTag.

Definition at line 390 of file IccTagXml.h.

390{return this; }

◆ ParseXml()

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

Implements CIccTagXml.

Definition at line 1760 of file IccTagXml.cpp.

1761{
1762 memset(&m_DateTime, 0, sizeof(m_DateTime));
1763
1764 pNode = icXmlFindNode(pNode, "DateTime");
1765 if (pNode) {
1766 m_DateTime = icGetDateTimeValue(pNode->children ? (const char*)pNode->children->content : "");
1767 return true;
1768 }
1769 return false;
1770}
icDateTimeNumber icGetDateTimeValue(const icChar *str)
xmlNode * icXmlFindNode(xmlNode *pNode, const char *szNodeName)
icDateTimeNumber m_DateTime

References icGetDateTimeValue(), and icXmlFindNode().

+ Here is the call graph for this function:

◆ ToXml()

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

Implements CIccTagXml.

Definition at line 1750 of file IccTagXml.cpp.

1751{
1752 char buf[256];
1753 sprintf(buf, "<DateTime>%d-%02d-%02dT%02d:%02d:%02d</DateTime>\n",
1755 xml += blanks + buf;
1756 return true;
1757}
icUInt16Number year
icUInt16Number month
icUInt16Number minutes
icUInt16Number seconds
icUInt16Number hours
icUInt16Number day

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