ADTF
Loading...
Searching...
No Matches
adtf::mediadescription::cDumper Class Reference

#include <ddl_dumper.h>

Public Member Functions

 cDumper (const ddl::DDStructure &oStructure)
 
void PrintTo (std::ostream &oStream) const
 

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

Constructor & Destructor Documentation

◆ cDumper()

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

Initializes the dumper with an existing structure definition.

Parameters
[in]oStructureThe structure definition.

Member Function Documentation

◆ PrintTo()

void adtf::mediadescription::osborn::cDumper::PrintTo ( std::ostream & oStream) const

Prints the structure to the given stream.

Parameters
[in]oStreamThe stream.

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