IccMAX 2.1.27
Color Profile Tools
|
#include "IccJsonUtil.h"
#include "IccUtil.h"
#include <stdio.h>
#include <string>
#include <sstream>
Go to the source code of this file.
Functions | |
template<typename T > | |
std::string | arrayToJson (T *a, int nCount) |
template std::string | arrayToJson< icInt16Number > (icInt16Number *, int) |
template std::string | arrayToJson< icInt32Number > (icInt32Number *, int) |
template std::string | arrayToJson< icInt64Number > (icInt64Number *, int) |
template std::string | arrayToJson< icInt8Number > (icInt8Number *, int) |
template std::string | arrayToJson< icUInt16Number > (icUInt16Number *, int) |
template std::string | arrayToJson< icUInt32Number > (icUInt32Number *, int) |
template std::string | arrayToJson< icUInt64Number > (icUInt64Number *, int) |
template std::string | arrayToJson< icUInt8Number > (icUInt8Number *, int) |
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 > &a) |
template<typename T > | |
bool | jsonToArray (const json &v, T *vals, int n) |
template bool | jsonToArray< double > (const json &, double *, int) |
template bool | jsonToArray< double > (const json &, std::vector< double > &) |
template bool | jsonToArray< float > (const json &, float *, int) |
template bool | jsonToArray< float > (const json &, std::vector< float > &) |
template bool | jsonToArray< icInt16Number > (const json &, icInt16Number *, int) |
template bool | jsonToArray< icInt16Number > (const json &, std::vector< icInt16Number > &) |
template bool | jsonToArray< icInt32Number > (const json &, icInt32Number *, int) |
template bool | jsonToArray< icInt32Number > (const json &, std::vector< icInt32Number > &) |
template bool | jsonToArray< icInt64Number > (const json &, icInt64Number *, int) |
template bool | jsonToArray< icInt64Number > (const json &, std::vector< icInt64Number > &) |
template bool | jsonToArray< icInt8Number > (const json &, icInt8Number *, int) |
template bool | jsonToArray< icInt8Number > (const json &, std::vector< icInt8Number > &) |
template bool | jsonToArray< icUInt16Number > (const json &, icUInt16Number *, int) |
template bool | jsonToArray< icUInt16Number > (const json &, std::vector< icUInt16Number > &) |
template bool | jsonToArray< icUInt32Number > (const json &, icUInt32Number *, int) |
template bool | jsonToArray< icUInt32Number > (const json &, std::vector< icUInt32Number > &) |
template bool | jsonToArray< icUInt64Number > (const json &, icUInt64Number *, int) |
template bool | jsonToArray< icUInt64Number > (const json &, std::vector< icUInt64Number > &) |
template bool | jsonToArray< icUInt8Number > (const json &, icUInt8Number *, int) |
template bool | jsonToArray< icUInt8Number > (const json &, std::vector< icUInt8Number > &) |
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 &value) |
template<> | |
bool | jsonToValue (const json &j, std::string &value) |
template<typename T > | |
bool | jsonToValue (const json &j, T &nValue) |
template bool | jsonToValue< double > (const json &, double &) |
template bool | jsonToValue< float > (const json &, float &) |
template bool | jsonToValue< icInt16Number > (const json &, icInt16Number &) |
template bool | jsonToValue< icInt64Number > (const json &, icInt64Number &) |
template bool | jsonToValue< icInt8Number > (const json &, icInt8Number &) |
template bool | jsonToValue< icUInt16Number > (const json &, icUInt16Number &) |
template bool | jsonToValue< icUInt32Number > (const json &, icUInt32Number &) |
template bool | jsonToValue< icUInt64Number > (const json &, icUInt64Number &) |
template bool | jsonToValue< icUInt8Number > (const json &, icUInt8Number &) |
template bool | jsonToValue< int > (const json &, int &) |
bool | loadJsonFrom (json &j, const char *szFname) |
bool | saveJsonAs (const json &j, const char *szFname, int indent) |
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<typename T > | |
std::string | valueToJson (const char *name, T v) |
template std::string | valueToJson< double > (const char *, double) |
template std::string | valueToJson< float > (const char *, float) |
template std::string | valueToJson< icInt16Number > (const char *, icInt16Number) |
template std::string | valueToJson< icInt32Number > (const char *, icInt32Number) |
template std::string | valueToJson< icInt64Number > (const char *, icInt64Number) |
template std::string | valueToJson< icInt8Number > (const char *, icInt8Number) |
template std::string | valueToJson< icUInt16Number > (const char *, icUInt16Number) |
template std::string | valueToJson< icUInt32Number > (const char *, icUInt32Number) |
template std::string | valueToJson< icUInt64Number > (const char *, icUInt64Number) |
template std::string | valueToJson< icUInt8Number > (const char *, icUInt8Number) |
std::string arrayToJson | ( | T * | a, |
int | nCount | ||
) |
template std::string arrayToJson< icInt16Number > | ( | icInt16Number * | , |
int | |||
) |
template std::string arrayToJson< icInt32Number > | ( | icInt32Number * | , |
int | |||
) |
template std::string arrayToJson< icInt64Number > | ( | icInt64Number * | , |
int | |||
) |
template std::string arrayToJson< icInt8Number > | ( | icInt8Number * | , |
int | |||
) |
template std::string arrayToJson< icUInt16Number > | ( | icUInt16Number * | , |
int | |||
) |
template std::string arrayToJson< icUInt32Number > | ( | icUInt32Number * | , |
int | |||
) |
template std::string arrayToJson< icUInt64Number > | ( | icUInt64Number * | , |
int | |||
) |
template std::string arrayToJson< icUInt8Number > | ( | icUInt8Number * | , |
int | |||
) |
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 > & | a | ||
) |
Referenced by CIccCfgDataEntry::fromJson().
bool jsonToArray | ( | const json & | v, |
T * | vals, | ||
int | n | ||
) |
template bool jsonToArray< double > | ( | const json & | , |
double * | , | ||
int | |||
) |
template bool jsonToArray< double > | ( | const json & | , |
std::vector< double > & | |||
) |
template bool jsonToArray< float > | ( | const json & | , |
float * | , | ||
int | |||
) |
template bool jsonToArray< float > | ( | const json & | , |
std::vector< float > & | |||
) |
template bool jsonToArray< icInt16Number > | ( | const json & | , |
icInt16Number * | , | ||
int | |||
) |
template bool jsonToArray< icInt16Number > | ( | const json & | , |
std::vector< icInt16Number > & | |||
) |
template bool jsonToArray< icInt32Number > | ( | const json & | , |
icInt32Number * | , | ||
int | |||
) |
template bool jsonToArray< icInt32Number > | ( | const json & | , |
std::vector< icInt32Number > & | |||
) |
template bool jsonToArray< icInt64Number > | ( | const json & | , |
icInt64Number * | , | ||
int | |||
) |
template bool jsonToArray< icInt64Number > | ( | const json & | , |
std::vector< icInt64Number > & | |||
) |
template bool jsonToArray< icInt8Number > | ( | const json & | , |
icInt8Number * | , | ||
int | |||
) |
template bool jsonToArray< icInt8Number > | ( | const json & | , |
std::vector< icInt8Number > & | |||
) |
template bool jsonToArray< icUInt16Number > | ( | const json & | , |
icUInt16Number * | , | ||
int | |||
) |
template bool jsonToArray< icUInt16Number > | ( | const json & | , |
std::vector< icUInt16Number > & | |||
) |
template bool jsonToArray< icUInt32Number > | ( | const json & | , |
icUInt32Number * | , | ||
int | |||
) |
template bool jsonToArray< icUInt32Number > | ( | const json & | , |
std::vector< icUInt32Number > & | |||
) |
template bool jsonToArray< icUInt64Number > | ( | const json & | , |
icUInt64Number * | , | ||
int | |||
) |
template bool jsonToArray< icUInt64Number > | ( | const json & | , |
std::vector< icUInt64Number > & | |||
) |
template bool jsonToArray< icUInt8Number > | ( | const json & | , |
icUInt8Number * | , | ||
int | |||
) |
template bool jsonToArray< icUInt8Number > | ( | const json & | , |
std::vector< icUInt8Number > & | |||
) |
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 & | value | ||
) |
bool jsonToValue | ( | const json & | j, |
std::string & | value | ||
) |
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().
template bool jsonToValue< double > | ( | const json & | , |
double & | |||
) |
template bool jsonToValue< float > | ( | const json & | , |
float & | |||
) |
template bool jsonToValue< icInt16Number > | ( | const json & | , |
icInt16Number & | |||
) |
template bool jsonToValue< icInt64Number > | ( | const json & | , |
icInt64Number & | |||
) |
template bool jsonToValue< icInt8Number > | ( | const json & | , |
icInt8Number & | |||
) |
template bool jsonToValue< icUInt16Number > | ( | const json & | , |
icUInt16Number & | |||
) |
template bool jsonToValue< icUInt32Number > | ( | const json & | , |
icUInt32Number & | |||
) |
template bool jsonToValue< icUInt64Number > | ( | const json & | , |
icUInt64Number & | |||
) |
template bool jsonToValue< icUInt8Number > | ( | const json & | , |
icUInt8Number & | |||
) |
template bool jsonToValue< int > | ( | const json & | , |
int & | |||
) |
bool loadJsonFrom | ( | json & | j, |
const char * | szFname | ||
) |
Referenced by main(), and main().
bool saveJsonAs | ( | const json & | j, |
const char * | szFname, | ||
int | indent | ||
) |
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, |
T | v | ||
) |
Referenced by valueToJson().
template std::string valueToJson< double > | ( | const char * | , |
double | |||
) |
template std::string valueToJson< float > | ( | const char * | , |
float | |||
) |
template std::string valueToJson< icInt16Number > | ( | const char * | , |
icInt16Number | |||
) |
template std::string valueToJson< icInt32Number > | ( | const char * | , |
icInt32Number | |||
) |
template std::string valueToJson< icInt64Number > | ( | const char * | , |
icInt64Number | |||
) |
template std::string valueToJson< icInt8Number > | ( | const char * | , |
icInt8Number | |||
) |
template std::string valueToJson< icUInt16Number > | ( | const char * | , |
icUInt16Number | |||
) |
template std::string valueToJson< icUInt32Number > | ( | const char * | , |
icUInt32Number | |||
) |
template std::string valueToJson< icUInt64Number > | ( | const char * | , |
icUInt64Number | |||
) |
template std::string valueToJson< icUInt8Number > | ( | const char * | , |
icUInt8Number | |||
) |