ADTF  3.18.2
ddlprefix.h
Go to the documentation of this file.
1 
7 #ifndef _DDLPREFIX_H_INCLUDED_
8 #define _DDLPREFIX_H_INCLUDED_
9 
10 namespace adtf_ddl
11 {
12 
16  class cDDLPrefix : public cDDL
17  {
18  public:
23 
32  const A_UTILS_NS::cString& strSymbol,
33  int const nPower,
34  int const nCreationLevel = 1);
35 
41 
45  virtual ~cDDLPrefix();
46 
47  tResult Accept(IDDLVisitor *poVisitor);
48 
49  bool IsPredefined() const;
50 
51  bool IsInitialized() const;
52 
53  int GetCreationLevel() const;
54 
64  const A_UTILS_NS::cString& strSymbol,
65  int const nPower,
66  int const nCreationLevel = 1);
67 
72  const A_UTILS_NS::cString& GetName() const;
73 
77  void SetName(const A_UTILS_NS::cString& strName);
78 
84 
88  void SetSymbol(const A_UTILS_NS::cString& strSymbol);
89 
94  int GetPower() const;
95 
99  void SetPower(int const nPower);
100 
101 
102  private:
103  A_UTILS_NS::cString m_strName;
104  A_UTILS_NS::cString m_strSymbol;
105  int m_nPower;
106 
107  bool m_bInitFlag;
108  int m_nLevel;
109  };
110 
111 } // namespace adtf_ddl
112 
113 #endif // _PREFIX_H_INCLUDED_
Abstract base class/interface for Visitor design-pattern.
Representation of a prefix in a DDL description.
Definition: ddlprefix.h:17
int GetPower() const
Getter for the power.
const A_UTILS_NS::cString & GetName() const
Getter for the name.
tResult Create(const A_UTILS_NS::cString &strName, const A_UTILS_NS::cString &strSymbol, int const nPower, int const nCreationLevel=1)
Creation method to fill the object with data.
virtual ~cDDLPrefix()
DTOR.
void SetPower(int const nPower)
Setter for the power.
bool IsInitialized() const
Getter for the initialization flag.
cDDLPrefix(const A_UTILS_NS::cString &strName, const A_UTILS_NS::cString &strSymbol, int const nPower, int const nCreationLevel=1)
CTOR.
cDDLPrefix(cDDLPrefix &oPrefix)
Copy CTOR.
int GetCreationLevel() const
Getter for the creation level.
cDDLPrefix()
Default CTOR.
A_UTILS_NS::cString GetSymbol() const
Getter for the symbol.
void SetSymbol(const A_UTILS_NS::cString &strSymbol)
Setter for the symbol.
bool IsPredefined() const
Getter for the predefinition flag.
tResult Accept(IDDLVisitor *poVisitor)
Acceptance method for Visitor design-pattern.
void SetName(const A_UTILS_NS::cString &strName)
Setter for the name.
Namespace for the mainpage_pkg_ddl.