ADTF
|
Generator template to create DataType for the plain c-types. More...
Public Member Functions | |
DataType (const std::string &) | |
CTOR. More... | |
DataType () | |
CTOR. More... | |
Public Member Functions inherited from DataType | |
DataType () | |
default CTOR | |
DataType (const DataType &)=default | |
copy CTOR | |
DataType (DataType &&)=default | |
move CTOR | |
DataType & | operator= (const DataType &)=default |
copy assignment operator. More... | |
DataType & | operator= (DataType &&)=default |
move assignment operator. More... | |
DataType (const std::string &name, size_t bit_size, const std::string &description={}, OptionalSize array_size={}, const std::string &unit_name={}, const std::string &minimum_value={}, const std::string &maximum_value={}, OptionalSize default_type_alignment={}) | |
CTOR. More... | |
DataType (const std::initializer_list< std::string > &initializer) | |
CTOR with initializer. More... | |
virtual | ~DataType ()=default |
DTOR. | |
bool | operator== (const DataType &other) const |
equality operator. More... | |
bool | operator!= (const DataType &other) const |
non equality operator. More... | |
TypeOfType | getTypeOfType () const override |
Get the Type Of the Type (data_type, enum_type, struct_type, stream_meta_type). More... | |
void | setName (const std::string &name) override |
Set the Name. More... | |
size_t | getBitSize () const |
Get the Bit Size. More... | |
void | setBitSize (size_t size) |
Set the Bit Size. More... | |
OptionalSize | getArraySize () const |
Get the Array Size (optional) More... | |
void | setArraySize (OptionalSize array_size) |
Set the Array Size object. More... | |
const std::string & | getUnitName () const |
Get the Unit Name. More... | |
void | setUnitName (const std::string &unit_name) |
Set the Unit Name. More... | |
const std::string & | getMin () const |
Get the Min Value for information (introduced in DDL 3.0) More... | |
void | setMin (const std::string &minimum_value) |
Set the Min (introduced in DDL 3.0) More... | |
const std::string & | getMax () const |
Get the Max Value for information (introduced in DDL 3.0) More... | |
void | setMax (const std::string &maximum_value) |
Set the Max (introduced in DDL 3.0) More... | |
const std::string & | getDescription () const |
Get the Description. More... | |
void | setDescription (const std::string &description) |
Set the Description. More... | |
const OptionalSize & | getDefaultAlignment () const |
Get the default Alignment if set. More... | |
Public Member Functions inherited from TypeBase | |
TypeBase ()=default | |
CTOR. | |
TypeBase (const TypeBase &)=default | |
copy CTOR | |
TypeBase (TypeBase &&)=default | |
move CTOR | |
TypeBase & | operator= (const TypeBase &)=default |
copy assignment operator More... | |
TypeBase & | operator= (TypeBase &&)=default |
move assignment operator More... | |
TypeBase (const std::string &name) | |
CTOR. More... | |
virtual | ~TypeBase ()=default |
DTOR. | |
const std::string & | getName () const |
Get the Name. 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... | |
Additional Inherited Members | |
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 | |
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... | |
Protected Attributes inherited from TypeBase | |
std::string | _name |
name storage value | |
Generator template to create DataType for the plain c-types.
T | The POD type to use |
Definition at line 38 of file dd_predefined_datatypes.h.
|
inline |
CTOR.
creates the datatype with a different name then defined by default.
Definition at line 43 of file dd_predefined_datatypes.h.
|
inline |
CTOR.
creates the datatype with the default name for the type T
.
Definition at line 52 of file dd_predefined_datatypes.h.