ADTF
|
Representation for a complex datatype inside a DDL specification. More...
Public Member Functions | |
cDDLComplex () | |
Default CTOR. | |
cDDLComplex (const A_UTILS_NS::cString &strName, unsigned int const uiVersion, const A_UTILS_NS::cString &strComment=A_UTILS_NS::cString::Empty, cDDLAlignment::tAlignment const eAlignment=cDDLAlignment::e1, tDDLElementVec vecDDLElements=tDDLElementVec(), int const nCreationLevel=1, double fLanguageVersion=cDDLVersionHelper::GetDefaultVersion()) | |
CTOR. More... | |
cDDLComplex (cDDLComplex &oStruct) | |
Copy CTOR. More... | |
virtual | ~cDDLComplex () |
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... | |
void | SetName (const A_UTILS_NS::cString &strName) |
Setter for the name of the complex datatype. More... | |
bool | IsInitialized () const |
Getter for the initialization flag. More... | |
bool | IsPredefined () const |
Getter for the predefinition flag. More... | |
bool | IsOverwriteable () const |
Getter for the predefinition flag. More... | |
int | GetCreationLevel () const |
Getter for the creation level. More... | |
tResult | Create (const A_UTILS_NS::cString &strName, unsigned int const uiVersion, const A_UTILS_NS::cString &strComment=A_UTILS_NS::cString::Empty, cDDLAlignment::tAlignment const eAlignment=cDDLAlignment::e1, tDDLElementVec vecDDLElements=tDDLElementVec(), int const nCreationLevel=1) |
Creation method to fill the object with data. More... | |
unsigned int | GetVersion () const |
Getter for the version. More... | |
void | SetVersion (unsigned int const uiVersion) |
Setter for the version. More... | |
double | GetDDLVersion () const |
Getter for the DDL version. More... | |
tResult | SetDDLVersion (double const fLanguageVersion) |
Setter for the DDL version. More... | |
void | SetComment (const A_UTILS_NS::cString &strComment) |
Setter for the comment. More... | |
A_UTILS_NS::cString | GetComment () const |
Getter for the comment. More... | |
void | SetAlignment (cDDLAlignment::tAlignment const eAlignment) |
Setter for the alignment. More... | |
void | CloneElements (tDDLElementVec vecDDLElements) |
Setter for the element vector. More... | |
void | RefElements (tDDLElementVec vecDDLElements) |
Setter for the element vector. More... | |
void | AddElement (cDDLElement *poElement, int nPos=-1) |
Adder for an element. More... | |
tResult | RemoveElement (const A_UTILS_NS::cString &strElementName) |
removal for an element. More... | |
const tDDLElementVec & | GetElements () const |
Getter for the elements. More... | |
tDDLElementVec & | GetElements () |
Getter for the elements. More... | |
cDDLAlignment::tAlignment | GetAlignment () const |
Getter for the alignment of the complex datatype. More... | |
![]() | |
virtual | ~IDDLDataType () |
Virtual DTOR. | |
![]() | |
virtual | ~IDDL () |
Virtual DTOR. | |
Private Attributes | |
double | m_fLanguageVersion |
The DDL Version this structure was created in. | |
A_UTILS_NS::cString | m_strName |
unsigned int | m_uiVersion |
A_UTILS_NS::cString | m_strComment |
cDDLAlignment::tAlignment | m_eAlignment |
tDDLElementVec | m_vecDDLElements |
bool | m_bInitFlag |
int | m_nLevel |
Additional Inherited Members | |
![]() | |
enum | tag_MergeFlags { DDLMERGE_ForceOverwrite = 0x01 } |
Flags for Merging. | |
Representation for a complex datatype inside a DDL specification.
Definition at line 34 of file ddlcomplex.h.
cDDLComplex | ( | const A_UTILS_NS::cString & | strName, |
unsigned int const | uiVersion, | ||
const A_UTILS_NS::cString & | strComment = A_UTILS_NS::cString::Empty , |
||
cDDLAlignment::tAlignment const | eAlignment = cDDLAlignment::e1 , |
||
tDDLElementVec | vecDDLElements = tDDLElementVec() , |
||
int const | nCreationLevel = 1 , |
||
double | fLanguageVersion = cDDLVersionHelper::GetDefaultVersion() |
||
) |
CTOR.
[in] | strName | - Name of the data type |
[in] | uiVersion | - Version number of the specified data type |
[in] | strComment | - Additional comments (optional) |
[in] | eAlignment | - Alignment value (optional) |
[in] | vecDDLElements | - Vector of sub elements (optional) |
[in] | nCreationLevel | - Level at creation time (optional) |
[in] | fLanguageVersion | - language version (optional) |
cDDLComplex | ( | cDDLComplex & | oStruct | ) |
Copy CTOR.
[in] | oStruct | - Reference to complex datatype 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.
void AddElement | ( | cDDLElement * | poElement, |
int | nPos = -1 |
||
) |
Adder for an element.
[in] | poElement | - Pointer to the element to add |
[in] | nPos | - Position to add the element |
void CloneElements | ( | tDDLElementVec | vecDDLElements | ) |
Setter for the element vector.
[in] | vecDDLElements | - Vector of elements |
tResult Create | ( | const A_UTILS_NS::cString & | strName, |
unsigned int const | uiVersion, | ||
const A_UTILS_NS::cString & | strComment = A_UTILS_NS::cString::Empty , |
||
cDDLAlignment::tAlignment const | eAlignment = cDDLAlignment::e1 , |
||
tDDLElementVec | vecDDLElements = tDDLElementVec() , |
||
int const | nCreationLevel = 1 |
||
) |
Creation method to fill the object with data.
[in] | strName | - Name of the data type |
[in] | uiVersion | - Version number of the specified data type |
[in] | strComment | - Additional comments (optional) |
[in] | eAlignment | - Alignment value (optional) |
[in] | vecDDLElements | - Vector of sub elements (optional) |
[in] | nCreationLevel | - Level at creation time (optional) |
ERR_INVALID_ARG | Empty name committed |
cDDLAlignment::tAlignment GetAlignment | ( | ) | const |
Getter for the alignment of the complex datatype.
A_UTILS_NS::cString GetComment | ( | ) | const |
Getter for the comment.
|
virtual |
Getter for the creation level.
Implements IDDL.
double GetDDLVersion | ( | ) | const |
Getter for the DDL version.
tDDLElementVec& GetElements | ( | ) |
Getter for the elements.
const tDDLElementVec& GetElements | ( | ) | const |
Getter for the elements.
|
virtual |
unsigned int GetVersion | ( | ) | const |
Getter for the version.
|
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.
void RefElements | ( | tDDLElementVec | vecDDLElements | ) |
Setter for the element vector.
[in] | vecDDLElements | - Vector of elements |
tResult RemoveElement | ( | const A_UTILS_NS::cString & | strElementName | ) |
removal for an element.
[in] | strElementName | - name of the element to remove |
ERR_NOT_FOUND | if not found |
void SetAlignment | ( | cDDLAlignment::tAlignment const | eAlignment | ) |
Setter for the alignment.
[in] | eAlignment | - Alignment value |
void SetComment | ( | const A_UTILS_NS::cString & | strComment | ) |
Setter for the comment.
[in] | strComment | - Additional comments |
tResult SetDDLVersion | ( | double const | fLanguageVersion | ) |
Setter for the DDL version.
fLanguageVersion | the DDL version to set |
ERR_NOERROR |
void SetName | ( | const A_UTILS_NS::cString & | strName | ) |
Setter for the name of the complex datatype.
[in] | strName | - Name of the complex datatype |
void SetVersion | ( | unsigned int const | uiVersion | ) |
Setter for the version.
uiVersion | the version to set |