ADTF
|
Sinc DDL 2.0 it is possible to define arraysize with a string that indicates a dynamic array. More...
Public Member Functions | |
ArraySize ()=default | |
default CTOR. | |
ArraySize (size_t array_size) | |
CTOR. More... | |
ArraySize & | operator= (size_t array_size) |
assignment operator More... | |
ArraySize (const std::string &array_size_element_name) | |
CTOR. More... | |
ArraySize & | operator= (const std::string &array_size_element_name) |
assignment operator More... | |
void | setArraySizeValue (size_t array_size) |
set the array size More... | |
size_t | getArraySizeValue () const |
get the array size | |
void | setArraySizeElementName (const std::string &array_size_element_name) |
sets the dynamic array size More... | |
const std::string & | getArraySizeElementName () const |
gets the dynamic array size More... | |
bool | isDynamicArraySize () const |
indicates if this is a dynamic erray size. | |
bool | operator== (const ArraySize &other) const |
compares the Array size with the other More... | |
bool | operator!= (const ArraySize &other) const |
compares the Array size with the other More... | |
Private Attributes | |
size_t | _array_size = {1} |
std::string | _array_size_element_name = {} |
Sinc DDL 2.0 it is possible to define arraysize with a string that indicates a dynamic array.
The string it self is a elementname of the containing struct type.
Definition at line 378 of file dd_common_types.h.
ArraySize | ( | size_t | array_size | ) |
CTOR.
array_size | sets the array size |
ArraySize | ( | const std::string & | array_size_element_name | ) |
CTOR.
array_size_element_name | sets the dynamic array size elment name |
const std::string& getArraySizeElementName | ( | ) | const |
gets the dynamic array size
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
bool operator!= | ( | const ArraySize & | other | ) | const |
compares the Array size with the other
[other] | the other array size |
false | if they are equal |
true | if they are not equal |
ArraySize& operator= | ( | const std::string & | array_size_element_name | ) |
assignment operator
array_size_element_name | sets the dynamic array size elment name |
ArraySize& operator= | ( | size_t | array_size | ) |
bool operator== | ( | const ArraySize & | other | ) | const |
compares the Array size with the other
[other] | the other array size |
true | if they are equal |
false | if they are not equal |
void setArraySizeElementName | ( | const std::string & | array_size_element_name | ) |
sets the dynamic array size
array_size_element_name | sets the dynamic array size elment name |
void setArraySizeValue | ( | size_t | array_size | ) |
set the array size
array_size | sets the array size |