ADTF  3.18.2
cDumper

Dumps a structure definition to an output stream. More...

Public Member Functions

 cDumper (const ddl::DDStructure &oStructure)
 Initializes the dumper with an existing structure definition. More...
 
void PrintTo (std::ostream &oStream) const
 Prints the structure to the given stream. More...
 

Private Attributes

std::string m_strDescriptionDump
 

Detailed Description

Dumps a structure definition to an output stream.

Example Usage

auto oType = structure<>("tStruct")
.Add<uint8_t>("nValue1")
.Add<uint8_t>("nValue2");
std::cout << cDumper(oType);
cDumper(const ddl::DDStructure &oStructure)
Initializes the dumper with an existing structure definition.

Definition at line 36 of file ddl_dumper.h.

Constructor & Destructor Documentation

◆ cDumper()

cDumper ( const ddl::DDStructure oStructure)

Initializes the dumper with an existing structure definition.

Parameters
[in]oStructureThe structure definition.

Member Function Documentation

◆ PrintTo()

void PrintTo ( std::ostream &  oStream) const

Prints the structure to the given stream.

Parameters
[in]oStreamThe stream.