ADTF  3.18.2
ddlbaseunit.h
Go to the documentation of this file.
1 
7 #ifndef _DDLBASE_UNIT_H_INCLUDED_
8 #define _DDLBASE_UNIT_H_INCLUDED_
9 
10 namespace adtf_ddl
11 {
15  class cDDLBaseunit : public IDDLUnit
16  {
17  public:
22 
31  const A_UTILS_NS::cString& strSymbol,
32  const A_UTILS_NS::cString& strDescription,
33  int const nCreationLevel = 1);
34 
40 
44  virtual ~cDDLBaseunit();
45 
55  const A_UTILS_NS::cString& strSymbol,
56  const A_UTILS_NS::cString& strDescription,
57  int const nCreationLevel = 1);
58 
59  tResult Accept(IDDLVisitor *poVisitor);
60 
61  bool IsPredefined() const;
62  bool IsOverwriteable() const;
63 
64  bool IsInitialized() const;
65 
66  int GetCreationLevel() const;
67 
72  const A_UTILS_NS::cString& GetName() const;
73 
77  void SetName(const A_UTILS_NS::cString& strName);
78 
87  void SetSymbol(const A_UTILS_NS::cString& strSymbol);
88 
89 
95 
99  void SetDescription(const A_UTILS_NS::cString& strDesc);
100 
101  private:
102  A_UTILS_NS::cString m_strName;
103  A_UTILS_NS::cString m_strSymbol;
104  A_UTILS_NS::cString m_strDescription;
105 
106  bool m_bInitFlag;
107  int m_nLevel;
108  };
109 
110 } // namespace adtf_ddl
111 
112 #endif // _DDLBASE_UNIT_H_INCLUDED_
Interface for unit classes of the object representation for DDL descriptions.
Definition: ddlunit_intf.h:17
Abstract base class/interface for Visitor design-pattern.
Representation of a base unit inside a DDL description.
Definition: ddlbaseunit.h:16
const A_UTILS_NS::cString & GetName() const
Getter for the name.
void SetDescription(const A_UTILS_NS::cString &strDesc)
Setter for the description.
cDDLBaseunit(cDDLBaseunit &oBU)
Copy CTOR.
bool IsInitialized() const
Getter for the initialization flag.
cDDLBaseunit()
Default CTOR.
int GetCreationLevel() const
Getter for the creation level.
cDDLBaseunit(const A_UTILS_NS::cString &strName, const A_UTILS_NS::cString &strSymbol, const A_UTILS_NS::cString &strDescription, int const nCreationLevel=1)
CTOR.
void SetSymbol(const A_UTILS_NS::cString &strSymbol)
Setter for the description.
bool IsPredefined() const
Getter for the predefinition flag.
tResult Accept(IDDLVisitor *poVisitor)
Acceptance method for Visitor design-pattern.
const A_UTILS_NS::cString & GetSymbol() const
Getter for the symbol.
void SetName(const A_UTILS_NS::cString &strName)
Setter for the name.
bool IsOverwriteable() const
Getter for the predefinition flag.
const A_UTILS_NS::cString & GetDescription() const
Getter for the description.
virtual ~cDDLBaseunit()
DTOR.
tResult Create(const A_UTILS_NS::cString &strName, const A_UTILS_NS::cString &strSymbol, const A_UTILS_NS::cString &strDescription, int const nCreationLevel=1)
Creation method to fill the object with data.
Namespace for the mainpage_pkg_ddl.