ADTF  3.18.2
cDDLPrinter

Generates a DDL description from a structure definition. More...

Public Member Functions

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

Private Attributes

std::string m_strDescription
 

Detailed Description

Generates a DDL description from a structure definition.

Example Usage

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

Definition at line 37 of file ddl_printer.h.

Constructor & Destructor Documentation

◆ cDDLPrinter()

cDDLPrinter ( const ddl::DDStructure oStructure)

Initializes the printer with an existing structure definition.

Parameters
[in]oStructureThe structure definition.

Member Function Documentation

◆ PrintTo()

void PrintTo ( std::ostream &  oStream) const

Prints the DDL description to the given stream.

Parameters
[in]oStreamThe stream.