ADTF
|
observable Stream DataDefinition object. More...
Classes | |
class | Struct |
DataDefinition object class of datamodel to hold a streamstruct. More... | |
Public Types | |
using | Structs = utility::TypeAccessList< Struct, Stream > |
Definiton of the container containts the streamstructs of a stream. | |
Public Types inherited from ModelSubjectUtility< MODEL_SUBJECT_T, EVENT_CODE_T > | |
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 | |
Public Member Functions | |
Stream ()=delete | |
no default CTOR. | |
Stream (Stream &&) | |
move CTOR | |
Stream & | operator= (Stream &&) |
move assignment operator More... | |
Stream (const Stream &other) | |
copy CTOR More... | |
Stream & | operator= (const Stream &other) |
copy assignment operator More... | |
virtual | ~Stream ()=default |
DTOR. | |
Stream (const std::string &name, const std::string &stream_type_name, const std::string &description={}, const std::vector< Struct > &structs={}) | |
CTOR. More... | |
bool | operator== (const Stream &other) const |
equality operator. More... | |
bool | operator!= (const Stream &other) const |
non equality operator. More... | |
void | setName (const std::string &name) |
Set the Name. More... | |
const std::string & | getName () const |
Get the Name. More... | |
void | setStreamTypeName (const std::string &stream_type_name) |
Set the Stream Type Name. More... | |
const std::string & | getStreamTypeName () const |
Get the Stream Type Name. More... | |
const std::string & | getDescription () const |
Get the Description. More... | |
void | setDescription (const std::string &description) |
Set the Description. More... | |
const Structs & | getStructs () const |
Get the Structs object. More... | |
Structs & | getStructs () |
Get the Structs object. More... | |
Public Member Functions inherited from ModelSubjectUtility< MODEL_SUBJECT_T, EVENT_CODE_T > | |
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... | |
Public Member Functions inherited from InfoMap | |
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 Member Functions | |
void | notify (ModelEventCode code, utility::TypeAccessMapEventCode map_code, const std::string &additional_info) |
bool | validateContains (const Structs::access_type &stream_struct) const |
void | notifyChangedListContent (utility::TypeAccessListEventCode code, Structs::access_type &stream_struct, const std::string &additional_info) |
const Structs::container_named_compatibility_type * | getNamedItemList () const |
Structs::container_named_compatibility_type * | getNamedItemList () |
const Structs::container_named_type * | getNamedItemViewList () const |
Structs::container_named_type * | getNamedItemViewList () |
Private Attributes | |
std::string | _name |
std::string | _stream_type_name |
std::string | _description |
Structs | _structs |
Additional Inherited Members | |
Protected Member Functions inherited from ModelSubjectUtility< MODEL_SUBJECT_T, EVENT_CODE_T > | |
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... | |
observable Stream DataDefinition object.
Definition at line 39 of file datamodel_streams.h.
Stream | ( | const std::string & | name, |
const std::string & | stream_type_name, | ||
const std::string & | description = {} , |
||
const std::vector< Struct > & | structs = {} |
||
) |
CTOR.
name | name of the stream |
stream_type_name | name of the stream type (may be a stucttype or a streammetatype) |
description | the description of the stream |
structs | vector of streamstructs that are added. |
ddl::dd::Error | if a structs containing structs with the same name. |
const std::string& getDescription | ( | ) | const |
Get the Description.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
const std::string& getName | ( | ) | const |
Get the Name.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
const std::string& getStreamTypeName | ( | ) | const |
Get the Stream Type Name.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
Structs& getStructs | ( | ) |
Get the Structs object.
const Structs& getStructs | ( | ) | const |
Get the Structs object.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode(), and DDFromXMLFactory< DOM_NODE_TYPE >::createStream().
bool operator!= | ( | const Stream & | other | ) | const |
non equality operator.
other | the other stream to compare this stream to. |
bool operator== | ( | const Stream & | other | ) | const |
equality operator.
other | the other stream to compare this stream to. |
void setDescription | ( | const std::string & | description | ) |
Set the Description.
description | the description to set |
Referenced by DDFromXMLFactory< DOM_NODE_TYPE >::createStream().
void setName | ( | const std::string & | name | ) |
Set the Name.
name | the name |
Throws | if a stream with that name already exists in the container this stream is part of. |
void setStreamTypeName | ( | const std::string & | stream_type_name | ) |
Set the Stream Type Name.
stream_type_name | the streamtype name (must be a structtype or a streammetatype) |