Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
#include <nlohmann/json.hpp>
#include "..\..\..\IccProfLib\IccDefs.h"
Go to the source code of this file.
Functions | |
template<class T > | |
std::string | arrayToJson (T *a, int nCount) |
std::string | fixJsonString (const char *v) |
bool | jsonToArray (const json &v, std::vector< std::string > &vals) |
template<typename T > | |
bool | jsonToArray (const json &v, std::vector< T > &vals) |
template<typename T > | |
bool | jsonToArray (const json &v, T *vals, int n) |
bool | jsonToColorSpace (const json &j, icColorSpaceSignature &sig) |
bool | jsonToCStr (const json &j, char *str, int nSize) |
bool | jsonToList (const json &v, std::list< std::string > &vals) |
bool | jsonToString (const json &j, std::string &value) |
template<> | |
bool | jsonToValue (const json &j, bool &nValue) |
template<> | |
bool | jsonToValue (const json &j, std::string &nValue) |
template<typename T > | |
bool | jsonToValue (const json &j, T &nValue) |
bool | loadJsonFrom (json &j, const char *szFname) |
bool | saveJsonAs (const json &j, const char *szFname, int indent=1) |
template<> | |
std::string | valueToJson (const char *name, char *v) |
template<> | |
std::string | valueToJson (const char *name, const char *v) |
std::string | valueToJson (const char *name, const char *v, bool &bPreviousLine) |
template<> | |
std::string | valueToJson (const char *name, const std::string &) |
template<> | |
std::string | valueToJson (const char *name, double v) |
template<> | |
std::string | valueToJson (const char *name, float v) |
template<typename T > | |
std::string | valueToJson (const char *name, T v) |
std::string | valueToJsonUuid (const char *name, const char *v, bool bBinary=false) |
std::string arrayToJson | ( | T * | a, |
int | nCount ) |
Definition at line 76 of file IccJsonUtil.cpp.
std::string fixJsonString | ( | const char * | v | ) |
Definition at line 125 of file IccJsonUtil.cpp.
Referenced by valueToJson(), valueToJson(), and valueToJson().
bool jsonToArray | ( | const json & | v, |
std::vector< std::string > & | vals ) |
Definition at line 271 of file IccJsonUtil.cpp.
bool jsonToArray | ( | const json & | v, |
std::vector< T > & | vals ) |
Definition at line 312 of file IccJsonUtil.cpp.
bool jsonToArray | ( | const json & | v, |
T * | vals, | ||
int | n ) |
Definition at line 242 of file IccJsonUtil.cpp.
Referenced by CIccCfgDataEntry::fromJson().
bool jsonToColorSpace | ( | const json & | j, |
icColorSpaceSignature & | sig ) |
Definition at line 358 of file IccJsonUtil.cpp.
References icGetSigVal(), icSigUnknownData, jsonToValue(), and sig.
Referenced by CIccCfgColorData::fromJson(), and CIccCfgDataApply::fromJson().
bool jsonToCStr | ( | const json & | j, |
char * | str, | ||
int | nSize ) |
Definition at line 346 of file IccJsonUtil.cpp.
bool jsonToList | ( | const json & | v, |
std::list< std::string > & | vals ) |
Definition at line 293 of file IccJsonUtil.cpp.
Referenced by CIccCfgDataEntry::fromJson().
bool jsonToString | ( | const json & | j, |
std::string & | value ) |
Definition at line 199 of file IccJsonUtil.cpp.
Referenced by jsonToValue().
bool jsonToValue | ( | const json & | j, |
bool & | nValue ) |
Definition at line 210 of file IccJsonUtil.cpp.
bool jsonToValue | ( | const json & | j, |
std::string & | nValue ) |
Definition at line 236 of file IccJsonUtil.cpp.
References jsonToString().
bool jsonToValue | ( | const json & | j, |
T & | nValue ) |
Definition at line 176 of file IccJsonUtil.cpp.
Referenced by jsonToColorSpace().
bool loadJsonFrom | ( | json & | j, |
const char * | szFname ) |
Definition at line 399 of file IccJsonUtil.cpp.
Referenced by main(), and main().
bool saveJsonAs | ( | const json & | j, |
const char * | szFname, | ||
int | indent = 1 ) |
Definition at line 372 of file IccJsonUtil.cpp.
Referenced by main().
std::string valueToJson | ( | const char * | name, |
char * | v ) |
Definition at line 154 of file IccJsonUtil.cpp.
References fixJsonString().
std::string valueToJson | ( | const char * | name, |
const char * | v ) |
Definition at line 146 of file IccJsonUtil.cpp.
References fixJsonString().
std::string valueToJson | ( | const char * | name, |
const char * | v, | ||
bool & | bPreviousLine ) |
Definition at line 161 of file IccJsonUtil.cpp.
References valueToJson().
std::string valueToJson | ( | const char * | name, |
const std::string & | v ) |
Definition at line 139 of file IccJsonUtil.cpp.
References fixJsonString().
std::string valueToJson | ( | const char * | name, |
double | v ) |
std::string valueToJson | ( | const char * | name, |
float | v ) |
std::string valueToJson | ( | const char * | name, |
T | v ) |
Definition at line 104 of file IccJsonUtil.cpp.
Referenced by valueToJson().
std::string valueToJsonUuid | ( | const char * | name, |
const char * | v, | ||
bool | bBinary = false ) |