Description
Conversion to and from Generic .
Conversion functions to convert from other formats to Generic and from Generic to other formats.
Functions
Generic | fromJSON(std::istream & in) |
void | toJSON(const Generic & data, std::ostream & out) |
Documentation
function
Util::GenericConversion::fromJSON
public |
Generic fromJSON( | std::istream & | in ) |
Read JavaScript Object Notation (JSON) from the given stream and convert the data to Generic .
Parameters
- in
- Stream containing JSON data
Returns
Generic representation of the JSON data
Defined in Util/GenericConversion.h:32
function
Util::GenericConversion::toJSON
public |
void toJSON( | const Generic & | data, |
std::ostream & | out | |
) |
Convert the given data to JavaScript Object Notation (JSON) and write it to the given stream.
Parameters
- data
- Generic representation of the data
- out
- Stream to which the JSON data will be written
Defined in Util/GenericConversion.h:41