Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
Class: CIccTagUtf16Text() More...
#include <IccTagBasic.h>
Public Member Functions | |
icUInt32Number | Capacity () const |
CIccTagUtf16Text () | |
Name: CIccTagUtf16Text::CIccTagUtf16Text. | |
CIccTagUtf16Text (const CIccTagUtf16Text &ITT) | |
Name: CIccTagUtf16Text::CIccTagUtf16Text. | |
virtual void | Describe (std::string &sDescription, int nVerboseness) |
Name: CIccTagUtf16Text::Describe. | |
icUChar16 * | GetBuffer (icUInt32Number nSize) |
Name: CIccTagUtf16Text::GetBuffer. | |
virtual const icChar * | GetClassName () const |
icUInt32Number | GetLength () const |
Name: CIccTagUtf16Text::GetLength. | |
const icUChar16 * | GetText () const |
const icChar * | GetText (std::string &bufStr) const |
Name: CIccTagUtf16Text::GetText. | |
virtual icTagTypeSignature | GetType () const |
Function: GetType() | |
virtual CIccTag * | NewCopy () const |
Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function. | |
CIccTagUtf16Text & | operator= (const CIccTagUtf16Text &TextTag) |
Name: CIccTagUtf16Text::operator=. | |
const icUChar16 * | operator= (const icUChar16 *szText) |
Name: *CIccTagUtf16Textoperator=. | |
virtual bool | Read (icUInt32Number size, CIccIO *pIO) |
Name: CIccTagUtf16Text::Read. | |
void | Release () |
Name: CIccTagUtf16Text::Release. | |
void | SetText (const icChar *szText) |
void | SetText (const icUChar *szText) |
Name: CIccTagUtf16Text::SetText. | |
void | SetText (const icUChar16 *szText) |
Name: CIccTagUtf16Text::SetText. | |
virtual icValidateStatus | Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const |
Name: CIccTagUtf16Text::Validate. | |
virtual bool | Write (CIccIO *pIO) |
Name: CIccTagUtf16Text::Write. | |
virtual | ~CIccTagUtf16Text () |
Name: CIccTagUtf16Text::~CIccTagUtf16Text. | |
![]() | |
CIccTag () | |
Name: CIccTag::CIccTag. | |
virtual void | DetachIO () |
Function: ReadAll() - Read All sub data for tag from file. | |
virtual IIccExtensionTag * | GetExtension () |
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. | |
Protected Attributes | |
icUInt32Number | m_nBufSize |
icUChar16 * | m_szText |
Additional Inherited Members | |
![]() | |
static CIccTag * | Create (icTagTypeSignature sig) |
Name: CIccTag::Create. | |
![]() | |
icUInt32Number | m_nReserved |
Class: CIccTagUtf16Text()
Purpose: The utf8TextType ICC tag
Definition at line 433 of file IccTagBasic.h.
CIccTagUtf16Text::CIccTagUtf16Text | ( | ) |
Name: CIccTagUtf16Text::CIccTagUtf16Text.
Purpose: Constructor
Definition at line 1499 of file IccTagBasic.cpp.
CIccTagUtf16Text::CIccTagUtf16Text | ( | const CIccTagUtf16Text & | ITT | ) |
Name: CIccTagUtf16Text::CIccTagUtf16Text.
Purpose: Copy Constructor
Args: ITT = The CIccTagText object to be copied
Definition at line 1516 of file IccTagBasic.cpp.
References m_szText.
|
virtual |
Name: CIccTagUtf16Text::~CIccTagUtf16Text.
Purpose: Destructor
Definition at line 1555 of file IccTagBasic.cpp.
|
inline |
Definition at line 463 of file IccTagBasic.h.
|
virtual |
Name: CIccTagUtf16Text::Describe.
Purpose: Dump data associated with the tag to a string
Args: sDescription - string to concatenate tag dump to
Reimplemented from CIccTag.
Definition at line 1672 of file IccTagBasic.cpp.
References BRIEF_STRING_SIZE.
icUChar16 * CIccTagUtf16Text::GetBuffer | ( | icUInt32Number | nSize | ) |
Name: CIccTagUtf16Text::GetBuffer.
Purpose: This function allocates room and returns pointer to data buffer to put string into
Args: nSize = Requested size of data buffer.
Return: The utf16 character buffer array
Definition at line 1826 of file IccTagBasic.cpp.
References icRealloc().
|
inlinevirtual |
Reimplemented from CIccTag.
Reimplemented in CIccTagXmlUtf16Text.
Definition at line 443 of file IccTagBasic.h.
icUInt32Number CIccTagUtf16Text::GetLength | ( | ) | const |
Name: CIccTagUtf16Text::GetLength.
Purpose: Get length of utf16 string
Definition at line 1568 of file IccTagBasic.cpp.
|
inline |
Definition at line 451 of file IccTagBasic.h.
const icChar * CIccTagUtf16Text::GetText | ( | std::string & | buf | ) | const |
Name: CIccTagUtf16Text::GetText.
Purpose: Allows text data associated with the tag to be fetched.
Args: buf - buffer to put tag data into. Returns: buf.c_str()
Definition at line 1716 of file IccTagBasic.cpp.
References icConvertUTF16toUTF8(), and lenientConversion.
Referenced by icGetTagText().
|
inlinevirtual |
Function: GetType()
Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.
Reimplemented from CIccTag.
Definition at line 442 of file IccTagBasic.h.
References icSigUtf16TextType.
|
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 CIccTag.
Reimplemented in CIccTagXmlUtf16Text.
Definition at line 439 of file IccTagBasic.h.
CIccTagUtf16Text & CIccTagUtf16Text::operator= | ( | const CIccTagUtf16Text & | TextTag | ) |
Name: CIccTagUtf16Text::operator=.
Purpose: Copy Operator
Args: TextTag = The CIccTagText object to be copied
Definition at line 1534 of file IccTagBasic.cpp.
References m_szText.
Name: *CIccTagUtf16Textoperator=.
Purpose: Define assignment operator to associate text with tag.
Args: szText - zero terminated string to put in the tag
Return: A pointer to the string assigned to the tag.
Definition at line 1807 of file IccTagBasic.cpp.
|
virtual |
Name: CIccTagUtf16Text::Read.
Purpose: Read in a text type tag into a data block
Args: size - # of bytes in tag, pIO - IO object to read tag from
Return: true = successful, false = failure
Reimplemented from CIccTag.
Definition at line 1593 of file IccTagBasic.cpp.
References CIccIO::Read16(), CIccIO::Read32(), and sig.
void CIccTagUtf16Text::Release | ( | ) |
Name: CIccTagUtf16Text::Release.
Purpose: This will resize the buffer to fit the zero terminated string in the buffer.
Definition at line 1847 of file IccTagBasic.cpp.
References icRealloc().
|
inline |
Definition at line 455 of file IccTagBasic.h.
References SetText().
Referenced by SetText().
void CIccTagUtf16Text::SetText | ( | const icUChar * | szText | ) |
Name: CIccTagUtf16Text::SetText.
Purpose: Allows text data associated with the tag to be set.
Args: szText - zero terminated string to put in tag
Definition at line 1772 of file IccTagBasic.cpp.
References icConvertUTF8toUTF16(), and lenientConversion.
void CIccTagUtf16Text::SetText | ( | const icUChar16 * | szText | ) |
Name: CIccTagUtf16Text::SetText.
Purpose: Allows text data associated with the tag to be set.
Args: szText - zero terminated string to put in tag
Definition at line 1745 of file IccTagBasic.cpp.
|
virtual |
Name: CIccTagUtf16Text::Validate.
Purpose: Check tag data validity.
Args: sig = signature of tag being validated, sReport = String to add report information to
Return: icValidateStatusOK if valid, or other error status.
Reimplemented from CIccTag.
Definition at line 1872 of file IccTagBasic.cpp.
References CIccInfo::GetSigPathName(), icMaxStatus(), icMsgValidateWarning, icValidateWarning, and CIccTag::Validate().
|
virtual |
Name: CIccTagUtf16Text::Write.
Purpose: Write a text type tag to a file
Args: pIO - The IO object to write tag to.
Return: true = succesful, false = failure
Reimplemented from CIccTag.
Definition at line 1636 of file IccTagBasic.cpp.
References sig, CIccIO::Write16(), and CIccIO::Write32().
|
protected |
Definition at line 469 of file IccTagBasic.h.
|
protected |
Definition at line 468 of file IccTagBasic.h.
Referenced by CIccTagUtf16Text(), and operator=().