IccMAX 2.1.27
Color Profile Tools
|
#include <list>
#include <string>
#include <vector>
#include <nlohmann/json.hpp>
#include "../../../IccProfLib/IccDefs.h"
Go to the source code of this file.
Typedefs | |
using | json = nlohmann::json |
Functions | |
template<typename 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) |
template bool | jsonToValue< bool > (const json &, bool &) |
template bool | jsonToValue< int > (const json &, int &) |
template bool | jsonToValue< std::string > (const json &, std::string &) |
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 &v) |
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) |
using json = nlohmann::json |
std::string arrayToJson | ( | T * | a, |
int | nCount | ||
) |
std::string fixJsonString | ( | const char * | v | ) |
Referenced by valueToJson(), valueToJson(), and valueToJson().
bool jsonToArray | ( | const json & | v, |
std::vector< std::string > & | vals | ||
) |
bool jsonToArray | ( | const json & | v, |
std::vector< T > & | vals | ||
) |
Referenced by CIccCfgDataEntry::fromJson().
bool jsonToArray | ( | const json & | v, |
T * | vals, | ||
int | n | ||
) |
bool jsonToColorSpace | ( | const json & | j, |
icColorSpaceSignature & | sig | ||
) |
References icGetSigVal(), and jsonToValue().
Referenced by CIccCfgDataApply::fromJson(), and CIccCfgColorData::fromJson().
bool jsonToCStr | ( | const json & | j, |
char * | str, | ||
int | nSize | ||
) |
bool jsonToList | ( | const json & | v, |
std::list< std::string > & | vals | ||
) |
Referenced by CIccCfgDataEntry::fromJson().
bool jsonToString | ( | const json & | j, |
std::string & | value | ||
) |
Referenced by jsonToValue().
bool jsonToValue | ( | const json & | j, |
bool & | nValue | ||
) |
bool jsonToValue | ( | const json & | j, |
std::string & | nValue | ||
) |
bool jsonToValue | ( | const json & | j, |
T & | nValue | ||
) |
Referenced by CIccCfgDataApply::fromJson(), CIccCfgImageApply::fromJson(), CIccCfgCreateLink::fromJson(), CIccCfgProfile::fromJson(), CIccCfgDataEntry::fromJson(), CIccCfgColorData::fromJson(), jsonToColorSpace(), jsonToValue(), jsonToValue(), and jsonToValue().
|
extern |
|
extern |
|
extern |
bool loadJsonFrom | ( | json & | j, |
const char * | szFname | ||
) |
Referenced by main(), and main().
bool saveJsonAs | ( | const json & | j, |
const char * | szFname, | ||
int | indent = 1 |
||
) |
Referenced by main().
std::string valueToJson | ( | const char * | name, |
char * | v | ||
) |
References fixJsonString().
std::string valueToJson | ( | const char * | name, |
const char * | v | ||
) |
References fixJsonString().
std::string valueToJson | ( | const char * | name, |
const char * | v, | ||
bool & | bPreviousLine | ||
) |
References valueToJson().
std::string valueToJson | ( | const char * | name, |
const std::string & | v | ||
) |
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 | ||
) |
Referenced by valueToJson().
std::string valueToJsonUuid | ( | const char * | name, |
const char * | v, | ||
bool | bBinary = false |
||
) |