DUECA/DUSIME
|
Conversion routines for DCO to JSON. More...
Macros | |
#define | RAPIDJSON_WRITE_DEFAULT_FLAGS kWriteNanAndInfFlag |
Define relaxed acceptance of NaN and Inf. | |
Functions | |
void | dueca::DCOtoJSONcompact (rapidjson::Writer< rapidjson::OStreamWrapper > &writer, const CommObjectReader &reader) |
Convert the data from a DCO object to a JSON stringbuffer. | |
void | dueca::DCOtoJSONcompact (rapidjson::Writer< rapidjson::StringBuffer > &writer, const CommObjectReader &reader) |
Convert the data from a DCO object to a JSON stringbuffer. | |
void | dueca::DCOtoJSONcompact (rapidjson::StringBuffer &doc, const char *dcoclass, const void *object) |
Convert the data from a DCO object to a JSON stringbuffer. | |
void | dueca::DCOtoJSONstrict (rapidjson::Writer< rapidjson::StringBuffer > &writer, const CommObjectReader &reader) |
Convert the data from a DCO object to a JSON stringbuffer. | |
void | dueca::DCOtoJSONstrict (rapidjson::Writer< rapidjson::OStreamWrapper > &writer, const CommObjectReader &reader) |
Convert the data from a DCO object to a JSON stringbuffer. | |
void | dueca::DCOtoJSONstrict (rapidjson::StringBuffer &doc, const char *dcoclass, const void *object) |
Convert the data from a DCO object to a JSON stringbuffer. | |
template<typename T > | |
const char * | dueca::getclassname () |
classname function, should exist for DCO objects | |
template<class WR , class DCO > | |
void | dueca::dco_to_json (WR &writer, const DCO &object) |
Convert the data from a DCO object into a JSON writer Templated version, directly access the (known) object. | |
Conversion routines for DCO to JSON.
void dueca::DCOtoJSONcompact | ( | rapidjson::Writer< rapidjson::OStreamWrapper > & | writer, |
const CommObjectReader & | reader ) |
Convert the data from a DCO object to a JSON stringbuffer.
Compact variant, does not code DCO type information, so you need to be sure of the DCO type to interpret this data. Also "extended" JSON, codes NaN, Infinite and -Infinite. Used internally in DUECA, careful about use with external clients.
writer | RapidJSON writer object |
reader | Channel access object. |
void dueca::DCOtoJSONcompact | ( | rapidjson::Writer< rapidjson::StringBuffer > & | writer, |
const CommObjectReader & | reader ) |
Convert the data from a DCO object to a JSON stringbuffer.
Compact variant, does not code DCO type information, so you need to be sure of the DCO type to interpret this data. Also "extended" JSON, codes NaN, Infinite and -Infinite. Used internally in DUECA, careful about use with external clients.
writer | RapidJSON writer object |
reader | Channel access object. |
void dueca::DCOtoJSONcompact | ( | rapidjson::StringBuffer & | doc, |
const char * | dcoclass, | ||
const void * | object ) |
Convert the data from a DCO object to a JSON stringbuffer.
Compact variant, does not code DCO type information, so you need to be sure of the DCO type to interpret this data. Also "extended" JSON, codes NaN, Infinite and -Infinite. Used internally in DUECA, careful about use with external clients.
doc | Stringbuffer |
dcoclass | Type name of the DCO object |
object | Void pointer to the object with the data. |
void dueca::DCOtoJSONstrict | ( | rapidjson::Writer< rapidjson::StringBuffer > & | writer, |
const CommObjectReader & | reader ) |
Convert the data from a DCO object to a JSON stringbuffer.
Compact variant, does not code DCO type information, so you need to be sure of the DCO type to interpret this data. Stricter version, +Infinity and -Infinity are converted to large floats, NaN is converted to NULL.
writer | RapidJSON writer object |
reader | Channel access object. |
void dueca::DCOtoJSONstrict | ( | rapidjson::Writer< rapidjson::OStreamWrapper > & | writer, |
const CommObjectReader & | reader ) |
Convert the data from a DCO object to a JSON stringbuffer.
Compact variant, does not code DCO type information, so you need to be sure of the DCO type to interpret this data. Stricter version, +Infinity and -Infinity are converted to large floats, NaN is converted to NULL.
writer | RapidJSON writer object |
reader | Channel access object. |
void dueca::DCOtoJSONstrict | ( | rapidjson::StringBuffer & | doc, |
const char * | dcoclass, | ||
const void * | object ) |
Convert the data from a DCO object to a JSON stringbuffer.
Compact variant, does not code DCO type information, so you need to be sure of the DCO type to interpret this data. Stricter version, +Infinity and -Infinity are converted to large floats, NaN is converted to NULL.
doc | Stringbuffer |
dcoclass | Type name of the DCO object |
object | Void pointer to the object with the data. |
const char * dueca::getclassname | ( | ) |
classname function, should exist for DCO objects
classname function, default for DCO objects
Convert the data from a DCO object into a JSON writer Templated version, directly access the (known) object.
writer | JSON writer object. |
object | Object to be read. |
WR | Compatible type for JSON writing |
DCO | Class of the DCO object |