ADTF
|
Representation of a prefix in a DDL description. More...
Public Member Functions | |
cDDLPrefix () | |
Default CTOR. | |
cDDLPrefix (const A_UTILS_NS::cString &strName, const A_UTILS_NS::cString &strSymbol, int const nPower, int const nCreationLevel=1) | |
CTOR. More... | |
cDDLPrefix (cDDLPrefix &oPrefix) | |
Copy CTOR. More... | |
virtual | ~cDDLPrefix () |
DTOR. | |
tResult | Accept (IDDLVisitor *poVisitor) |
Acceptance method for Visitor design-pattern. More... | |
bool | IsPredefined () const |
Getter for the predefinition flag. More... | |
bool | IsInitialized () const |
Getter for the initialization flag. More... | |
int | GetCreationLevel () const |
Getter for the creation level. More... | |
tResult | Create (const A_UTILS_NS::cString &strName, const A_UTILS_NS::cString &strSymbol, int const nPower, int const nCreationLevel=1) |
Creation method to fill the object with data. More... | |
const A_UTILS_NS::cString & | GetName () const |
Getter for the name. More... | |
void | SetName (const A_UTILS_NS::cString &strName) |
Setter for the name. | |
A_UTILS_NS::cString | GetSymbol () const |
Getter for the symbol. More... | |
void | SetSymbol (const A_UTILS_NS::cString &strSymbol) |
Setter for the symbol. | |
int | GetPower () const |
Getter for the power. More... | |
void | SetPower (int const nPower) |
Setter for the power. | |
![]() | |
virtual | ~cDDL () |
DTOR. | |
virtual bool | IsOverwriteable () const |
Getter for the predefinition flag. More... | |
![]() | |
virtual | ~IDDL () |
Virtual DTOR. | |
Private Attributes | |
A_UTILS_NS::cString | m_strName |
A_UTILS_NS::cString | m_strSymbol |
int | m_nPower |
bool | m_bInitFlag |
int | m_nLevel |
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 a prefix in a DDL description.
Definition at line 16 of file ddlprefix.h.
cDDLPrefix | ( | const A_UTILS_NS::cString & | strName, |
const A_UTILS_NS::cString & | strSymbol, | ||
int const | nPower, | ||
int const | nCreationLevel = 1 |
||
) |
CTOR.
[in] | strName | - Name of the prefix |
[in] | strSymbol | - Represents the short symbol (e.g. "k") |
[in] | nPower | - Power of the prefix |
[in] | nCreationLevel | - Level at creation time (optional) |
cDDLPrefix | ( | cDDLPrefix & | oPrefix | ) |
Copy CTOR.
[in] | oPrefix | - Reference to prefix 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 & | strName, |
const A_UTILS_NS::cString & | strSymbol, | ||
int const | nPower, | ||
int const | nCreationLevel = 1 |
||
) |
Creation method to fill the object with data.
[in] | strName | - Name of the prefix |
[in] | strSymbol | - Represents the short symbol (e.g. "k") |
[in] | nPower | - Power of the prefix |
[in] | nCreationLevel | - Level at creation time (optional) |
ERR_POINTER | Null-pointer committed |
|
virtual |
Getter for the creation level.
Reimplemented from cDDL.
|
virtual |
int GetPower | ( | ) | const |
Getter for the power.
A_UTILS_NS::cString GetSymbol | ( | ) | const |
Getter for the symbol.
|
virtual |
Getter for the initialization flag.
true | The object was initialized correctly |
false | The object was not or not correctly initialized |
Reimplemented from cDDL.
|
virtual |
Getter for the predefinition flag.
true | The object was predefined |
false | The object was defined later |
Reimplemented from cDDL.