#include <IccCmmConfig.h>
◆ CIccCfgCreateLink()
CIccCfgCreateLink::CIccCfgCreateLink |
( |
| ) |
|
433{
435}
void reset()
Definition IccCmmConfig.cpp:437
References reset().
◆ ~CIccCfgCreateLink()
virtual CIccCfgCreateLink::~CIccCfgCreateLink |
( |
| ) |
|
|
inlinevirtual |
◆ fromArgs()
int CIccCfgCreateLink::fromArgs |
( |
const char ** |
args, |
|
|
int |
nArg, |
|
|
bool |
bReset = false |
|
) |
| |
450{
451 if (nArg < 8) {
452 return 0;
453 }
454
455 if (bReset)
457
459
460 int n = atoi(args[1]);
462 int o = atoi(args[3]);
463
464 switch (n)
465 {
466 case 0:
468 break;
469
470 case 1:
473 break;
474
475 default:
477 break;
478 }
479
481
484
486
487 return 8;
488}
unsigned char icUInt8Number
Definition icProfileHeader.h:250
float icFloatNumber
Definition IccDefs.h:101
@ icCfgCreateIccLinkV5
Definition IccCmmConfig.h:79
@ icCfgCreateTextCube
Definition IccCmmConfig.h:77
@ icCfgCreateIccLinkV4
Definition IccCmmConfig.h:78
std::string m_linkTitle
Definition IccCmmConfig.h:97
icFloatNumber m_linkMaxRange
Definition IccCmmConfig.h:99
std::string m_linkFile
Definition IccCmmConfig.h:93
icCfgLinkType m_linkType
Definition IccCmmConfig.h:94
icFloatNumber m_linkMinRange
Definition IccCmmConfig.h:98
bool m_useSourceTransform
Definition IccCmmConfig.h:100
icUInt8Number m_linkGridSize
Definition IccCmmConfig.h:95
icUInt8Number m_linkPrecision
Definition IccCmmConfig.h:96
References icCfgCreateIccLinkV4, icCfgCreateIccLinkV5, icCfgCreateTextCube, m_linkFile, m_linkGridSize, m_linkMaxRange, m_linkMinRange, m_linkPrecision, m_linkTitle, m_linkType, m_useSourceTransform, and reset().
◆ fromJson()
bool CIccCfgCreateLink::fromJson |
( |
json |
obj, |
|
|
bool |
bReset = false |
|
) |
| |
491{
492 if (!j.is_object())
493 return false;
494
495 if (bReset)
497
499
500 std::string linkType;
502 if (!
stricmp(linkType.c_str(),
"cubeFile"))
504 else if (!
stricmp(linkType.c_str(),
"iccDeviceLinkV5"))
506 else
508
515
516 return true;
517}
#define stricmp
Definition IccProfLibConf.h:149
bool jsonToValue(const json &j, T &nValue)
Definition IccJsonUtil.cpp:200
References icCfgCreateIccLinkV4, icCfgCreateIccLinkV5, icCfgCreateTextCube, jsonToValue(), m_linkFile, m_linkGridSize, m_linkMaxRange, m_linkMinRange, m_linkPrecision, m_linkTitle, m_linkType, m_useSourceTransform, and reset().
◆ reset()
void CIccCfgCreateLink::reset |
( |
| ) |
|
References icCfgCreateIccLinkV4, m_linkFile, m_linkGridSize, m_linkMaxRange, m_linkMinRange, m_linkPrecision, m_linkTitle, m_linkType, and m_useSourceTransform.
Referenced by CIccCfgCreateLink(), fromArgs(), and fromJson().
◆ toJson()
void CIccCfgCreateLink::toJson |
( |
json & |
obj | ) |
const |
◆ m_linkFile
std::string CIccCfgCreateLink::m_linkFile |
◆ m_linkGridSize
◆ m_linkMaxRange
◆ m_linkMinRange
◆ m_linkPrecision
◆ m_linkTitle
std::string CIccCfgCreateLink::m_linkTitle |
◆ m_linkType
◆ m_useSourceTransform
bool CIccCfgCreateLink::m_useSourceTransform |
The documentation for this class was generated from the following files: