ADTF  3.18.2
ddlrefunit.h
Go to the documentation of this file.
1 
7 #ifndef _REF_UNIT_H_INCLUDED_
8 #define _REF_UNIT_H_INCLUDED_
9 
10 namespace adtf_ddl
11 {
12  class cDDLPrefix;
13 
17  class cDDLRefUnit : public cDDL
18  {
19  public:
24 
31  cDDLRefUnit(IDDLUnit* poUnit, int const nPower, cDDLPrefix* poPrefix);
32 
38 
42  virtual ~cDDLRefUnit();
43 
44  tResult Accept(IDDLVisitor *poVisitor);
45 
46  bool IsInitialized() const;
47 
55  tResult Create(IDDLUnit* poUnit, int const nPower, cDDLPrefix* poPrefix);
56 
61  const A_UTILS_NS::cString& GetName() const;
62 
68 
74  void SetUnitObject(IDDLUnit* const pUnit);
75 
80  int GetPower() const;
81 
87  void SetPower(int const nPower);
88 
94 
100 
106  void SetPrefixObject(cDDLPrefix* const pPrefix);
107 
108  private:
109  IDDLUnit *m_poUnit;
110  int m_nPower;
111  cDDLPrefix *m_poPrefix;
112  bool m_bInitFlag;
113  };
114 
115 } // namespace adtf_ddl
116 
117 #endif // _REF_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 prefix in a DDL description.
Definition: ddlprefix.h:17
Decorator class for IDDLUnit objects to be used inside other cDDLUnit objects.
Definition: ddlrefunit.h:18
int GetPower() const
Getter for the power.
const A_UTILS_NS::cString & GetName() const
Getter for the name.
void SetUnitObject(IDDLUnit *const pUnit)
Setter for the unit object.
void SetPower(int const nPower)
Setter for the power.
bool IsInitialized() const
Getter for the initialization flag.
tResult Create(IDDLUnit *poUnit, int const nPower, cDDLPrefix *poPrefix)
Creation method to fill the object with data.
virtual ~cDDLRefUnit()
DTOR.
A_UTILS_NS::cString GetPrefix() const
Getter for the prefix name.
cDDLRefUnit(IDDLUnit *poUnit, int const nPower, cDDLPrefix *poPrefix)
CTOR with unit object.
cDDLPrefix * GetPrefixObject() const
Getter for the prefix object.
cDDLRefUnit(cDDLRefUnit &oRefUnit)
CTOR with unit object.
cDDLRefUnit()
Default CTOR.
IDDLUnit * GetUnitObject() const
Getter for the unit object.
tResult Accept(IDDLVisitor *poVisitor)
Acceptance method for Visitor design-pattern.
void SetPrefixObject(cDDLPrefix *const pPrefix)
Setter for the prefix object.
Namespace for the mainpage_pkg_ddl.