7 #ifndef _DDLELEMENT_H_INCLUDED_
8 #define _DDLELEMENT_H_INCLUDED_
54 unsigned int const uiBytepos,
55 unsigned int const uiArraysize,
59 unsigned int const uiBitpos = 0,
60 unsigned int const uiNumBits = 0,
65 bool const bMinValid =
false,
67 bool const bMaxValid =
false,
69 bool const bDefaultValid =
false,
71 bool const bScaleValid =
false,
73 bool const bOffsetValid =
false,
152 unsigned int const uiBytepos,
153 unsigned int const uiArraysize,
157 unsigned int const uiBitpos = 0,
unsigned int const uiNumBits = 0,
162 bool const bMinValid =
false,
164 bool const bMaxValid =
false,
166 bool const bDefaultValid =
false,
168 bool const bScaleValid =
false,
170 bool const bOffsetValid =
false,
538 unsigned int m_uiBytepos;
539 unsigned int m_uiBitpos;
540 unsigned int m_uiNumBits;
542 unsigned int m_uiArraysize;
555 bool m_bDefaultValid;
A common result class usable as return value throughout.
static const _myType Empty
Internally used empty string.
Common interface for DDL datatypes.
Interface for unit classes of the object representation for DDL descriptions.
Abstract base class/interface for Visitor design-pattern.
tAlignment
Representation of the alignment enumeration.
tByteorder
Representation of the byteorder enumeration.
Representation of an element inside a struct in DDL a description.
const A_UTILS_NS::cString & GetOffsetValue() const
Getter for the offset value.
const A_UTILS_NS::cString & GetName() const
Getter for the name.
tResult SetMaxValue(const A_UTILS_NS::cString &strMaxVal)
Setter for the maximum value of the data type.
void SetOffsetValidity(bool const bOffsetValid)
Setter for the validity flag for the offset value.
void SetArraySizeSource(const A_UTILS_NS::cString &strArraySizeSource)
Setter for the array size source.
cDDLAlignment::tAlignment GetAlignment() const
Getter for the alignment.
void SetByteorder(cDDLByteorder::tByteorder const eByteOrder)
Setter for the byte order of the element.
cDDLByteorder::tByteorder GetByteorder() const
Getter for the byteorder.
void SetMinValidity(bool const bMinValid)
Setter for the validity flag for the minimum value.
const A_UTILS_NS::cString & GetDefaultValue() const
Getter for the default value.
unsigned int GetBytepos() const
Getter for the b byte position.
void SetNumBits(unsigned int const uiNumBits)
Setter for the amount of bits.
void SetAlignment(cDDLAlignment::tAlignment const eAlign)
Setter for the alignment of the element.
void SetUnit(IDDLUnit *poUnit)
Setter for the unit reference.
bool IsInitialized() const
Getter for the initialization flag.
const A_UTILS_NS::cString & GetScaleValue() const
Getter for the scaling value.
const A_UTILS_NS::cString & GetComment() const
Getter for the comment.
unsigned int GetNumBits() const
Getter for the amount of bits.
int GetCreationLevel() const
Getter for the creation level.
void SetArraysize(unsigned int const uiArraySize)
Setter for the array size of the element.
unsigned int GetArraysize() const
Getter for the array size.
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.
void SetScaleValidity(bool const bScaleValid)
Setter for the validity flag for the scaling value.
bool IsDefaultValid() const
Getter for the validity flag for the default value.
void SetBytepos(unsigned int const uiBytePos)
Setter for the byte position of the element.
void SetType(IDDLDataType *const pType)
Setter for the type of the element.
tResult SetMinValue(const A_UTILS_NS::cString &strMinVal)
Setter for the minimum value of the data type.
tResult SetScaleValue(const A_UTILS_NS::cString &strScaleValue)
Setter for the scaling value.
void SetMaxValidity(bool const bMaxValid)
Setter for the validity flag for the maximum value.
const A_UTILS_NS::cString & GetMinValue() const
Getter for the minimum value of the data type.
const A_UTILS_NS::cString & GetMaxValue() const
Getter for the maximum value of the data type.
const A_UTILS_NS::cString & GetArraySizeSource() const
Getter for the array size source.
IDDLUnit * GetUnitObject() const
Getter for the unit object.
bool IsScaleValid() const
Getter for the validity flag for the scaling value.
bool IsPredefined() const
Getter for the predefinition flag.
bool IsMinValid() const
Getter for the validity flag for the minimum value.
void SetConstantValue(const A_UTILS_NS::cString &strConstantValue)
Setter value of a constant element.
void SetComment(const A_UTILS_NS::cString &strComment)
Setter for the comment.
IDDLDataType * GetTypeObject() const
Getter for the data-type object.
void SetDescription(const A_UTILS_NS::cString &strDescription)
Setter for the description.
void SetDefaultValidity(bool const bDefaultValid)
Setter for the validity flag for the default value.
cDDLElement()
Default CTOR.
tResult Accept(IDDLVisitor *poVisitor)
Acceptance method for Visitor design-pattern.
void SetName(const A_UTILS_NS::cString &strName)
Setter for the name of the element.
bool IsDynamic() const
Checks if element is dynamic.
const A_UTILS_NS::cString & GetUnit() const
Getter for the unit name.
const A_UTILS_NS::cString & GetType() const
Getter for the data-type name.
tResult SetOffsetValue(const A_UTILS_NS::cString &strOffsetValue)
Setter for the offset value.
virtual ~cDDLElement()
DTOR.
bool IsMaxValid() const
Getter for the validity flag for the maximum value.
void SetBitpos(unsigned int const uiBitpos)
Setter for the bit position.
const A_UTILS_NS::cString & GetDescription() const
Getter for the description.
bool IsOffsetValid() const
Getter for the validity flag for the offset value.
unsigned int GetBitpos() const
Getter for the bit position.
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.
const A_UTILS_NS::cString & GetConstantValue() const
Getter for the value of a constant element.
cDDLElement(cDDLElement &oElem)
Copy CTOR.
tResult SetDefaultValue(const A_UTILS_NS::cString &strDefaultVal)
Setter for the default value.
Namespace for the mainpage_pkg_ddl.