7 #ifndef _UNIT_H_INCLUDED_
8 #define _UNIT_H_INCLUDED_
49 int const nCreationLevel = 1);
86 int const nCreationLevel = 4);
A common result class usable as return value throughout.
Interface for unit classes of the object representation for DDL descriptions.
Abstract base class/interface for Visitor design-pattern.
Decorator class for IDDLUnit objects to be used inside other cDDLUnit objects.
Representation object of a unit.
void SetOffset(double const fOffset)
Setter for the offset.
const A_UTILS_NS::cString & GetName() const
Getter for the name.
const tDDLRefUnitVec & GetRefUnits() const
Getter for the reference unit.
bool IsInitialized() const
Getter for the initialization flag.
int GetCreationLevel() const
Getter for the creation level.
tResult RemoveRefUnit(const A_UTILS_NS::cString &strRefUnit)
Remover for a reference unit.
void SetDenominator(const A_UTILS_NS::cString &strDenominator)
Setter for the Denominator.
void CloneRefUnits(tDDLRefUnitVec vecDDLRefUnits)
Setter for the reference units.
cDDLUnit(const A_UTILS_NS::cString &strName, const A_UTILS_NS::cString &strNumerator, const A_UTILS_NS::cString &strDenominator, double const fOffset, tDDLRefUnitVec vecDDLRefUnits=tDDLRefUnitVec(), int const nCreationLevel=1)
CTOR.
tResult Create(const A_UTILS_NS::cString &strName, const A_UTILS_NS::cString &strNumerator, const A_UTILS_NS::cString &strDenominator, double const fOffset, tDDLRefUnitVec vecDDLRefUnits=tDDLRefUnitVec(), int const nCreationLevel=4)
Creation method to fill the object with data.
A_UTILS_NS::cString GetNumerator() const
Getter for the numerator.
double GetOffset() const
Getter for the offset.
bool IsPredefined() const
Getter for the predefinition flag.
tDDLRefUnitVec & GetRefUnits()
Getter for the reference unit.
A_UTILS_NS::cString GetDenominator() const
Getter for the denominator.
void RefRefUnits(tDDLRefUnitVec vecDDLRefUnits)
Setter for the reference units.
tResult Accept(IDDLVisitor *poVisitor)
Acceptance method for Visitor design-pattern.
void SetName(const A_UTILS_NS::cString &strName)
Setter for the Name.
bool IsOverwriteable() const
Getter for the predefinition flag.
void SetNumerator(const A_UTILS_NS::cString &strNumerator)
Setter for the Denominator.
cDDLUnit(cDDLUnit &oUnit)
Copy CTOR.
void AddRefUnit(cDDLRefUnit *poRefUnit, int nPos=-1)
Adder for a reference unit.
Namespace for the mainpage_pkg_ddl.
std::vector< cDDLRefUnit * > tDDLRefUnitVec
Container type of cDDLRefUnit objects.
tDDLRefUnitVec::iterator tDDLRefUnitIt
Iterator type for tDDLRefUnitVec.