ADTF
|
class to describe the serialized information of a StructType::Element. More...
Public Member Functions | |
SerializedInfo () | |
default CTOR. | |
SerializedInfo (const SerializedInfo &)=default | |
copy CTOR | |
SerializedInfo (SerializedInfo &&)=default | |
move CTOR | |
SerializedInfo & | operator= (const SerializedInfo &)=default |
copy assignment operator More... | |
SerializedInfo & | operator= (SerializedInfo &&)=default |
move assignment operator More... | |
virtual | ~SerializedInfo ()=default |
DTOR. | |
SerializedInfo (OptionalSize byte_pos, ByteOrder byte_order=ByteOrderDefault::getPlatformDefault(), OptionalSize bit_pos={}, OptionalSize num_bits={}) | |
CTOR. More... | |
SerializedInfo (const std::initializer_list< size_t > &intializer) | |
CTOR with string list initializing. More... | |
bool | operator== (const SerializedInfo &other) const |
equality operator. More... | |
OptionalSize | getBytePos () const |
Get the Byte Pos. More... | |
void | setBytePos (OptionalSize byte_pos, bool prevent_notification=false) |
Set the Byte Pos. More... | |
OptionalSize | getBitPos () const |
Get the Bit Pos (if set) More... | |
void | setBitPos (OptionalSize bit_pos, bool prevent_notification=false) |
Sets the Bit Pos. More... | |
OptionalSize | getNumBits () const |
Get the Num Bits (if set) More... | |
void | setNumBits (OptionalSize num_bits) |
Set the Num Bits. More... | |
ByteOrder | getByteOrder () const |
Get the Byte Order. More... | |
void | setByteOrder (ByteOrder byte_order) |
Set the Byte Order. More... | |
Protected Member Functions | |
virtual void | notifyChangeSerialized (const std::string &) |
notification forwarding of serialized information to the StructType::Element object. More... | |
Private Attributes | |
OptionalSize | _byte_pos = {} |
OptionalSize | _bit_pos = {} |
OptionalSize | _num_bits = {} |
ByteOrder | _byte_order = e_le |
class to describe the serialized information of a StructType::Element.
Definition at line 494 of file datamodel_types.h.
SerializedInfo | ( | OptionalSize | byte_pos, |
ByteOrder | byte_order = ByteOrderDefault::getPlatformDefault() , |
||
OptionalSize | bit_pos = {} , |
||
OptionalSize | num_bits = {} |
||
) |
CTOR.
byte_pos | the byte position |
byte_order | the byte order |
bit_pos | the bit position (optional) |
num_bits | the number of bits used (optional) |
SerializedInfo | ( | const std::initializer_list< size_t > & | intializer | ) |
CTOR with string list initializing.
intializer | the initializer with strings. Valid in this order:
StructType my_struct_type;
//the {"24", "LE", "8", "5"} is the SerializedInfo
my_tsruct_type.addElement({ "bit_usage_5", "int32_t", { 0 }, {"24", "LE", "8", "5"});
|
OptionalSize getBitPos | ( | ) | const |
Get the Bit Pos (if set)
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
ByteOrder getByteOrder | ( | ) | const |
OptionalSize getBytePos | ( | ) | const |
Get the Byte Pos.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
OptionalSize getNumBits | ( | ) | const |
Get the Num Bits (if set)
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
|
inlineprotectedvirtual |
notification forwarding of serialized information to the StructType::Element object.
param std::string string additional_info - The name of the additional info in the notification to forward.
Reimplemented in StructType::Element.
Definition at line 633 of file datamodel_types.h.
|
default |
copy assignment operator
|
default |
move assignment operator
bool operator== | ( | const SerializedInfo & | other | ) | const |
equality operator.
other | the other serialized info to compare to. |
void setBitPos | ( | OptionalSize | bit_pos, |
bool | prevent_notification = false |
||
) |
Sets the Bit Pos.
bit_pos | the bit pos if it is valid |
prevent_notification | if set to true this change is not observable. |
void setByteOrder | ( | ByteOrder | byte_order | ) |
Set the Byte Order.
byte_order | the byte order to set |
void setBytePos | ( | OptionalSize | byte_pos, |
bool | prevent_notification = false |
||
) |
Set the Byte Pos.
byte_pos | the bytepos to set |
prevent_notification | if set to true this change is not observable. |
void setNumBits | ( | OptionalSize | num_bits | ) |
Set the Num Bits.
num_bits | the num bits to set. |