ADTF
Loading...
Searching...
No Matches
adtf::mediadescription::flash::cDDLPrinter Class Reference

#include <ddl_printer_legacy.h>

Public Member Functions

 cDDLPrinter (const cStructureType &oStructure)
 
void PrintTo (std::ostream &oStream) const
 

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 cStructureType &oStructure)
Definition type_reflection_legacy.h:387
structure & Add(const std::string &strName, MemberType T::*pMemberOffset)
Definition type_reflection_legacy.h:408

Constructor & Destructor Documentation

◆ cDDLPrinter()

adtf::mediadescription::flash::cDDLPrinter::cDDLPrinter ( const cStructureType & oStructure)

Initializes the printer with an existing structure definition.

Parameters
[in]oStructureThe structure definition.

Member Function Documentation

◆ PrintTo()

void adtf::mediadescription::flash::cDDLPrinter::PrintTo ( std::ostream & oStream) const

Prints the DDL description to the given stream.

Parameters
[in]oStreamThe stream.

The documentation for this class was generated from the following file: