ADTF
|
Utility class for a complete valid data definition of one StructType::Element and its dependencies. More...
Public Types | |
using | Deserialized = dd::datamodel::StructType::DeserializedInfo |
Deserialized definiton for one element. | |
using | Serialized = dd::datamodel::StructType::SerializedInfo |
Serialized definiton for one element. | |
Public Member Functions | |
DDElement ()=default | |
Construct a new DDElement object. | |
DDElement (DDElement &&)=default | |
Construct a new DDElement object. | |
DDElement (const DDElement &)=default | |
Construct a new DDElement object. | |
DDElement & | operator= (DDElement &&)=default |
assignment move operator More... | |
DDElement & | operator= (const DDElement &)=default |
assignment copy operator More... | |
~DDElement ()=default | |
Destroy the DDElement object. | |
DDElement (const std::string &name, const dd::DataType &data_type, const Deserialized &deserialized_info={}, const Serialized &serialized_info={}, const dd::ArraySize &array_size=1, const std::string &description={}, const std::string &comment={}, const dd::BaseUnit &base_unit={}, const std::string &minimum_value={}, const std::string &maximum_value={}, const std::string &default_value={}, const std::string &scale={}, const std::string &offset={}) | |
Construct a new DDElement object that uses a POD Type (dd::DataType) Use it like: More... | |
DDElement (const std::string &name, const dd::DataType &data_type, const Deserialized &deserialized_info, const Serialized &serialized_info, const dd::ArraySize &array_size, const std::string &description, const std::string &comment, const DDUnit &unit, const std::string &minimum_value={}, const std::string &maximum_value={}, const std::string &default_value={}, const std::string &scale={}, const std::string &offset={}) | |
Construct a new DDElement object that uses a POD Type (dd::DataType) Use it like: More... | |
DDElement (const std::string &name, const DDDataType &data_type, const Deserialized &deserialized_info={}, const Serialized &serialized_info={}, const dd::ArraySize &array_size=1, const std::string &description={}, const std::string &comment={}, const dd::BaseUnit &base_unit={}, const std::string &minimum_value={}, const std::string &maximum_value={}, const std::string &default_value={}, const std::string &scale={}, const std::string &offset={}) | |
Construct a new DDElement object that uses a POD Type (dd::DataType) Use it like: More... | |
DDElement (const std::string &name, const DDDataType &data_type, const Deserialized &deserialized_info, const Serialized &serialized_info, const dd::ArraySize &array_size, const std::string &description, const std::string &comment, const DDUnit &unit, const std::string &minimum_value={}, const std::string &maximum_value={}, const std::string &default_value={}, const std::string &scale={}, const std::string &offset={}) | |
Construct a new DDElement object that uses a POD Type (dd::DataType) Use it like: More... | |
DDElement (const std::string &name, const DDEnum &enum_type, const Deserialized &deserialized_info={}, const Serialized &serialized_info={}, const dd::ArraySize &array_size=1, const std::string &description={}, const std::string &comment={}, const dd::BaseUnit &base_unit={}, const std::string &value={}, const std::string &minimum_value={}, const std::string &maximum_value={}, const std::string &default_value={}, const std::string &scale={}, const std::string &offset={}) | |
Construct a new DDElement object that uses a Enum Type (dd::EnumType) Use it like: More... | |
DDElement (const std::string &name, const DDEnum &enum_type, const Deserialized &deserialized_info, const Serialized &serialized_info, const dd::ArraySize &array_size, const std::string &description, const std::string &comment, const DDUnit &unit, const std::string &value={}, const std::string &minimum_value={}, const std::string &maximum_value={}, const std::string &default_value={}, const std::string &scale={}, const std::string &offset={}) | |
Construct a new DDElement object that uses a Enum Type (dd::EnumType) Use it like: More... | |
DDElement (const std::string &name, const DDStructure &structure_type, const Deserialized &deserialized_info={}, const Serialized &serialized_info={}, const dd::ArraySize &array_size=1, const std::string &description={}, const std::string &comment={}) | |
Construct a new DDElement object that uses a Enum Type (dd::EnumType) Use it like: More... | |
const dd::StructType::Element & | getElement () const |
Get the Element object. More... | |
const dd::DataDefinition & | getDD () const |
retrieves a valid DataDefinition for the elements datatypes and units. More... | |
Private Attributes | |
dd::DataDefinition | _dd |
dd::StructType::Element | _element |
Utility class for a complete valid data definition of one StructType::Element and its dependencies.
This class is for convenience to use it together with ddl::DDStructure .
Definition at line 36 of file ddelement.h.
DDElement | ( | const std::string & | name, |
const dd::DataType & | data_type, | ||
const Deserialized & | deserialized_info = {} , |
||
const Serialized & | serialized_info = {} , |
||
const dd::ArraySize & | array_size = 1 , |
||
const std::string & | description = {} , |
||
const std::string & | comment = {} , |
||
const dd::BaseUnit & | base_unit = {} , |
||
const std::string & | minimum_value = {} , |
||
const std::string & | maximum_value = {} , |
||
const std::string & | default_value = {} , |
||
const std::string & | scale = {} , |
||
const std::string & | offset = {} |
||
) |
Construct a new DDElement object that uses a POD Type (dd::DataType) Use it like:
name | Name of the element. |
data_type | Data Type of the element. Use dd::DataType template. |
deserialized_info | deserialized information (will be set by default to the alignment of data_type). |
serialized_info | serialized information of this element (will be set automatically to the next valid bytepos depending on previous elements). |
array_size | array size of the element |
description | description of the element |
comment | comment of the element |
base_unit | base_unit of the element to use |
minimum_value | minimum value of the element |
maximum_value | maximum value of the element |
default_value | default value (mind! should fit to the data_type) |
scale | scale of the element |
offset | offset of the value |
DDElement | ( | const std::string & | name, |
const dd::DataType & | data_type, | ||
const Deserialized & | deserialized_info, | ||
const Serialized & | serialized_info, | ||
const dd::ArraySize & | array_size, | ||
const std::string & | description, | ||
const std::string & | comment, | ||
const DDUnit & | unit, | ||
const std::string & | minimum_value = {} , |
||
const std::string & | maximum_value = {} , |
||
const std::string & | default_value = {} , |
||
const std::string & | scale = {} , |
||
const std::string & | offset = {} |
||
) |
Construct a new DDElement object that uses a POD Type (dd::DataType) Use it like:
name | Name of the element. |
data_type | Data Type of the element. Use ddl::DataType template. |
deserialized_info | deserialized information (will be set by default to the alignment of data_type). |
serialized_info | serialized information of this element (will be set automatically to the next valid bytepos depending on previous elements). |
array_size | array size of the element |
description | description of the element |
comment | comment of the element |
unit | unit of the element |
minimum_value | minimum value of the element |
maximum_value | maximum value of the element |
default_value | default value (mind! should fit to the data_type) |
scale | scale of the element |
offset | offset of the value |
DDElement | ( | const std::string & | name, |
const DDDataType & | data_type, | ||
const Deserialized & | deserialized_info = {} , |
||
const Serialized & | serialized_info = {} , |
||
const dd::ArraySize & | array_size = 1 , |
||
const std::string & | description = {} , |
||
const std::string & | comment = {} , |
||
const dd::BaseUnit & | base_unit = {} , |
||
const std::string & | minimum_value = {} , |
||
const std::string & | maximum_value = {} , |
||
const std::string & | default_value = {} , |
||
const std::string & | scale = {} , |
||
const std::string & | offset = {} |
||
) |
Construct a new DDElement object that uses a POD Type (dd::DataType) Use it like:
name | Name of the element. |
data_type | Data Type of the element. Use ddl::DataType template. |
deserialized_info | deserialized information (will be set by default to the alignment of data_type). |
serialized_info | serialized information of this element (will be set automatically to the next valid bytepos depending on previous elements). |
array_size | array size of the element |
description | description of the element |
comment | comment of the element |
base_unit | the base unit name of the element |
minimum_value | minimum value of the element |
maximum_value | maximum value of the element |
default_value | default value (mind! should fit to the data_type) |
scale | scale of the element |
offset | offset of the value |
DDElement | ( | const std::string & | name, |
const DDDataType & | data_type, | ||
const Deserialized & | deserialized_info, | ||
const Serialized & | serialized_info, | ||
const dd::ArraySize & | array_size, | ||
const std::string & | description, | ||
const std::string & | comment, | ||
const DDUnit & | unit, | ||
const std::string & | minimum_value = {} , |
||
const std::string & | maximum_value = {} , |
||
const std::string & | default_value = {} , |
||
const std::string & | scale = {} , |
||
const std::string & | offset = {} |
||
) |
Construct a new DDElement object that uses a POD Type (dd::DataType) Use it like:
name | Name of the element. |
data_type | Data Type of the element. Use ddl::DataType template. |
deserialized_info | deserialized information (will be set by default to the alignment of data_type). |
serialized_info | serialized information of this element (will be set automatically to the next valid bytepos depending on previous elements). |
array_size | array size of the element |
description | description of the element |
comment | comment of the element |
unit | the unit of the element |
minimum_value | minimum value of the element |
maximum_value | maximum value of the element |
default_value | default value (mind! should fit to the data_type) |
scale | scale of the element |
offset | offset of the value |
DDElement | ( | const std::string & | name, |
const DDEnum & | enum_type, | ||
const Deserialized & | deserialized_info = {} , |
||
const Serialized & | serialized_info = {} , |
||
const dd::ArraySize & | array_size = 1 , |
||
const std::string & | description = {} , |
||
const std::string & | comment = {} , |
||
const dd::BaseUnit & | base_unit = {} , |
||
const std::string & | value = {} , |
||
const std::string & | minimum_value = {} , |
||
const std::string & | maximum_value = {} , |
||
const std::string & | default_value = {} , |
||
const std::string & | scale = {} , |
||
const std::string & | offset = {} |
||
) |
Construct a new DDElement object that uses a Enum Type (dd::EnumType) Use it like:
name | Name of the element. |
enum_type | Enum Type of the element. Use ddl::DDEnum class. |
deserialized_info | deserialized information (will be set by default to the alignment of data_type). |
serialized_info | serialized information of this element (will be set automatically to the next valid bytepos depending on previous elements). |
array_size | array size of the element |
description | description of the element |
comment | comment of the element |
base_unit | the base unit of the element |
value | constant value name of the element (mind! this constant should exists in given enum_type!) |
minimum_value | minimum value of the element |
maximum_value | maximum value of the element |
default_value | default value (mind! should fit to the enum_types data_type) |
scale | scale of the element |
offset | offset of the value |
DDElement | ( | const std::string & | name, |
const DDEnum & | enum_type, | ||
const Deserialized & | deserialized_info, | ||
const Serialized & | serialized_info, | ||
const dd::ArraySize & | array_size, | ||
const std::string & | description, | ||
const std::string & | comment, | ||
const DDUnit & | unit, | ||
const std::string & | value = {} , |
||
const std::string & | minimum_value = {} , |
||
const std::string & | maximum_value = {} , |
||
const std::string & | default_value = {} , |
||
const std::string & | scale = {} , |
||
const std::string & | offset = {} |
||
) |
Construct a new DDElement object that uses a Enum Type (dd::EnumType) Use it like:
name | Name of the element. |
enum_type | Enum Type of the element. Use ddl::DDEnum class. |
deserialized_info | deserialized information (will be set by default to the alignment of data_type). |
serialized_info | serialized information of this element (will be set automatically to the next valid bytepos depending on previous elements). |
array_size | array size of the element |
description | description of the element |
comment | comment of the element |
unit | the unit name of the element |
value | constant value name of the element (mind! this constant should exists in given enum_type!) |
minimum_value | minimum value of the element |
maximum_value | maximum value of the element |
default_value | default value (mind! should fit to the enum_types data_type) |
scale | scale of the element |
offset | offset of the value |
DDElement | ( | const std::string & | name, |
const DDStructure & | structure_type, | ||
const Deserialized & | deserialized_info = {} , |
||
const Serialized & | serialized_info = {} , |
||
const dd::ArraySize & | array_size = 1 , |
||
const std::string & | description = {} , |
||
const std::string & | comment = {} |
||
) |
Construct a new DDElement object that uses a Enum Type (dd::EnumType) Use it like:
name | Name of the element. |
structure_type | DDStructure Type of the element. Use ddl::DDStructure class. |
deserialized_info | deserialized information (will be set by default to the alignment of data_type). |
serialized_info | serialized information of this element (will be set automatically to the next valid bytepos depending on previous elements). |
array_size | array size of the element |
description | description of the element |
comment | comment of the element |
const dd::DataDefinition& getDD | ( | ) | const |
retrieves a valid DataDefinition for the elements datatypes and units.
const dd::StructType::Element& getElement | ( | ) | const |
Get the Element object.
assignment copy operator