7 #ifndef _DDLCONSTANT_H_INCLUDED_
8 #define _DDLCONSTANT_H_INCLUDED_
15 typedef std::vector<std::pair<A_UTILS_NS::cString, A_UTILS_NS::cString> >
tEnumNameValueVec;
51 int nCreationLevel = 1);
179 int nCreationLevel = 1);
A common result class usable as return value throughout.
Common interface for DDL datatypes.
Interface for unit classes of the object representation for DDL descriptions.
Abstract base class/interface for Visitor design-pattern.
Representation for an enum inside a DDL description.
const A_UTILS_NS::cString & GetName() const
Getter for the name of the representation object.
cDDLEnum(cDDLEnum &oEnum)
Copy CTOR.
A_UTILS_NS::cString GetUnit() const
Getter for the unit name.
const tEnumNameValueVec & GetValues() const
Getter for the Container type of DDL enum elements.
void SetValues(const tEnumNameValueVec &vecValues)
Setter for the DDL enum elements.
void SetUnit(IDDLUnit *poUnit)
Setter for the unit.
bool IsInitialized() const
Getter for the initialization flag.
tResult RemoveElement(const A_UTILS_NS::cString &strElement)
Remove the element with the provided name.
int GetCreationLevel() const
Getter for the creation level.
void SetType(IDDLDataType *const pType)
Setter for the data-type object.
tResult Create(IDDLDataType *poType, const A_UTILS_NS::cString &strName, const tEnumNameValueVec &vecNameValues, IDDLUnit *poUnit=NULL)
Creation method to fill the object with data.
IDDLUnit * GetUnitObject() const
Getter for the unit object.
bool IsPredefined() const
Getter for the predefinition flag.
tResult SetValue(const A_UTILS_NS::cString &strElement, const A_UTILS_NS::cString &strValue)
Setter for the value of the element.
cDDLEnum(IDDLDataType *poType, const A_UTILS_NS::cString &strName, const tEnumNameValueVec &vecNameValues, IDDLUnit *poUnit=NULL, int nCreationLevel=1)
CTOR.
IDDLDataType * GetTypeObject() const
Getter for the data-type object.
tResult Accept(IDDLVisitor *poVisitor)
Acceptance method for Visitor design-pattern.
cDDLEnum(IDDLDataType *poType, const A_UTILS_NS::cString &strName, const tEnumNameValueVec &vecNameValues, IDDLUnit *poUnit=NULL)
CTOR.
void SetName(const A_UTILS_NS::cString &strName)
Setter for the name of the element.
const A_UTILS_NS::cString & GetType() const
Getter for the data-type name.
bool IsOverwriteable() const
Getter for the predefinition flag.
tResult GetValue(const A_UTILS_NS::cString &strElement, A_UTILS_NS::cString &strValue) const
Getter for the value of the element.
tResult GetNameForValue(const A_UTILS_NS::cString &strValue, A_UTILS_NS::cString &strElement)
Getter for the name of the element.
tResult Create(IDDLDataType *poType, const A_UTILS_NS::cString &strName, const tEnumNameValueVec &vecNameValues, IDDLUnit *poUnit=NULL, int nCreationLevel=1)
Creation method to fill the object with data.
Namespace for the mainpage_pkg_ddl.
std::vector< std::pair< A_UTILS_NS::cString, A_UTILS_NS::cString > > tEnumNameValueVec
Container type of DDL enum elements.