IccMAX 2.1.27
Color Profile Tools
|
#include <IccTagBasic.h>
Public Member Functions | |
CIccTagZipUtf8Text () | |
CIccTagZipUtf8Text (const CIccTagZipUtf8Text &ITT) | |
virtual | ~CIccTagZipUtf8Text () |
icUChar * | AllocBuffer (icUInt32Number nSize) |
icUInt32Number | BufferSize () const |
virtual void | Describe (std::string &sDescription, int nVerboseness) |
virtual void | DetachIO () |
icUChar * | GetBuffer () const |
virtual const icChar * | GetClassName () const |
virtual IIccExtensionTag * | GetExtension () |
virtual icArraySignature | GetTagArrayType () const |
virtual icStructSignature | GetTagStructType () const |
virtual bool | GetText (std::string &str) const |
virtual icTagTypeSignature | GetType () const |
virtual bool | IsArrayType () |
virtual bool | IsMBBType () |
virtual bool | IsNumArrayType () const |
virtual bool | IsSupported () |
virtual CIccTag * | NewCopy () const |
CIccTagZipUtf8Text & | operator= (const CIccTagZipUtf8Text &TextTag) |
virtual bool | Read (icUInt32Number size, CIccIO *pIO) |
virtual bool | Read (icUInt32Number size, CIccIO *pIO, CIccProfile *pProfile) |
virtual bool | ReadAll () |
bool | SetText (const icChar *szText) |
virtual bool | SetText (const icUChar *szText) |
bool | SetText (const icUChar16 *szText) |
virtual icValidateStatus | Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const |
virtual bool | Write (CIccIO *pIO) |
Static Public Member Functions | |
static CIccTag * | Create (icTagTypeSignature sig) |
Data Fields | |
icUInt32Number | m_nReserved |
Protected Attributes | |
icUInt32Number | m_nBufSize |
icUChar * | m_pZipBuf |
Class: CIccTagZipUtf8Text()
Purpose: The zipUtf8TextType ICC tag maintains compressed text data. Calls to GetText will uncompress, and SetText will compress. These functions may fail if macro ICC_USE_ZLIB is not defined.
CIccTagZipUtf8Text::CIccTagZipUtf8Text | ( | ) |
Name: CIccTagZipUtf8Text::CIccTagZipUtf8Text
Purpose: Constructor
References m_nBufSize, and m_pZipBuf.
Referenced by CIccTagXmlZipUtf8Text::CIccTagXmlZipUtf8Text(), and CIccTagZipXml::CIccTagZipXml().
|
virtual |
CIccTagZipUtf8Text::CIccTagZipUtf8Text | ( | const CIccTagZipUtf8Text & | ITT | ) |
Name: CIccTagZipUtf8Text::CIccTagZipUtf8Text
Purpose: Copy Constructor
Args: ITT = The CIccTagText object to be copied
References AllocBuffer(), BufferSize(), GetBuffer(), m_nBufSize, and m_pZipBuf.
Referenced by CIccTagXmlZipUtf8Text::CIccTagXmlZipUtf8Text(), CIccTagZipXml::CIccTagZipXml(), and NewCopy().
icUChar * CIccTagZipUtf8Text::AllocBuffer | ( | icUInt32Number | nSize | ) |
Name: CIccTagZipUtf8Text::AllocBuffer
Purpose: This function allocates room and returns pointer to data buffer to put string into
Args: nSize = Requested size of data buffer.
Return: The character buffer array
References icRealloc(), m_nBufSize, and m_pZipBuf.
Referenced by CIccTagZipUtf8Text(), operator=(), CIccTagXmlZipUtf8Text::ParseXml(), CIccTagXmlZipXml::ParseXml(), and Read().
|
inline |
References m_nBufSize.
Referenced by CIccTagZipUtf8Text(), and operator=().
|
staticinherited |
Name: CIccTag::Create
Purpose: This is a static tag creator based upon tag signature type
Args: sig = tag type signature
Return: Pointer to Allocated tag
References CIccTagCreator::CreateTag().
Referenced by CIccDefaultEncProfileConverter::ConvertFromParams(), CIccTagStruct::LoadElem(), CIccProfileXml::ParseTag(), CIccTagXmlStruct::ParseTag(), CIccMpeXmlTintArray::ParseXml(), CIccTagXmlArray::ParseXml(), CIccMpeTintArray::Read(), CIccTagLutAtoB::Read(), CIccTagLut8::Read(), CIccTagLut16::Read(), CIccTagLut8::SetColorSpaces(), CIccTagLut16::SetColorSpaces(), and CIccProfileDescText::SetType().
|
virtual |
Name: CIccTagZipUtf8Text::Describe
Purpose: Dump data associated with the tag to a string
Args: sDescription - string to concatenate tag dump to
Reimplemented from CIccTag.
References icMemDump(), m_nBufSize, and m_pZipBuf.
|
inlinevirtualinherited |
Function: ReadAll() - Read All sub data for tag from file. Called by CIccProfile::ReadAll() to read all sub data for tag
Returns true if ReadAll is successful.
|
inline |
References m_pZipBuf.
Referenced by CIccTagZipUtf8Text(), and operator=().
|
inlinevirtual |
Reimplemented from CIccTag.
Reimplemented in CIccTagZipXml, CIccTagXmlZipUtf8Text, and CIccTagXmlZipXml.
|
inlinevirtualinherited |
Reimplemented in CIccTagXmlUnknown, CIccTagXmlText, CIccTagXmlUtf8Text, CIccTagXmlZipUtf8Text, CIccTagXmlZipXml, CIccTagXmlUtf16Text, CIccTagXmlTextDescription, CIccTagXmlSignature, CIccTagXmlNamedColor2, CIccTagXmlXYZ, CIccTagXmlChromaticity, CIccTagXmlCicp, CIccTagXmlSparseMatrixArray, CIccTagXmlFixedNum< T, Tsig >, CIccTagXmlNum< T, A, Tsig >, CIccTagXmlFloatNum< T, A, Tsig >, CIccTagXmlMeasurement, CIccTagXmlMultiLocalizedUnicode, CIccTagXmlTagData, CIccTagXmlDateTime, CIccTagXmlColorantOrder, CIccTagXmlColorantTable, CIccTagXmlViewingConditions, CIccTagXmlSpectralDataInfo, CIccTagXmlSpectralViewingConditions, CIccTagXmlProfileSeqDesc, CIccTagXmlResponseCurveSet16, CIccTagXmlCurve, CIccTagXmlParametricCurve, CIccTagXmlSegmentedCurve, CIccTagXmlLutAtoB, CIccTagXmlLutBtoA, CIccTagXmlLut8, CIccTagXmlLut16, CIccTagXmlMultiProcessElement, CIccTagXmlProfileSequenceId, CIccTagXmlDict, CIccTagXmlStruct, CIccTagXmlArray, CIccTagXmlGamutBoundaryDesc, CIccTagXmlEmbeddedHeightImage, CIccTagXmlEmbeddedNormalImage, and CIccTagXmlEmbeddedProfile.
Referenced by icCurvesFromXml(), icCurvesToXml(), icProfDescToXml(), icXmlParseProfDesc(), CIccProfileXml::ParseTag(), CIccTagXmlStruct::ParseTag(), CIccMpeXmlTintArray::ParseXml(), CIccTagXmlArray::ParseXml(), CIccMpeXmlTintArray::ToXml(), CIccTagXmlStruct::ToXml(), CIccTagXmlArray::ToXml(), and CIccProfileXml::ToXmlWithBlanks().
|
inlinevirtualinherited |
Reimplemented in CIccTagArray.
References icSigUndefinedArray.
Referenced by icGetTagArrayHandlerOfType(), and CIccProfileXml::ParseTag().
|
inlinevirtualinherited |
Reimplemented in CIccTagStruct.
References icSigUndefinedStruct.
Referenced by icGetTagStructHandlerOfType(), CIccArrayColorantInfo::Validate(), and CIccArrayNamedColor::Validate().
|
virtual |
Name: CIccTagZipUtf8Text::GetText
Purpose: Allows text data associated with the tag to be set.
Args: text - string to put uncompressed text into
Referenced by icGetTagText().
|
inlinevirtual |
Function: GetType()
Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.
Reimplemented from CIccTag.
Reimplemented in CIccTagZipXml.
References icSigZipUtf8TextType.
Referenced by Write().
|
inlinevirtualinherited |
Reimplemented in CIccTagXYZ, CIccTagChromaticity, CIccTagSparseMatrixArray, CIccTagFixedNum< T, Tsig >, CIccTagNum< T, Tsig >, CIccTagFloatNum< T, Tsig >, and CIccTagData.
Referenced by MyTagDialog::MyTagDialog(), and DumpTag().
|
inlinevirtualinherited |
Reimplemented in CIccMBB.
Referenced by CIccProfileXml::ParseTag().
|
inlinevirtualinherited |
Reimplemented in CIccTagSparseMatrixArray, CIccTagFixedNum< T, Tsig >, CIccTagNum< T, Tsig >, and CIccTagFloatNum< T, Tsig >.
Referenced by CIccArrayNamedColor::FindDeviceColor(), CIccArrayNamedColor::FindPcsColor(), CIccArrayNamedColor::FindSpectralColor(), CIccTagStruct::GetElemNumberValue(), CIccStructNamedColor::GetNumArray(), CIccMpeXmlTintArray::ParseXml(), and CIccMpeTintArray::Read().
|
inlinevirtualinherited |
Function: IsSupported(size, pIO) - Check if tag fully supported for apply purposes. By Default inherited classes are supported. Unknown tag types are not supported.
Returns true if tag type is supported.
Reimplemented in CIccTagUnknown, CIccTagEmbeddedProfile, and CIccTagMultiProcessElement.
|
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 CIccTagZipXml, CIccTagXmlZipUtf8Text, and CIccTagXmlZipXml.
References CIccTagZipUtf8Text().
CIccTagZipUtf8Text & CIccTagZipUtf8Text::operator= | ( | const CIccTagZipUtf8Text & | ITT | ) |
Name: CIccTagZipUtf8Text::operator=
Purpose: Copy Operator
Args: TextTag = The CIccTagText object to be copied
References AllocBuffer(), BufferSize(), GetBuffer(), m_nBufSize, and m_pZipBuf.
Referenced by CIccTagZipXml::operator=().
|
virtual |
Name: CIccTagZipUtf8Text::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.
References AllocBuffer(), m_nBufSize, CIccTag::m_nReserved, CIccIO::Read32(), and CIccIO::Read8().
|
inlinevirtualinherited |
Function: Read(size, pIO) - Read tag from file. Each derived tag will implement it's own Read() function.
Parameter(s): size - number of bytes in tag including the type signature. pIO - IO object used to read in tag. The IO object should already be initialized to point to the begining of the tag.
Returns true if Read is successful.
Reimplemented in CIccTagEmbeddedProfile.
References CIccTag::Read().
|
inlinevirtualinherited |
Function: ReadAll() - Read All sub data for tag from file. Called by CIccProfile::ReadAll() to read all sub data for tag
Returns true if ReadAll is successful.
Reimplemented in CIccTagEmbeddedProfile.
|
inline |
References SetText().
Referenced by CIccTagXmlZipUtf8Text::ParseXml(), CIccTagXmlZipXml::ParseXml(), and SetText().
|
virtual |
Name: CIccTagZipUtf8Text::SetText
Purpose: Allows text data associated with the tag to be set.
Args: szText - zero terminated string to put in tag
Referenced by SetText(), and SetText().
bool CIccTagZipUtf8Text::SetText | ( | const icUChar16 * | szText | ) |
Name: CIccTagZipUtf8Text::SetText
Purpose: Allows text data associated with the tag to be set.
Args: szText - zero terminated string to put in tag
References icConvertUTF16toUTF8(), lenientConversion, SetText(), and SetText().
|
virtual |
Name: CIccTagZipUtf8Text::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.
References CIccInfo::GetSigPathName(), icMaxStatus(), icMsgValidateWarning, icValidateWarning, m_nBufSize, and CIccTag::Validate().
|
virtual |
Name: CIccTagZipUtf8Text::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.
References GetType(), m_nBufSize, CIccTag::m_nReserved, m_pZipBuf, CIccIO::Write32(), and CIccIO::Write8().
|
protected |
|
inherited |
Referenced by CIccTag::CIccTag(), CIccTagMultiProcessElement::CIccTagMultiProcessElement(), CIccTagMultiProcessElement::CIccTagMultiProcessElement(), CIccTagMultiProcessElement::operator=(), CIccProfileXml::ParseTag(), CIccTagXmlStruct::ParseTag(), CIccMpeXmlTintArray::ParseXml(), CIccTagXmlArray::ParseXml(), CIccTagText::Read(), CIccTagUtf8Text::Read(), Read(), CIccTagUtf16Text::Read(), CIccTagTextDescription::Read(), CIccTagSignature::Read(), CIccTagNamedColor2::Read(), CIccTagXYZ::Read(), CIccTagChromaticity::Read(), CIccTagCicp::Read(), CIccTagSparseMatrixArray::Read(), CIccTagFixedNum< T, Tsig >::Read(), CIccTagNum< T, Tsig >::Read(), CIccTagFloatNum< T, Tsig >::Read(), CIccTagMeasurement::Read(), CIccTagMultiLocalizedUnicode::Read(), CIccTagData::Read(), CIccTagDateTime::Read(), CIccTagColorantOrder::Read(), CIccTagColorantTable::Read(), CIccTagViewingConditions::Read(), CIccTagProfileSeqDesc::Read(), CIccTagResponseCurveSet16::Read(), CIccTagSpectralDataInfo::Read(), CIccTagSpectralViewingConditions::Read(), CIccTagEmbeddedHeightImage::Read(), CIccTagEmbeddedNormalImage::Read(), CIccTagStruct::Read(), CIccTagArray::Read(), CIccTagDict::Read(), CIccTagCurve::Read(), CIccTagParametricCurve::Read(), CIccTagLutAtoB::Read(), CIccTagLut8::Read(), CIccTagLut16::Read(), CIccTagGamutBoundaryDesc::Read(), CIccTagMultiProcessElement::Read(), CIccTagProfileSequenceId::Read(), CIccTagEmbeddedProfile::Read(), CIccTag::Validate(), CIccTagText::Write(), CIccTagUtf8Text::Write(), Write(), CIccTagUtf16Text::Write(), CIccTagTextDescription::Write(), CIccTagSignature::Write(), CIccTagNamedColor2::Write(), CIccTagXYZ::Write(), CIccTagChromaticity::Write(), CIccTagCicp::Write(), CIccTagSparseMatrixArray::Write(), CIccTagFixedNum< T, Tsig >::Write(), CIccTagNum< T, Tsig >::Write(), CIccTagFloatNum< T, Tsig >::Write(), CIccTagMeasurement::Write(), CIccTagMultiLocalizedUnicode::Write(), CIccTagData::Write(), CIccTagDateTime::Write(), CIccTagColorantOrder::Write(), CIccTagColorantTable::Write(), CIccTagViewingConditions::Write(), CIccTagProfileSeqDesc::Write(), CIccTagResponseCurveSet16::Write(), CIccTagSpectralDataInfo::Write(), CIccTagSpectralViewingConditions::Write(), CIccTagEmbeddedHeightImage::Write(), CIccTagEmbeddedNormalImage::Write(), CIccTagStruct::Write(), CIccTagArray::Write(), CIccTagDict::Write(), CIccTagEmbeddedProfile::Write(), CIccTagCurve::Write(), CIccTagParametricCurve::Write(), CIccTagLutAtoB::Write(), CIccTagLut8::Write(), CIccTagLut16::Write(), CIccTagGamutBoundaryDesc::Write(), CIccTagMultiProcessElement::Write(), and CIccTagProfileSequenceId::Write().
|
protected |