ADTF  3.18.2
ddlprinter.h
Go to the documentation of this file.
1 
7 #ifndef _DDL_PRINTER_H_INCLUDED_
8 #define _DDL_PRINTER_H_INCLUDED_
9 
11 
12 namespace adtf_ddl
13 {
14 
19  class cDDLPrinter : public IDDLVisitor
20  {
21  public:
25  PKG_ADTF_DDL_DEPRECATED("Use ddl::dd::DDString::toXMLString instead.")
26  cDDLPrinter(const bool& bFullOut = true);
27 
28  virtual ~cDDLPrinter();
29  public:
30  tResult VisitDDL(cDDLDescription* poDescription);
31  tResult Visit(cDDLHeader* poHeader);
32  tResult Visit(cDDLDataType* poDataType);
33  tResult Visit(cDDLComplex* poComplex);
34  tResult Visit(cDDLStream* poStream);
36  tResult Visit(cDDLBaseunit* poBaseunit);
37  tResult Visit(cDDLExtDeclaration* poExtDeclaration);
38  tResult Visit(cDDLElement* poElement);
39  tResult Visit(cDDLPrefix* poPrefix);
40  tResult Visit(cDDLRefUnit* poRefUnit);
41  tResult Visit(cDDLStreamStruct* poStreamStruct);
43  tResult Visit(cDDLStreamMetaType* poStreamMetaType);
44  tResult Visit(cDDLProperty* poProperty);
45 
51 
57  tResult ToFile(const A_UTILS_NS::cString& strFilename) const;
58 
70  tResult ForceVersion(double fForcedVersion);
71 
72  private: // members
73  A_UTILS_NS::cDOM m_oDOM;
74  double m_fVersion;
75  bool m_bFullOut;
76  A_UTILS_NS::cString m_strLastPath;
77  double m_fForcedVersion;
78  };
79 } // namespace adtf_ddl
80 
81 #endif // _DDL_PRINTER_H_INCLUDED_
Abstract base class/interface for Visitor design-pattern.
Representation of a base unit inside a DDL description.
Definition: ddlbaseunit.h:16
Representation for a complex datatype inside a DDL specification.
Definition: ddlcomplex.h:35
Representation for a (simple) data type inside a DDL description.
Definition: ddldatatype.h:19
Main class representing a whole DDL description.
Representation of an element inside a struct in DDL a description.
Definition: ddlelement.h:19
Representation for an enum inside a DDL description.
Definition: ddlenum.h:20
Representation of an external declaration inside the header of a DDL description.
Representation of the header of a DDL description.
Definition: ddlheader.h:28
Representation of a prefix in a DDL description.
Definition: ddlprefix.h:17
Concrete Visitor to collect the data of a DDL in object-representation and convert it back to XML (st...
Definition: ddlprinter.h:20
A_UTILS_NS::cString GetXML() const
Getter for the XML string of the collected DDL information.
tResult VisitDDL(cDDLDescription *poDescription)
Visitor for a whole DDL description.
tResult ToFile(const A_UTILS_NS::cString &strFilename) const
Saves the collected DDL information as XML to the specified file.
tResult ForceVersion(double fForcedVersion)
The method ForceVersion makes the printer ignore the DDL language version set in the header of the de...
tResult Visit(cDDLHeader *poHeader)
Visitor for DDL header objects.
Representation of a stream inside a DDL description.
Definition: ddlproperty.h:16
Decorator class for IDDLUnit objects to be used inside other cDDLUnit objects.
Definition: ddlrefunit.h:18
Representation of a stream inside a DDL description.
Definition: ddlstream.h:28
Representation of a stream inside a DDL description.
Decorator class for cDDLComplex to be used inside cDDLStream objects.
Representation object of a unit.
Definition: ddlunit.h:28
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
Definition: d_ptr.h:11
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
Definition: string.h:2778
Namespace for the mainpage_pkg_ddl.
Copyright © Audi Electronics Venture GmbH.
#define PKG_ADTF_DDL_DEPRECATED(_depr_message_)
Mark a function or variable as deprecated.