ADTF
|
Representation of an external declaration inside the header of a DDL description. More...
Public Member Functions | |
cDDLExtDeclaration () | |
Default CTOR. | |
cDDLExtDeclaration (const A_UTILS_NS::cString &strKey, const A_UTILS_NS::cString &strValue) | |
CTOR. More... | |
cDDLExtDeclaration (cDDLExtDeclaration &oExtDecl) | |
Copy CTOR. More... | |
virtual | ~cDDLExtDeclaration () |
DTOR. | |
tResult | Accept (IDDLVisitor *poVisitor) |
Acceptance method for Visitor design-pattern. More... | |
const A_UTILS_NS::cString & | GetName () const |
Getter for the name of the representation object. More... | |
bool | IsInitialized () const |
Getter for the initialization flag. More... | |
tResult | Create (const A_UTILS_NS::cString &strKey, const A_UTILS_NS::cString &strValue) |
Creation method to fill the object with data. More... | |
A_UTILS_NS::cString | GetKey () const |
Getter for the key. More... | |
void | SetKey (const A_UTILS_NS::cString &strKey) |
Setter for the key. | |
A_UTILS_NS::cString | GetValue () const |
Getter for the value. More... | |
void | SetValue (const A_UTILS_NS::cString &strValue) |
Setter for the Value. | |
![]() | |
virtual | ~cDDL () |
DTOR. | |
virtual bool | IsPredefined () const |
Getter for the predefinition flag. More... | |
virtual bool | IsOverwriteable () const |
Getter for the predefinition flag. More... | |
virtual int | GetCreationLevel () const |
Getter for the creation level. More... | |
![]() | |
virtual | ~IDDL () |
Virtual DTOR. | |
Private Attributes | |
A_UTILS_NS::cString | m_strKey |
A_UTILS_NS::cString | m_strValue |
bool | m_bInitFlag |
Additional Inherited Members | |
![]() | |
enum | tag_MergeFlags { DDLMERGE_ForceOverwrite = 0x01 } |
Flags for Merging. | |
![]() | |
template<typename T > | |
static T * | DeleteChild (T *pvObj) |
Functor for use with std::transform() to delete all objects where the elements of a vector point at. More... | |
template<typename T > | |
static tResult | MoveChild (T *pvObj, const int nFrom, const int nTo) |
Method moves element within the list. More... | |
template<typename T > | |
static T * | Clone (T *pvObj) |
Functor for use with std::transform() to clone the objects where the elements of a vector point at. More... | |
template<typename T > | |
static T * | Ref (T *pvObj) |
Functor for use with std::transform() to ref the objects where the elements of a vector point at, this is for the Always_there. More... | |
static bool | IsEqual (IDDL *poLHS, IDDL *poRHS) |
Predicate to compare 2 DDL representation objects (for use with std::unique() ). More... | |
static bool | IsSorted (IDDL *poLHS, IDDL *poRHS) |
Sort predicate to compare to 2 DDL representation objects (for use with std::sort() ). More... | |
Representation of an external declaration inside the header of a DDL description.
Definition at line 17 of file ddlextdeclaration.h.
cDDLExtDeclaration | ( | const A_UTILS_NS::cString & | strKey, |
const A_UTILS_NS::cString & | strValue | ||
) |
CTOR.
[in] | strKey | - Name of the additional information |
[in] | strValue | - Value of the additional information |
cDDLExtDeclaration | ( | cDDLExtDeclaration & | oExtDecl | ) |
Copy CTOR.
[in] | oExtDecl | - Reference to ExtDeclaration object to copy |
|
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 | ( | const A_UTILS_NS::cString & | strKey, |
const A_UTILS_NS::cString & | strValue | ||
) |
Creation method to fill the object with data.
[in] | strKey | - Name of the additional information |
[in] | strValue | - Value of the additional information |
ERR_INVALID_ARG | Empty key committed |
A_UTILS_NS::cString GetKey | ( | ) | const |
Getter for the key.
|
virtual |
A_UTILS_NS::cString GetValue | ( | ) | const |
Getter for the value.
|
virtual |
Getter for the initialization flag.
true | The object was initialized correctly |
false | The object was not or not correctly initialized |
Reimplemented from cDDL.