ADTF
|
Representation of an element inside a struct in DDL a description. More...
Public Member Functions | |
cDDLElement () | |
Default CTOR. | |
cDDLElement (IDDLDataType *poType, const A_UTILS_NS::cString &strName, unsigned int const uiBytepos, unsigned int const uiArraysize, cDDLByteorder::tByteorder const eByteorder, cDDLAlignment::tAlignment const eAlignment, IDDLUnit *poUnit=NULL, unsigned int const uiBitpos=0, unsigned int const uiNumBits=0, const A_UTILS_NS::cString &strDescription=A_UTILS_NS::cString::Empty, const A_UTILS_NS::cString &strComment=A_UTILS_NS::cString::Empty, const A_UTILS_NS::cString &strArraySizeSource=A_UTILS_NS::cString::Empty, const A_UTILS_NS::cString &strValue=A_UTILS_NS::cString::Empty, bool const bMinValid=false, const A_UTILS_NS::cString &strMinValue=A_UTILS_NS::cString::Empty, bool const bMaxValid=false, const A_UTILS_NS::cString &strMaxValue=A_UTILS_NS::cString::Empty, bool const bDefaultValid=false, const A_UTILS_NS::cString &strDefaultValue=A_UTILS_NS::cString::Empty, bool const bScaleValid=false, const A_UTILS_NS::cString &strScaleValue=A_UTILS_NS::cString::Empty, bool const bOffsetValid=false, const A_UTILS_NS::cString &strOffsetValue=A_UTILS_NS::cString::Empty) | |
CTOR. More... | |
cDDLElement (cDDLElement &oElem) | |
Copy CTOR. More... | |
virtual | ~cDDLElement () |
DTOR. | |
tResult | Accept (IDDLVisitor *poVisitor) |
Acceptance method for Visitor design-pattern. More... | |
bool | IsInitialized () const |
Getter for the initialization flag. More... | |
bool | IsPredefined () const |
Getter for the predefinition flag. More... | |
int | GetCreationLevel () const |
Getter for the creation level. More... | |
tResult | Create (IDDLDataType *poType, const A_UTILS_NS::cString &strName, unsigned int const uiBytepos, unsigned int const uiArraysize, cDDLByteorder::tByteorder const eByteorder, cDDLAlignment::tAlignment const eAlignment, IDDLUnit *poUnit, unsigned int const uiBitpos=0, unsigned int const uiNumBits=0, const A_UTILS_NS::cString &strDescription=A_UTILS_NS::cString::Empty, const A_UTILS_NS::cString &strComment=A_UTILS_NS::cString::Empty, const A_UTILS_NS::cString &strArraySizeSource=A_UTILS_NS::cString::Empty, const A_UTILS_NS::cString &strValue=A_UTILS_NS::cString::Empty, bool const bMinValid=false, const A_UTILS_NS::cString &strMinValue=A_UTILS_NS::cString::Empty, bool const bMaxValid=false, const A_UTILS_NS::cString &strMaxValue=A_UTILS_NS::cString::Empty, bool const bDefaultValid=false, const A_UTILS_NS::cString &strDefaultValue=A_UTILS_NS::cString::Empty, bool const bScaleValid=false, const A_UTILS_NS::cString &strScaleValue=A_UTILS_NS::cString::Empty, bool const bOffsetValid=false, const A_UTILS_NS::cString &strOffsetValue=A_UTILS_NS::cString::Empty) |
Creation method to fill the obejct with data. More... | |
const A_UTILS_NS::cString & | GetType () const |
Getter for the data-type name. More... | |
void | SetType (IDDLDataType *const pType) |
Setter for the type of the element. More... | |
IDDLDataType * | GetTypeObject () const |
Getter for the data-type object. 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 of the element. More... | |
unsigned int | GetBytepos () const |
Getter for the b byte position. More... | |
void | SetBytepos (unsigned int const uiBytePos) |
Setter for the byte position of the element. More... | |
unsigned int | GetArraysize () const |
Getter for the array size. More... | |
void | SetArraysize (unsigned int const uiArraySize) |
Setter for the array size of the element. More... | |
cDDLByteorder::tByteorder | GetByteorder () const |
Getter for the byteorder. More... | |
void | SetByteorder (cDDLByteorder::tByteorder const eByteOrder) |
Setter for the byte order of the element. More... | |
cDDLAlignment::tAlignment | GetAlignment () const |
Getter for the alignment. More... | |
void | SetAlignment (cDDLAlignment::tAlignment const eAlign) |
Setter for the alignment of the element. More... | |
void | SetBitpos (unsigned int const uiBitpos) |
Setter for the bit position. More... | |
unsigned int | GetBitpos () const |
Getter for the bit position. More... | |
void | SetNumBits (unsigned int const uiNumBits) |
Setter for the amount of bits. More... | |
unsigned int | GetNumBits () const |
Getter for the amount of bits. More... | |
void | SetDescription (const A_UTILS_NS::cString &strDescription) |
Setter for the description. More... | |
const A_UTILS_NS::cString & | GetDescription () const |
Getter for the description. More... | |
void | SetUnit (IDDLUnit *poUnit) |
Setter for the unit reference. More... | |
const A_UTILS_NS::cString & | GetUnit () const |
Getter for the unit name. More... | |
IDDLUnit * | GetUnitObject () const |
Getter for the unit object. More... | |
void | SetComment (const A_UTILS_NS::cString &strComment) |
Setter for the comment. More... | |
const A_UTILS_NS::cString & | GetComment () const |
Getter for the comment. More... | |
const 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... | |
const A_UTILS_NS::cString & | GetConstantValue () const |
Getter for the value of a constant element. More... | |
void | SetConstantValue (const A_UTILS_NS::cString &strConstantValue) |
Setter value of a constant element. More... | |
bool | IsDynamic () const |
Checks if element is dynamic. 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... | |
void | SetDefaultValidity (bool const bDefaultValid) |
Setter for the validity flag for the default value. More... | |
bool | IsDefaultValid () const |
Getter for the validity flag for the default value. More... | |
const A_UTILS_NS::cString & | GetDefaultValue () const |
Getter for the default value. More... | |
tResult | SetDefaultValue (const A_UTILS_NS::cString &strDefaultVal) |
Setter for the default value. More... | |
void | SetScaleValidity (bool const bScaleValid) |
Setter for the validity flag for the scaling value. More... | |
bool | IsScaleValid () const |
Getter for the validity flag for the scaling value. More... | |
const A_UTILS_NS::cString & | GetScaleValue () const |
Getter for the scaling value. More... | |
tResult | SetScaleValue (const A_UTILS_NS::cString &strScaleValue) |
Setter for the scaling value. More... | |
void | SetOffsetValidity (bool const bOffsetValid) |
Setter for the validity flag for the offset value. More... | |
bool | IsOffsetValid () const |
Getter for the validity flag for the offset value. More... | |
const A_UTILS_NS::cString & | GetOffsetValue () const |
Getter for the offset value. More... | |
tResult | SetOffsetValue (const A_UTILS_NS::cString &strOffsetValue) |
Setter for the offset value. More... | |
Private Attributes | |
IDDLDataType * | m_poType |
A_UTILS_NS::cString | m_strName |
unsigned int | m_uiBytepos |
unsigned int | m_uiBitpos |
unsigned int | m_uiNumBits |
A_UTILS_NS::cString | m_strDescription |
unsigned int | m_uiArraysize |
A_UTILS_NS::cString | m_strArraySizeSource |
A_UTILS_NS::cString | m_strConstantValue |
IDDLUnit * | m_poUnit |
cDDLByteorder::tByteorder | m_eByteorder |
cDDLAlignment::tAlignment | m_eAlignment |
A_UTILS_NS::cString | m_strComment |
bool | m_bInitFlag |
bool | m_bMinValid |
A_UTILS_NS::cString | m_strMinValue |
bool | m_bMaxValid |
A_UTILS_NS::cString | m_strMaxValue |
bool | m_bDefaultValid |
A_UTILS_NS::cString | m_strDefaultValue |
bool | m_bScaleValid |
A_UTILS_NS::cString | m_strScaleValue |
bool | m_bOffsetValid |
A_UTILS_NS::cString | m_strOffsetValue |
Representation of an element inside a struct in DDL a description.
Definition at line 18 of file ddlelement.h.
cDDLElement | ( | IDDLDataType * | poType, |
const A_UTILS_NS::cString & | strName, | ||
unsigned int const | uiBytepos, | ||
unsigned int const | uiArraysize, | ||
cDDLByteorder::tByteorder const | eByteorder, | ||
cDDLAlignment::tAlignment const | eAlignment, | ||
IDDLUnit * | poUnit = NULL , |
||
unsigned int const | uiBitpos = 0 , |
||
unsigned int const | uiNumBits = 0 , |
||
const A_UTILS_NS::cString & | strDescription = A_UTILS_NS::cString::Empty , |
||
const A_UTILS_NS::cString & | strComment = A_UTILS_NS::cString::Empty , |
||
const A_UTILS_NS::cString & | strArraySizeSource = A_UTILS_NS::cString::Empty , |
||
const A_UTILS_NS::cString & | strValue = A_UTILS_NS::cString::Empty , |
||
bool const | bMinValid = false , |
||
const A_UTILS_NS::cString & | strMinValue = A_UTILS_NS::cString::Empty , |
||
bool const | bMaxValid = false , |
||
const A_UTILS_NS::cString & | strMaxValue = A_UTILS_NS::cString::Empty , |
||
bool const | bDefaultValid = false , |
||
const A_UTILS_NS::cString & | strDefaultValue = A_UTILS_NS::cString::Empty , |
||
bool const | bScaleValid = false , |
||
const A_UTILS_NS::cString & | strScaleValue = A_UTILS_NS::cString::Empty , |
||
bool const | bOffsetValid = false , |
||
const A_UTILS_NS::cString & | strOffsetValue = A_UTILS_NS::cString::Empty |
||
) |
CTOR.
[in] | poType | - Pointer to the data-type object |
[in] | strName | - Name of the created element |
[in] | uiBytepos | - Byte position of the referenced data type |
[in] | uiArraysize | - Array size of the element |
[in] | eByteorder | - Byte order of the related data type |
[in] | eAlignment | - Alignment of the related data type |
[in] | poUnit | - Pointer to unit object |
[in] | uiBitpos | - Bit position of the referenced data type (optional) |
[in] | uiNumBits | - The amount of bits used for the representation (optional) |
[in] | strDescription | - Description of the created data type (optional) |
[in] | strComment | - Additional comments (optional) |
[in] | strArraySizeSource | - The name of the source element for the size of a dynamic array (optional) |
[in] | strValue | - The value of a constant element (optional) |
[in] | bMinValid | - Validity flag for the minimum value (optional) |
[in] | strMinValue | - Minimum value of the element (optional) |
[in] | bMaxValid | - Validity flag for the maximum value (optional) |
[in] | strMaxValue | - Maximum value of the element (optional) |
[in] | bDefaultValid | - Validity flag for the default value (optional) |
[in] | strDefaultValue | - Default value of the element (optional) |
[in] | bScaleValid | - Validity flag for the scaling value (optional) |
[in] | strScaleValue | - Scaling value of the element (optional) |
[in] | bOffsetValid | - Validity flag for the offset value (optional) |
[in] | strOffsetValue | - Offset value of the element (optional) |
cDDLElement | ( | cDDLElement & | oElem | ) |
Copy CTOR.
[in] | oElem | Instance of cDDLElement to copy. |
tResult Accept | ( | IDDLVisitor * | poVisitor | ) |
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 |
tResult Create | ( | IDDLDataType * | poType, |
const A_UTILS_NS::cString & | strName, | ||
unsigned int const | uiBytepos, | ||
unsigned int const | uiArraysize, | ||
cDDLByteorder::tByteorder const | eByteorder, | ||
cDDLAlignment::tAlignment const | eAlignment, | ||
IDDLUnit * | poUnit, | ||
unsigned int const | uiBitpos = 0 , |
||
unsigned int const | uiNumBits = 0 , |
||
const A_UTILS_NS::cString & | strDescription = A_UTILS_NS::cString::Empty , |
||
const A_UTILS_NS::cString & | strComment = A_UTILS_NS::cString::Empty , |
||
const A_UTILS_NS::cString & | strArraySizeSource = A_UTILS_NS::cString::Empty , |
||
const A_UTILS_NS::cString & | strValue = A_UTILS_NS::cString::Empty , |
||
bool const | bMinValid = false , |
||
const A_UTILS_NS::cString & | strMinValue = A_UTILS_NS::cString::Empty , |
||
bool const | bMaxValid = false , |
||
const A_UTILS_NS::cString & | strMaxValue = A_UTILS_NS::cString::Empty , |
||
bool const | bDefaultValid = false , |
||
const A_UTILS_NS::cString & | strDefaultValue = A_UTILS_NS::cString::Empty , |
||
bool const | bScaleValid = false , |
||
const A_UTILS_NS::cString & | strScaleValue = A_UTILS_NS::cString::Empty , |
||
bool const | bOffsetValid = false , |
||
const A_UTILS_NS::cString & | strOffsetValue = A_UTILS_NS::cString::Empty |
||
) |
Creation method to fill the obejct with data.
[in] | poType | - Pointer to the datatype object |
[in] | strName | - Name of the created element |
[in] | uiBytepos | - Byte position of the referenced data type |
[in] | uiArraysize | - Arraysize of the element |
[in] | eByteorder | - Byteorder of the related data type |
[in] | eAlignment | - Alignment of the related data type |
[in] | poUnit | - Pointer to unit object |
[in] | uiBitpos | - Bit position of the referenced data type (optional) |
[in] | uiNumBits | - The amount of bits used for the representation (optional) |
[in] | strDescription | - Description of the created data type (optional) |
[in] | strComment | - Additional comments (optional) |
[in] | strArraySizeSource | - The name of the source element for the size of a dynamic array |
[in] | strValue | - The value of a constant element (optional) |
[in] | bMinValid | - Validity flag for the minimum value (optional) |
[in] | strMinValue | - Minimum value of the element (optional) |
[in] | bMaxValid | - Validity flag for the maximum value (optional) |
[in] | strMaxValue | - Maximum value of the element (optional) |
[in] | bDefaultValid | - Validity flag for the default value (optional) |
[in] | strDefaultValue | - Default value of the element (optional) |
[in] | bScaleValid | - Validity flag for the scaling value (optional) |
[in] | strScaleValue | - Scaling value of the element (optional) |
[in] | bOffsetValid | - Validity flag for the offset value (optional) |
[in] | strOffsetValue | - Offset value of the element (optional) |
ERR_POINTER | Null-pointer committed |
cDDLAlignment::tAlignment GetAlignment | ( | ) | const |
Getter for the alignment.
unsigned int GetArraysize | ( | ) | const |
Getter for the array size.
const A_UTILS_NS::cString& GetArraySizeSource | ( | ) | const |
Getter for the array size source.
unsigned int GetBitpos | ( | ) | const |
Getter for the bit position.
cDDLByteorder::tByteorder GetByteorder | ( | ) | const |
Getter for the byteorder.
unsigned int GetBytepos | ( | ) | const |
Getter for the b byte position.
const A_UTILS_NS::cString& GetComment | ( | ) | const |
Getter for the comment.
const A_UTILS_NS::cString& GetConstantValue | ( | ) | const |
Getter for the value of a constant element.
int GetCreationLevel | ( | ) | const |
Getter for the creation level.
const A_UTILS_NS::cString& GetDefaultValue | ( | ) | const |
Getter for the default value.
const 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.
const A_UTILS_NS::cString& GetName | ( | ) | const |
Getter for the name.
unsigned int GetNumBits | ( | ) | const |
Getter for the amount of bits.
const A_UTILS_NS::cString& GetOffsetValue | ( | ) | const |
Getter for the offset value.
const A_UTILS_NS::cString& GetScaleValue | ( | ) | const |
Getter for the scaling value.
const A_UTILS_NS::cString& GetType | ( | ) | const |
Getter for the data-type name.
IDDLDataType* GetTypeObject | ( | ) | const |
Getter for the data-type object.
const A_UTILS_NS::cString& GetUnit | ( | ) | const |
Getter for the unit name.
IDDLUnit* GetUnitObject | ( | ) | const |
Getter for the unit object.
bool IsDefaultValid | ( | ) | const |
Getter for the validity flag for the default value.
bool IsDynamic | ( | ) | const |
Checks if element is dynamic.
bool IsInitialized | ( | ) | const |
Getter for the initialization flag.
true | The object was initialized correctly |
false | The object was not or not correctly initialized |
bool IsMaxValid | ( | ) | const |
Getter for the validity flag for the maximum value.
bool IsMinValid | ( | ) | const |
Getter for the validity flag for the minimum value.
bool IsOffsetValid | ( | ) | const |
Getter for the validity flag for the offset value.
bool IsPredefined | ( | ) | const |
Getter for the predefinition flag.
true | The object was predefined |
false | The object was defined later |
bool IsScaleValid | ( | ) | const |
Getter for the validity flag for the scaling value.
void SetAlignment | ( | cDDLAlignment::tAlignment const | eAlign | ) |
Setter for the alignment of the element.
[in] | eAlign | Alignment of the element |
void SetArraysize | ( | unsigned int const | uiArraySize | ) |
Setter for the array size of the element.
[in] | uiArraySize | Array size of the element |
void SetArraySizeSource | ( | const A_UTILS_NS::cString & | strArraySizeSource | ) |
Setter for the array size source.
[in] | strArraySizeSource | - the array size source element |
void SetBitpos | ( | unsigned int const | uiBitpos | ) |
Setter for the bit position.
[in] | uiBitpos | - Bit position of the referenced data type |
void SetByteorder | ( | cDDLByteorder::tByteorder const | eByteOrder | ) |
Setter for the byte order of the element.
[in] | eByteOrder | Byte order of the element |
void SetBytepos | ( | unsigned int const | uiBytePos | ) |
Setter for the byte position of the element.
[in] | uiBytePos | Byte position of the element |
void SetComment | ( | const A_UTILS_NS::cString & | strComment | ) |
Setter for the comment.
[in] | strComment | - Additional comments |
void SetConstantValue | ( | const A_UTILS_NS::cString & | strConstantValue | ) |
Setter value of a constant element.
[in] | strConstantValue | - constant value |
void SetDefaultValidity | ( | bool const | bDefaultValid | ) |
Setter for the validity flag for the default value.
[in] | bDefaultValid | Validity flag for the default value |
tResult SetDefaultValue | ( | const A_UTILS_NS::cString & | strDefaultVal | ) |
Setter for the default value.
[in] | strDefaultVal | The new default value |
ERR_NOERROR | Everything went fine. |
void SetDescription | ( | const A_UTILS_NS::cString & | strDescription | ) |
Setter for the description.
[in] | strDescription | - the description |
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 element.
[in] | strName | Name of the element |
void SetNumBits | ( | unsigned int const | uiNumBits | ) |
Setter for the amount of bits.
[in] | uiNumBits | - Amount of bits used for the representation |
void SetOffsetValidity | ( | bool const | bOffsetValid | ) |
Setter for the validity flag for the offset value.
[in] | bOffsetValid | Validity flag for the offset value |
tResult SetOffsetValue | ( | const A_UTILS_NS::cString & | strOffsetValue | ) |
Setter for the offset value.
[in] | strOffsetValue | The new offset value |
ERR_NOERROR | Everything went fine. |
void SetScaleValidity | ( | bool const | bScaleValid | ) |
Setter for the validity flag for the scaling value.
[in] | bScaleValid | Validity flag for the scaling value |
tResult SetScaleValue | ( | const A_UTILS_NS::cString & | strScaleValue | ) |
Setter for the scaling value.
[in] | strScaleValue | The new scaling value |
ERR_NOERROR | Everything went fine. |
void SetType | ( | IDDLDataType *const | pType | ) |
Setter for the type of the element.
[in] | pType | Pointer to the type object |
void SetUnit | ( | IDDLUnit * | poUnit | ) |
Setter for the unit reference.
[in] | poUnit | - Pointer to the unit object of the element |