ADTF
|
Representation for a (simple) data type inside a DDL description. More...
Public Member Functions | |
cDDLDataType () | |
Default CTOR. | |
cDDLDataType (const A_UTILS_NS::cString &strName, unsigned int const uiSize, IDDLUnit *poUnit=NULL, const A_UTILS_NS::cString &strDescription=A_UTILS_NS::cString::Empty, cDDLAlignment::tAlignment const eAlignment=cDDLAlignment::e1, unsigned int const uiArraysize=1, int const nCreationLevel=1, const A_UTILS_NS::cString &strArraySizeSource=A_UTILS_NS::cString::Empty, bool const bMinValid=false, const A_UTILS_NS::cString &strMinVal=A_UTILS_NS::cString::Empty, bool const bMaxValid=false, const A_UTILS_NS::cString &strMaxVal=A_UTILS_NS::cString::Empty) | |
CTOR. More... | |
cDDLDataType (cDDLDataType &oDataType) | |
Copy CTOR. More... | |
virtual | ~cDDLDataType () |
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 data type. More... | |
int | GetCreationLevel () const |
Getter for the creation level. More... | |
bool | IsInitialized () const |
Getter for the initialization flag. More... | |
tResult | Create (const A_UTILS_NS::cString &strName, unsigned int const uiNumBits, IDDLUnit *poUnit, const A_UTILS_NS::cString &strDescription=A_UTILS_NS::cString::Empty, cDDLAlignment::tAlignment const eAlignment=cDDLAlignment::e1, unsigned int const uiArraysize=1, int const nCreationLevel=1, const A_UTILS_NS::cString &strArraySizeSource=A_UTILS_NS::cString::Empty, bool const bMinValid=false, const A_UTILS_NS::cString &strMinVal=A_UTILS_NS::cString::Empty, bool const bMaxValid=false, const A_UTILS_NS::cString &strMaxVal=A_UTILS_NS::cString::Empty) |
Creation method to fill the object with data. More... | |
void | SetDescription (const A_UTILS_NS::cString &strDescription) |
Setter for the description. More... | |
A_UTILS_NS::cString | GetDescription () const |
Getter for the description. More... | |
void | SetArraysize (unsigned int const uiArraysize) |
Setter for the array size. More... | |
unsigned int | GetArraysize () const |
Getter for the array size. More... | |
void | SetUnit (IDDLUnit *poUnit) |
Setter for the unit. More... | |
A_UTILS_NS::cString | GetUnit () const |
Getter for the unit name. More... | |
const IDDLUnit * | GetUnitObject () const |
Getter for the unit object. More... | |
IDDLUnit * | GetUnitObject () |
Getter for the unit object. More... | |
void | SetAlignment (cDDLAlignment::tAlignment const eAlignment) |
Setter for the alignment. More... | |
cDDLAlignment::tAlignment | GetAlignment () const |
Getter for the alignment of the primitive data type. More... | |
unsigned int | GetNumBits () const |
Getter for the size of the primitive data type. More... | |
void | SetNumBits (unsigned int const uiNumBits) |
Setter for the size of the primitive data type. More... | |
A_UTILS_NS::cString | GetArraySizeSource () const |
Getter for the array size source. More... | |
void | SetArraySizeSource (const A_UTILS_NS::cString &strArraySizeSource) |
Setter for the array size source. More... | |
bool | IsDynamic () const |
Checks if element is dynamic. More... | |
double | GetDDLVersion () const |
Getter for the DDL version. More... | |
tResult | SetDDLVersion (double const fLanguageVersion) |
Setter for the DDL version. More... | |
void | SetMinValidity (bool const bMinValid) |
Setter for the validity flag for the minimum value. More... | |
bool | IsMinValid () const |
Getter for the validity flag for the minimum value. More... | |
const A_UTILS_NS::cString & | GetMinValue () const |
Getter for the minimum value of the data type. More... | |
tResult | SetMinValue (const A_UTILS_NS::cString &strMinVal) |
Setter for the minimum value of the data type. More... | |
void | SetMaxValidity (bool const bMaxValid) |
Setter for the validity flag for the maximum value. More... | |
bool | IsMaxValid () const |
Getter for the validity flag for the maximum value. More... | |
const A_UTILS_NS::cString & | GetMaxValue () const |
Getter for the maximum value of the data type. More... | |
tResult | SetMaxValue (const A_UTILS_NS::cString &strMaxVal) |
Setter for the maximum value of the data type. More... | |
![]() | |
virtual | ~IDDLDataType () |
Virtual DTOR. | |
![]() | |
virtual | ~IDDL () |
Virtual DTOR. | |
Private Member Functions | |
void | UpdateSizesAndPositions () |
Private Attributes | |
double | m_fLanguageVersion |
The DDL Version this structure was created in. | |
A_UTILS_NS::cString | m_strName |
unsigned int | m_uiNumBits |
size_t | m_szByteSize |
size_t | m_szAlignedSize |
IDDLUnit * | m_poUnit |
A_UTILS_NS::cString | m_strDescription |
unsigned int | m_uiArraysize |
A_UTILS_NS::cString | m_strArraySizeSource |
cDDLAlignment::tAlignment | m_eAlignment |
bool | m_bInitFlag |
int | m_nLevel |
bool | m_bMinValid |
A_UTILS_NS::cString | m_strMinVal |
bool | m_bMaxValid |
A_UTILS_NS::cString | m_strMaxVal |
bool | m_bDefaultValid |
A_UTILS_NS::cString | m_strDefaultVal |
Additional Inherited Members | |
![]() | |
enum | tag_MergeFlags { DDLMERGE_ForceOverwrite = 0x01 } |
Flags for Merging. | |
Representation for a (simple) data type inside a DDL description.
Definition at line 18 of file ddldatatype.h.
cDDLDataType | ( | const A_UTILS_NS::cString & | strName, |
unsigned int const | uiSize, | ||
IDDLUnit * | poUnit = NULL , |
||
const A_UTILS_NS::cString & | strDescription = A_UTILS_NS::cString::Empty , |
||
cDDLAlignment::tAlignment const | eAlignment = cDDLAlignment::e1 , |
||
unsigned int const | uiArraysize = 1 , |
||
int const | nCreationLevel = 1 , |
||
const A_UTILS_NS::cString & | strArraySizeSource = A_UTILS_NS::cString::Empty , |
||
bool const | bMinValid = false , |
||
const A_UTILS_NS::cString & | strMinVal = A_UTILS_NS::cString::Empty , |
||
bool const | bMaxValid = false , |
||
const A_UTILS_NS::cString & | strMaxVal = A_UTILS_NS::cString::Empty |
||
) |
CTOR.
[in] | strName | - Name of the primitive data type |
[in] | uiSize | - Size in bit |
[in] | poUnit | - Pointer to the unit of the data type (optional) |
[in] | strDescription | - Description of the primitive data type (optional) |
[in] | eAlignment | - Alignment of the primitive data type (optional) |
[in] | uiArraysize | - Array size of the primitive data type (optional) |
[in] | nCreationLevel | - Level at creation time (optional) |
[in] | strArraySizeSource | - Name of the element that represents the arrays size (optional) |
[in] | bMinValid | - Validity flag for the minimum value (optional) |
[in] | strMinVal | - Minimum value of the data type (optional) |
[in] | bMaxValid | - Validity flag for the maximum value (optional) |
[in] | strMaxVal | - Maximum value of the data type (optional) |
cDDLDataType | ( | cDDLDataType & | oDataType | ) |
Copy CTOR.
[in] | oDataType | - Reference to data type 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, |
unsigned int const | uiNumBits, | ||
IDDLUnit * | poUnit, | ||
const A_UTILS_NS::cString & | strDescription = A_UTILS_NS::cString::Empty , |
||
cDDLAlignment::tAlignment const | eAlignment = cDDLAlignment::e1 , |
||
unsigned int const | uiArraysize = 1 , |
||
int const | nCreationLevel = 1 , |
||
const A_UTILS_NS::cString & | strArraySizeSource = A_UTILS_NS::cString::Empty , |
||
bool const | bMinValid = false , |
||
const A_UTILS_NS::cString & | strMinVal = A_UTILS_NS::cString::Empty , |
||
bool const | bMaxValid = false , |
||
const A_UTILS_NS::cString & | strMaxVal = A_UTILS_NS::cString::Empty |
||
) |
Creation method to fill the object with data.
[in] | strName | - Name of the primitive data type |
[in] | uiNumBits | - Size in bit |
[in] | poUnit | - Pointer to the unit of the data type |
[in] | strDescription | - Description of the primitive data type (optional) |
[in] | eAlignment | - Alignment of the primitive data type (optional) |
[in] | uiArraysize | - Array size of the primitive data type (optional) |
[in] | nCreationLevel | - Level at creation time (optional) |
[in] | strArraySizeSource | - Name of the element that represents the arrays size |
[in] | bMinValid | - Validity flag for the minimum value (optional) |
[in] | strMinVal | - Minimum value of the data type (optional) |
[in] | bMaxValid | - Validity flag for the maximum value (optional) |
[in] | strMaxVal | - Maximum value of the data type (optional) |
ERR_POINTER | Null-pointer committed |
cDDLAlignment::tAlignment GetAlignment | ( | ) | const |
Getter for the alignment of the primitive data type.
unsigned int GetArraysize | ( | ) | const |
Getter for the array size.
A_UTILS_NS::cString GetArraySizeSource | ( | ) | const |
Getter for the array size source.
|
virtual |
Getter for the creation level.
Implements IDDL.
double GetDDLVersion | ( | ) | const |
Getter for the DDL version.
A_UTILS_NS::cString GetDescription | ( | ) | const |
Getter for the description.
const A_UTILS_NS::cString& GetMaxValue | ( | ) | const |
Getter for the maximum value of the data type.
const A_UTILS_NS::cString& GetMinValue | ( | ) | const |
Getter for the minimum value of the data type.
|
virtual |
unsigned int GetNumBits | ( | ) | const |
Getter for the size of the primitive data type.
A_UTILS_NS::cString GetUnit | ( | ) | const |
Getter for the unit name.
A_UTILS_NS::cString::Empty
if there is none) IDDLUnit* GetUnitObject | ( | ) |
Getter for the unit object.
NULL
if there is none) const IDDLUnit* GetUnitObject | ( | ) | const |
Getter for the unit object.
NULL
if there is none) bool IsDynamic | ( | ) | const |
Checks if element is dynamic.
|
virtual |
Getter for the initialization flag.
true | The object was initialized correctly |
false | The object was not or not correctly initialized |
Implements IDDL.
bool IsMaxValid | ( | ) | const |
Getter for the validity flag for the maximum value.
bool IsMinValid | ( | ) | const |
Getter for the validity flag for the minimum value.
|
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 SetAlignment | ( | cDDLAlignment::tAlignment const | eAlignment | ) |
Setter for the alignment.
[in] | eAlignment | - Alignment value |
void SetArraysize | ( | unsigned int const | uiArraysize | ) |
Setter for the array size.
[in] | uiArraysize | - Array size of the data type = 1 -> primitve presentation > 1 -> array with the amount of elements |
void SetArraySizeSource | ( | const A_UTILS_NS::cString & | strArraySizeSource | ) |
Setter for the array size source.
[in] | strArraySizeSource | - the array size source element |
tResult SetDDLVersion | ( | double const | fLanguageVersion | ) |
Setter for the DDL version.
fLanguageVersion | the DDL version to set |
ERR_NOERROR | Everything is fine. |
void SetDescription | ( | const A_UTILS_NS::cString & | strDescription | ) |
Setter for the description.
[in] | strDescription | - Description of the primitive data type |
void SetMaxValidity | ( | bool const | bMaxValid | ) |
Setter for the validity flag for the maximum value.
[in] | bMaxValid | Validity flag for the maximum value. |
tResult SetMaxValue | ( | const A_UTILS_NS::cString & | strMaxVal | ) |
Setter for the maximum value of the data type.
[in] | strMaxVal | The new maximum value |
ERR_NOERROR | Everything went fine. |
void SetMinValidity | ( | bool const | bMinValid | ) |
Setter for the validity flag for the minimum value.
[in] | bMinValid | Validity flag for the minimum value. |
tResult SetMinValue | ( | const A_UTILS_NS::cString & | strMinVal | ) |
Setter for the minimum value of the data type.
[in] | strMinVal | The new minimum value |
ERR_NOERROR | Everything went fine. |
void SetName | ( | const A_UTILS_NS::cString & | strName | ) |
Setter for the name of the data type.
[in] | strName | Name of the data type |
void SetNumBits | ( | unsigned int const | uiNumBits | ) |
Setter for the size of the primitive data type.
[in] | uiNumBits | - Size in [bit] |
void SetUnit | ( | IDDLUnit * | poUnit | ) |
Setter for the unit.
[in] | poUnit | - Pointer to the unit object of the data type |