Generates a DDL description from a structure definition.
More...
|
size_t | GetMinimumAlignment (size_t nExpectedOffset, size_t nCurrentOffset, const std::string &strMemberName) |
|
void | AddStructure (const cStructureType &oStructure) |
|
void | AddEnumeration (const cEnumerationType &oEnumeration) |
|
bool | HasStructure (const cStructureType &oStructure) |
|
bool | HasEnumeration (const cEnumerationType &oEnumeration) |
|
|
std::vector< std::pair< std::string, std::string > > | m_oStructures |
|
std::vector< std::pair< std::string, std::string > > | m_oEnumerations |
|
Generates a DDL description from a structure definition.
Example Usage
auto oType = structure<>("tStruct")
.Add<uint8_t>("nValue1")
.Add<uint8_t>("nValue2");
Definition at line 30 of file ddl_printer_legacy.h.
◆ cDDLPrinter()
Initializes the printer with an existing structure definition.
- Parameters
-
[in] | oStructure | The structure definition. |
◆ PrintTo()
void PrintTo |
( |
std::ostream & |
oStream | ) |
const |
Prints the DDL description to the given stream.
- Parameters
-