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

#include <dumper_legacy.h>

Public Member Functions

 cDumper (const cStructureType &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 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

◆ cDumper()

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

Initializes the dumper with an existing structure definition.

Parameters
[in]oStructureThe structure definition.

Member Function Documentation

◆ PrintTo()

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