DUECA/DUSIME
Loading...
Searching...
No Matches
Functions
DCOtoXML.hxx File Reference

Conversion routines for writing DCO objects to XML. More...

Include dependency graph for DCOtoXML.hxx:

Functions

void dueca::DCOtoXML (pugi::xml_node &writer, CommObjectReader &reader, bool meta=false)
 Convert the data from a DCO object to an XML stringbuffer.
 
void dueca::DCOtoXML (pugi::xml_node &writer, const char *dcoclass, const void *object, bool meta=false)
 Convert the data from a DCO object to a JSON stringbuffer.
 

Detailed Description

Conversion routines for writing DCO objects to XML.

Function Documentation

◆ DCOtoXML() [1/2]

void dueca::DCOtoXML ( pugi::xml_node & writer,
CommObjectReader & reader,
bool meta = false )

Convert the data from a DCO object to an XML stringbuffer.

Codes DCO type information, using a dueca::CommObjectReader object. Note that the dueca::DCOReader that can be created with an access token is also a dueca::CommObjectReader.

Parameters
writerXML node writer object
readerChannel access object.
metaIf true, the type information is added for member values.

◆ DCOtoXML() [2/2]

void dueca::DCOtoXML ( pugi::xml_node & writer,
const char * dcoclass,
const void * object,
bool meta = false )

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

Codes DCO type information, using the name of the coded class, and a pointer to the data.

Parameters
writerXML node writer object
dcoclassName of the object class.
objectPointer to the object to be read.
metaIf true, the type information is added for member values.