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

#include <ddl_printer.h>

Public Member Functions

 cDDLPrinter (const ddl::DDStructure &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 ddl::DDStructure &oStructure)
Definition type_reflection.h:124
structure & Add(const std::string &strName, MemberType T::*pMemberOffset)
Definition type_reflection.h:167

Constructor & Destructor Documentation

◆ cDDLPrinter()

adtf::mediadescription::osborn::cDDLPrinter::cDDLPrinter ( const ddl::DDStructure & oStructure)

Initializes the printer with an existing structure definition.

Parameters
[in]oStructureThe structure definition.

Member Function Documentation

◆ PrintTo()

void adtf::mediadescription::osborn::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: