ADTF  3.18.2
ddl_printer_legacy.h
Go to the documentation of this file.
1 
7 #pragma once
9 #include <ostream>
10 
11 namespace adtf
12 {
13 namespace mediadescription
14 {
15 namespace flash
16 {
17 
31 {
32  public:
37  cDDLPrinter(const cStructureType& oStructure);
38 
43  void PrintTo(std::ostream& oStream) const;
44 
45  private:
46  size_t GetMinimumAlignment(size_t nExpectedOffset, size_t nCurrentOffset, const std::string& strMemberName);
47  void AddStructure(const cStructureType& oStructure);
48  void AddEnumeration(const cEnumerationType& oEnumeration);
49  bool HasStructure(const cStructureType& oStructure);
50  bool HasEnumeration(const cEnumerationType& oEnumeration);
51 
52  private:
53  std::vector<std::pair<std::string, std::string>> m_oStructures;
54  std::vector<std::pair<std::string, std::string>> m_oEnumerations;
55 };
56 
57 std::ostream& operator<<(std::ostream& oStream, const cDDLPrinter& oPrinter);
58 
59 }
60 }
61 }
Generates a DDL description from a structure definition.
cDDLPrinter(const cStructureType &oStructure)
Initializes the printer with an existing structure definition.
void PrintTo(std::ostream &oStream) const
Prints the DDL description to the given stream.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.