ADTF
|
Representation for an enum inside a DDL description. More...
Public Member Functions | |
cDDLEnum () | |
Default CTOR. | |
cDDLEnum (IDDLDataType *poType, const A_UTILS_NS::cString &strName, const tEnumNameValueVec &vecNameValues, IDDLUnit *poUnit=NULL) | |
CTOR. More... | |
cDDLEnum (IDDLDataType *poType, const A_UTILS_NS::cString &strName, const tEnumNameValueVec &vecNameValues, IDDLUnit *poUnit=NULL, int nCreationLevel=1) | |
CTOR. More... | |
cDDLEnum (cDDLEnum &oEnum) | |
Copy CTOR. More... | |
virtual | ~cDDLEnum () |
DTOR. | |
tResult | Accept (IDDLVisitor *poVisitor) |
Acceptance method for Visitor design-pattern. More... | |
bool | IsPredefined () const |
Getter for the predefinition flag. More... | |
bool | IsOverwriteable () const |
Getter for the predefinition flag. More... | |
const A_UTILS_NS::cString & | GetName () const |
Getter for the name of the representation object. More... | |
void | SetName (const A_UTILS_NS::cString &strName) |
Setter for the name of the element. More... | |
const tEnumNameValueVec & | GetValues () const |
Getter for the Container type of DDL enum elements. More... | |
void | SetValues (const tEnumNameValueVec &vecValues) |
Setter for the DDL enum elements. More... | |
tResult | GetValue (const A_UTILS_NS::cString &strElement, A_UTILS_NS::cString &strValue) const |
Getter for the value of the element. More... | |
tResult | SetValue (const A_UTILS_NS::cString &strElement, const A_UTILS_NS::cString &strValue) |
Setter for the value of the element. More... | |
tResult | GetNameForValue (const A_UTILS_NS::cString &strValue, A_UTILS_NS::cString &strElement) |
Getter for the name of the element. More... | |
const A_UTILS_NS::cString & | GetType () const |
Getter for the data-type name. More... | |
void | SetType (IDDLDataType *const pType) |
Setter for the data-type object. More... | |
IDDLDataType * | GetTypeObject () const |
Getter for the data-type object. More... | |
int | GetCreationLevel () const |
Getter for the creation level. More... | |
bool | IsInitialized () const |
Getter for the initialization flag. More... | |
tResult | Create (IDDLDataType *poType, const A_UTILS_NS::cString &strName, const tEnumNameValueVec &vecNameValues, IDDLUnit *poUnit=NULL) |
Creation method to fill the object with data. More... | |
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. More... | |
void | SetUnit (IDDLUnit *poUnit) |
Setter for the unit. More... | |
A_UTILS_NS::cString | GetUnit () const |
Getter for the unit name. More... | |
IDDLUnit * | GetUnitObject () const |
Getter for the unit object. More... | |
tResult | RemoveElement (const A_UTILS_NS::cString &strElement) |
Remove the element with the provided name. More... | |
![]() | |
virtual | ~IDDLDataType () |
Virtual DTOR. | |
![]() | |
virtual | ~IDDL () |
Virtual DTOR. | |
Private Attributes | |
A_UTILS_NS::cString | m_strName |
tEnumNameValueVec | m_vecNameValues |
IDDLUnit * | m_poUnit |
IDDLDataType * | m_poType |
bool | m_bInitFlag |
int | m_nLevel |
Additional Inherited Members | |
![]() | |
enum | tag_MergeFlags { DDLMERGE_ForceOverwrite = 0x01 } |
Flags for Merging. | |
cDDLEnum | ( | IDDLDataType * | poType, |
const A_UTILS_NS::cString & | strName, | ||
const tEnumNameValueVec & | vecNameValues, | ||
IDDLUnit * | poUnit = NULL |
||
) |
CTOR.
[in] | poType | - Pointer to the data-type object |
[in] | strName | - Name of the created enum |
[in] | vecNameValues | - Values of the enum |
[in] | poUnit | - Pointer to the unit of the datatype (optional) |
cDDLEnum | ( | IDDLDataType * | poType, |
const A_UTILS_NS::cString & | strName, | ||
const tEnumNameValueVec & | vecNameValues, | ||
IDDLUnit * | poUnit = NULL , |
||
int | nCreationLevel = 1 |
||
) |
CTOR.
[in] | poType | - Pointer to the data-type object |
[in] | strName | - Name of the created enum |
[in] | vecNameValues | - Values of the enum |
[in] | poUnit | - Pointer to the unit of the datatype (optional) |
[in] | nCreationLevel | - Level at creation time (optional) |
|
virtual |
Acceptance method for Visitor design-pattern.
[in] | poVisitor | - Pointer to Visitor instance |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
ERR_NOT_INITIALIZED | The object was not or not correctly initialized |
Implements IDDL.
tResult Create | ( | IDDLDataType * | poType, |
const A_UTILS_NS::cString & | strName, | ||
const tEnumNameValueVec & | vecNameValues, | ||
IDDLUnit * | poUnit = NULL |
||
) |
Creation method to fill the object with data.
[in] | poType | - Pointer to the data-type object |
[in] | strName | - Name of the created enum |
[in] | vecNameValues | - Values of the enum |
[in] | poUnit | - Pointer to the unit of the datatype (optional) |
ERR_POINTER | Null-pointer committed |
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.
[in] | poType | - Pointer to the data-type object |
[in] | strName | - Name of the created enum |
[in] | vecNameValues | - Values of the enum |
[in] | poUnit | - Pointer to the unit of the datatype (optional) |
[in] | nCreationLevel | - Level at creation time (optional) |
ERR_POINTER | Null-pointer committed |
|
virtual |
Getter for the creation level.
Implements IDDL.
|
virtual |
tResult GetNameForValue | ( | const A_UTILS_NS::cString & | strValue, |
A_UTILS_NS::cString & | strElement | ||
) |
Getter for the name of the element.
[in] | strValue | Value of the element |
[out] | strElement | Name of the element |
const A_UTILS_NS::cString& GetType | ( | ) | const |
Getter for the data-type name.
IDDLDataType* GetTypeObject | ( | ) | const |
Getter for the data-type object.
A_UTILS_NS::cString GetUnit | ( | ) | const |
Getter for the unit name.
A_UTILS_NS::cString::Empty
if there is none) IDDLUnit* GetUnitObject | ( | ) | const |
Getter for the unit object.
NULL
if there is none) tResult GetValue | ( | const A_UTILS_NS::cString & | strElement, |
A_UTILS_NS::cString & | strValue | ||
) | const |
Getter for the value of the element.
[in] | strElement | Name of the element |
[out] | strValue | Value of the element |
const tEnumNameValueVec& GetValues | ( | ) | const |
Getter for the Container type of DDL enum elements.
|
virtual |
Getter for the initialization flag.
true | The object was initialized correctly |
false | The object was not or not correctly initialized |
Implements IDDL.
|
virtual |
Getter for the predefinition flag.
true | The object was predefined |
false | The object was defined later |
Implements IDDL.
|
virtual |
Getter for the predefinition flag.
true | The object was predefined |
false | The object was defined later |
Implements IDDL.
tResult RemoveElement | ( | const A_UTILS_NS::cString & | strElement | ) |
Remove the element with the provided name.
[in] | strElement | - name of the element to be removed |
ERR_NOT_FOUND | element not found |
void SetName | ( | const A_UTILS_NS::cString & | strName | ) |
Setter for the name of the element.
[in] | strName | Name of the element |
void SetType | ( | IDDLDataType *const | pType | ) |
Setter for the data-type object.
[in] | pType | pointer to the data-type object |
void SetUnit | ( | IDDLUnit * | poUnit | ) |
Setter for the unit.
[in] | poUnit | - Pointer to the unit object of the data type |
tResult SetValue | ( | const A_UTILS_NS::cString & | strElement, |
const A_UTILS_NS::cString & | strValue | ||
) |
Setter for the value of the element.
[in] | strElement | Name of the element |
[in] | strValue | Value of the element |
void SetValues | ( | const tEnumNameValueVec & | vecValues | ) |
Setter for the DDL enum elements.
[in] | vecValues | Container type of DDL enum elements |