DUECA/DUSIME
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
JSONtoDCO.hxx File Reference

Conversion routines for JSON to DCO. More...

Include dependency graph for JSONtoDCO.hxx:

Macros

#define RAPIDJSON_PARSE_DEFAULT_FLAGS   kParseNanAndInfFlag
 Macro definition allowing NaN and Inf parsing.
 

Typedefs

typedef rapidjson::GenericValue< rapidjson::UTF8<> > dueca::JValue
 Shorthand for the used JSON type.
 

Functions

void dueca::JSONtoDCO (const JValue &reader, CommObjectWriter &writer)
 Convert the data from a JSON stringbuffer to a DCO object.
 
template<typename T >
const chardueca::getclassname ()
 classname function, should exist for DCO objects
 
template<class RD , class DCO >
void dueca::json_to_dco (RD &reader, DCO &object)
 Convert the data from a JSON representation into a DCO object.
 

Detailed Description

Conversion routines for JSON to DCO.

Function Documentation

◆ JSONtoDCO()

void dueca::JSONtoDCO ( const JValue & reader,
CommObjectWriter & writer )

Convert the data from a JSON stringbuffer to a DCO object.

Parameters
readerRapidJSON value object.
writerDCO channel access object.

◆ getclassname()

template<typename T >
const char * dueca::getclassname ( )

classname function, should exist for DCO objects

classname function, default for DCO objects

◆ json_to_dco()

template<class RD , class DCO >
void dueca::json_to_dco ( RD & reader,
DCO & object )

Convert the data from a JSON representation into a DCO object.

Templated version, directly access the (known) object.

Parameters
readerJSON representation.
objectObject to be written.
Template Parameters
WRCompatible type for JSON writing
DCOClass of the DCO object