ADTF
|
DataDefinition object class of datamodel to hold a streamstruct. More...
Public Member Functions | |
Struct () | |
default CTOR | |
Struct (const Struct &)=default | |
copy CTOR | |
Struct (Struct &&)=default | |
move CTOR | |
Struct & | operator= (const Struct &)=default |
copy assignment operator. More... | |
Struct & | operator= (Struct &&)=default |
move assignment operator. More... | |
Struct (const std::string &name, const std::string &type_name, OptionalSize byte_pos={}) | |
CTOR. More... | |
bool | operator== (const Struct &other) const |
equality operator More... | |
bool | operator!= (const Struct &other) const |
non-equality operator More... | |
const std::string & | getName () const |
Get the Name. More... | |
void | setName (const std::string &name) |
Set the Name. More... | |
const std::string & | getTypeName () const |
Get the Type Name. More... | |
void | setTypeName (const std::string &type_name) |
Set the Type Name. More... | |
OptionalSize | getBytePos () const |
Get the Byte Pos. More... | |
void | setBytePos (OptionalSize byte_pos) |
Set the Byte Pos. More... | |
![]() | |
ModelSubjectUtility ()=default | |
CTOR. | |
ModelSubjectUtility (const ModelSubjectUtility &) | |
copy CTOR which removes the observers in case of! | |
ModelSubjectUtility & | operator= (const ModelSubjectUtility &) |
copy assignment operator which removes the observers in case of! More... | |
virtual | ~ModelSubjectUtility ()=default |
DTOR. | |
void | attachObserver (observer_type *observer) |
adda a observer to notify. More... | |
void | detachObserver (observer_type *observer) |
remove a observer if in list. More... | |
![]() | |
InfoMap ()=default | |
CTOR. | |
InfoMap (const InfoMap &) | |
copy CTOR More... | |
InfoMap (InfoMap &&) | |
move CTOR More... | |
InfoMap & | operator= (const InfoMap &) |
copy assignment operator More... | |
InfoMap & | operator= (InfoMap &&) |
move assignment operator More... | |
template<typename INFO_T > | |
const INFO_T * | getInfo () const |
Get the Info Pointer. More... | |
template<typename INFO_T > | |
INFO_T * | getInfo () |
Get the Info Pointer. More... | |
template<typename INFO_T > | |
void | setInfo (const std::shared_ptr< INFO_T > &info) |
Set the Info object as shared pointer. More... | |
Private Attributes | |
std::string | _name |
std::string | _type_name |
OptionalSize | _byte_pos |
Additional Inherited Members | |
![]() | |
typedef EVENT_CODE_T | event_code_type |
local definition of the event code type | |
typedef MODEL_SUBJECT_T | subject_type |
local definition of the subject type | |
typedef ModelObserverUtility< MODEL_SUBJECT_T, EVENT_CODE_T > | observer_type |
local definition of the observer type to notify | |
![]() | |
void | notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info) |
helper utility function to notify the current observers More... | |
DataDefinition object class of datamodel to hold a streamstruct.
Definition at line 80 of file datamodel_streams.h.
Struct | ( | const std::string & | name, |
const std::string & | type_name, | ||
OptionalSize | byte_pos = {} |
||
) |
CTOR.
name | name of the stream struct (one single empty name is allowed (says xsd)) |
type_name | the name of the type to use (must be a valid struct type) |
byte_pos | the first bytepos of the structtype (optional ... default is 0) |
OptionalSize getBytePos | ( | ) | const |
Get the Byte Pos.
const std::string& getName | ( | ) | const |
Get the Name.
const std::string& getTypeName | ( | ) | const |
Get the Type Name.
bool operator!= | ( | const Struct & | other | ) | const |
non-equality operator
other | the other streamstruct to compare the streamstruct with. |
bool operator== | ( | const Struct & | other | ) | const |
equality operator
other | the other streamstruct to compare the streamstruct with. |
void setBytePos | ( | OptionalSize | byte_pos | ) |
Set the Byte Pos.
byte_pos | the byte pos to set |
void setName | ( | const std::string & | name | ) |
Set the Name.
name | the name |
may | throw if the name is not unique within the container this struct is part of. |
void setTypeName | ( | const std::string & | type_name | ) |
Set the Type Name.
type_name | the typename to set |