Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
File: IccTagXML.cpp. More...
#include "IccTagXml.h"
#include "IccMpeXml.h"
#include "IccUtil.h"
#include "IccUtilXml.h"
#include "IccIoXml.h"
#include "IccSparseMatrix.h"
#include "IccProfileXml.h"
#include "IccStructFactory.h"
#include "IccArrayFactory.h"
#include <cstring>
#include <set>
#include <map>
#include <sstream>
#include <iomanip>
Go to the source code of this file.
Typedefs | |
typedef std::map< icUInt32Number, icTagSignature > | IccOffsetTagSigMap |
Functions | |
CIccCLUT * | icCLutFromXml (xmlNode *pNode, int nIn, int nOut, icConvertType nType, std::string &parseStr) |
bool | icCurvesFromXml (LPIccCurve *pCurve, icUInt32Number nChannels, xmlNode *pNode, icConvertType nType, std::string &parseStr) |
bool | icCurvesToXml (std::string &xml, const char *szName, CIccCurve **pCurves, int numCurve, icConvertType nType, std::string blanks) |
bool | icMatrixFromXml (CIccMatrix *pMatrix, xmlNode *pNode) |
bool | icMatrixToXml (std::string &xml, CIccMatrix *pMatrix, std::string blanks) |
bool | icMBBFromXml (CIccMBB *pMBB, xmlNode *pNode, icConvertType nType, std::string &parseStr) |
bool | icMBBToXml (std::string &xml, CIccMBB *pMBB, icConvertType nType, std::string blanks="", bool bSaveGridPoints=false) |
bool | icProfDescToXml (std::string &xml, CIccProfileDescStruct &p, std::string blanks="") |
static bool | icXmlDumpTextData (std::string &xml, std::string blanks, const char *szText, bool bConvert=true) |
bool | icXmlParseProfDesc (xmlNode *pNode, CIccProfileDescStruct &p, std::string &parseStr) |
static std::string | icXmlParseTextString (xmlNode *pNode, std::string &parseStr, bool bConvert=true) |
File: IccTagXML.cpp.
Contains: Implementation ICC tag XML format conversions
Version: V1
Copyright: (c) see ICC Software License
Definition in file IccTagXml.cpp.
typedef std::map<icUInt32Number, icTagSignature> IccOffsetTagSigMap |
Definition at line 79 of file IccTagXml.cpp.
CIccCLUT * icCLutFromXml | ( | xmlNode * | pNode, |
int | nIn, | ||
int | nOut, | ||
icConvertType | nType, | ||
std::string & | parseStr ) |
Definition at line 3315 of file IccTagXml.cpp.
References CIccXmlArrayType< T, Tsig >::GetBuf(), CIccCLUT::GetData(), CIccIO::GetLength(), CIccCLUT::GetOutputChannels(), CIccXmlArrayType< T, Tsig >::GetSize(), icConvert16Bit, icConvert8Bit, icConvertFloat, icConvertVariable, IccOpenFileIO(), icXmlAttrValue(), icXmlFindAttr(), icXmlFindNode(), CIccCLUT::Init(), CIccCLUT::NumPoints(), CIccXmlArrayType< T, Tsig >::ParseArray(), CIccXmlArrayType< T, Tsig >::ParseTextArrayNum(), CIccIO::Read16(), CIccIO::Read8(), CIccIO::ReadFloat32Float(), and CIccCLUT::SetPrecision().
Referenced by icMBBFromXml(), CIccMpeXmlCLUT::ParseXml(), CIccMpeXmlEmissionCLUT::ParseXml(), CIccMpeXmlExtCLUT::ParseXml(), and CIccMpeXmlReflectanceCLUT::ParseXml().
bool icCurvesFromXml | ( | LPIccCurve * | pCurve, |
icUInt32Number | nChannels, | ||
xmlNode * | pNode, | ||
icConvertType | nType, | ||
std::string & | parseStr ) |
Definition at line 3228 of file IccTagXml.cpp.
References IIccExtensionTag::GetExtClassName(), IIccExtensionTag::GetExtDerivedClassName(), CIccTag::GetExtension(), icXmlStrCmp, CIccCurveXml::ParseXml(), and CIccTagXml::ParseXml().
Referenced by icMBBFromXml().
bool icCurvesToXml | ( | std::string & | xml, |
const char * | szName, | ||
CIccCurve ** | pCurves, | ||
int | numCurve, | ||
icConvertType | nType, | ||
std::string | blanks ) |
Definition at line 3038 of file IccTagXml.cpp.
References IIccExtensionTag::GetExtDerivedClassName(), CIccTag::GetExtension(), and szName.
Referenced by icMBBToXml().
bool icMatrixFromXml | ( | CIccMatrix * | pMatrix, |
xmlNode * | pNode ) |
Definition at line 3289 of file IccTagXml.cpp.
References icXmlAttrValue(), icXmlFindAttr(), CIccMatrix::m_bUseConstants, and CIccMatrix::m_e.
Referenced by icMBBFromXml().
bool icMatrixToXml | ( | std::string & | xml, |
CIccMatrix * | pMatrix, | ||
std::string | blanks ) |
Definition at line 3103 of file IccTagXml.cpp.
References icXmlFloatFmt, CIccMatrix::m_bUseConstants, and CIccMatrix::m_e.
Referenced by icMBBToXml().
bool icMBBFromXml | ( | CIccMBB * | pMBB, |
xmlNode * | pNode, | ||
icConvertType | nType, | ||
std::string & | parseStr ) |
Definition at line 3781 of file IccTagXml.cpp.
References CIccMBB::GetCLUT(), CIccMBB::GetCurvesA(), CIccMBB::GetCurvesB(), CIccMBB::GetCurvesM(), CIccMBB::GetMatrix(), icCLutFromXml(), icCurvesFromXml(), icMatrixFromXml(), icXmlAttrValue(), icXmlFindAttr(), icXmlFindNode(), icXmlStrCmp, CIccMBB::Init(), CIccMBB::IsInputB(), CIccMBB::IsInputMatrix(), CIccMBB::NewCurvesA(), CIccMBB::NewCurvesB(), CIccMBB::NewCurvesM(), CIccMBB::NewMatrix(), and CIccMBB::SetCLUT().
Referenced by CIccTagXmlLut16::ParseXml(), CIccTagXmlLut8::ParseXml(), CIccTagXmlLutAtoB::ParseXml(), and CIccTagXmlLutBtoA::ParseXml().
bool icMBBToXml | ( | std::string & | xml, |
CIccMBB * | pMBB, | ||
icConvertType | nType, | ||
std::string | blanks = "", | ||
bool | bSaveGridPoints = false ) |
Definition at line 3127 of file IccTagXml.cpp.
References CIccMBB::GetCLUT(), CIccMBB::GetCurvesA(), CIccMBB::GetCurvesB(), CIccMBB::GetCurvesM(), CIccMBB::GetMatrix(), icCLUTToXml(), icCurvesToXml(), icMatrixToXml(), CIccMBB::InputChannels(), CIccMBB::IsInputMatrix(), CIccMBB::OutputChannels(), and CIccMBB::SwapMBCurves().
Referenced by CIccTagXmlLut16::ToXml(), CIccTagXmlLut8::ToXml(), CIccTagXmlLutAtoB::ToXml(), and CIccTagXmlLutBtoA::ToXml().
bool icProfDescToXml | ( | std::string & | xml, |
CIccProfileDescStruct & | p, | ||
std::string | blanks = "" ) |
Definition at line 2181 of file IccTagXml.cpp.
References CIccTagXml::GetExtClassName(), CIccTag::GetExtension(), CIccProfileDescText::GetTag(), CIccTag::GetType(), icFixXml(), icGetDeviceAttrName(), icGetSigStr(), icGetTagSigTypeName(), CIccProfileDescStruct::m_attributes, CIccProfileDescStruct::m_deviceMfg, CIccProfileDescStruct::m_deviceMfgDesc, CIccProfileDescStruct::m_deviceModel, CIccProfileDescStruct::m_deviceModelDesc, CIccProfileDescStruct::m_technology, and CIccTagXml::ToXml().
Referenced by CIccTagXmlProfileSeqDesc::ToXml().
|
static |
Definition at line 124 of file IccTagXml.cpp.
References icAnsiToUtf8(), and icXmlDumpHexData().
Referenced by CIccTagXmlText::ToXml(), CIccTagXmlTextDescription::ToXml(), CIccTagXmlUtf16Text::ToXml(), and CIccTagXmlUtf8Text::ToXml().
bool icXmlParseProfDesc | ( | xmlNode * | pNode, |
CIccProfileDescStruct & | p, | ||
std::string & | parseStr ) |
Definition at line 2257 of file IccTagXml.cpp.
References CIccTagXml::GetExtClassName(), CIccTag::GetExtension(), CIccProfileDescText::GetTag(), icGetDeviceAttrValue(), icGetTypeNameTagSig(), icXmlFindNode(), icXmlStrCmp, icXmlStrToSig(), CIccProfileDescStruct::m_attributes, CIccProfileDescStruct::m_deviceMfg, CIccProfileDescStruct::m_deviceMfgDesc, CIccProfileDescStruct::m_deviceModel, CIccProfileDescStruct::m_deviceModelDesc, CIccProfileDescStruct::m_technology, CIccTagXml::ParseXml(), and CIccProfileDescText::SetType().
Referenced by CIccTagXmlProfileSeqDesc::ParseXml().
|
static |
Definition at line 180 of file IccTagXml.cpp.
References CIccXmlArrayType< T, Tsig >::GetBuf(), CIccIO::GetLength(), CIccXmlArrayType< T, Tsig >::GetSize(), IccOpenFileIO(), icUtf8ToAnsi(), icXmlAttrValue(), icXmlGetHexData(), icXmlGetHexDataSize(), icXmlStrCmp, CIccIO::ReadLine(), and CIccXmlArrayType< T, Tsig >::SetSize().
Referenced by CIccTagXmlText::ParseXml(), CIccTagXmlTextDescription::ParseXml(), CIccTagXmlUtf16Text::ParseXml(), CIccTagXmlUtf8Text::ParseXml(), CIccTagXmlZipUtf8Text::ParseXml(), and CIccTagXmlZipXml::ParseXml().