ADTF  3.18.2
dumper_legacy.h
Go to the documentation of this file.
1 
7 #pragma once
8 
10 #include <ostream>
11 #include <vector>
12 #include <utility>
13 #include <string>
14 
15 namespace adtf
16 {
17 namespace mediadescription
18 {
19 namespace flash
20 {
21 
34 class cDumper
35 {
36  public:
41  cDumper(const cStructureType& oStructure);
42 
47  void PrintTo(std::ostream& oStream) const;
48 
49  private:
50  void AddStructure(const cStructureType& oStructure);
51  void AddEnumeration(const cEnumerationType& oEnumeration);
52  bool HasStructure(const cStructureType& oStructure);
53  bool HasEnumeration(const cEnumerationType& oEnumeration);
54 
55  private:
56  std::vector<std::pair<std::string, std::string>> m_oStructures;
57  std::vector<std::pair<std::string, std::string>> m_oEnumerations;
58 };
59 
60 std::ostream& operator<<(std::ostream& oStream, const cDumper& cDumper);
61 
62 }
63 
64 }
65 }
Dumps a structure definition to an output stream.
Definition: dumper_legacy.h:35
cDumper(const cStructureType &oStructure)
Initializes the dumper with an existing structure definition.
void PrintTo(std::ostream &oStream) const
Prints the structure to the given stream.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.