ADTF  3.18.2
DDDataType

A DataType class holding the DD for a Datatype with dependencies. More...

Public Member Functions

 DDDataType ()=delete
 no default CTOR
 
 DDDataType (const DDDataType &)
 copy CTOR
 
 DDDataType (DDDataType &&)
 move CTOR
 
DDDataTypeoperator= (const DDDataType &)
 copy assignment operator More...
 
DDDataTypeoperator= (DDDataType &&)
 move assignment operator More...
 
 DDDataType (const std::string &name, size_t bit_size, const std::string &description={}, dd::OptionalSize array_size={}, const std::string &minimum_value={}, const std::string &maximum_value={}, dd::OptionalSize default_type_alignment={})
 CTOR. More...
 
 DDDataType (const std::string &name, size_t bit_size, const std::string &description, dd::OptionalSize array_size, const std::string &minimum_value, const std::string &maximum_value, dd::OptionalSize default_type_alignment, const DDUnit &unit)
 CTOR. More...
 
 DDDataType (const std::string &name, size_t bit_size, const std::string &description, dd::OptionalSize array_size, const std::string &minimum_value, const std::string &maximum_value, dd::OptionalSize default_type_alignment, const dd::BaseUnit &base_unit)
 CTOR. More...
 
const dd::DataTypegetDataType () const
 Get the Data Type object. More...
 
const dd::DataDefinitiongetDD () const
 Get the DataDefinition. More...
 

Private Attributes

std::shared_ptr< dd::DataType_data_type
 the type
 
dd::DataDefinition _dd
 the data definition
 

Detailed Description

A DataType class holding the DD for a Datatype with dependencies.

(i.e. Units!)

Definition at line 30 of file dddatatype.h.

Constructor & Destructor Documentation

◆ DDDataType() [1/3]

DDDataType ( const std::string &  name,
size_t  bit_size,
const std::string &  description = {},
dd::OptionalSize  array_size = {},
const std::string &  minimum_value = {},
const std::string &  maximum_value = {},
dd::OptionalSize  default_type_alignment = {} 
)

CTOR.

Parameters
namethe name of the POD Type
bit_sizethe bit size of the type
descriptionthe description of the type
array_sizethe array size of the type (please use only 1! codec API does not support greater than 1 here!)
minimum_valuethe minimum value (for information only)
maximum_valuethe maximum value (for information only)
default_type_alignmentType alignment (this is optional, because it is not part of the DD, but important for automatic calculation of member positions).

◆ DDDataType() [2/3]

DDDataType ( const std::string &  name,
size_t  bit_size,
const std::string &  description,
dd::OptionalSize  array_size,
const std::string &  minimum_value,
const std::string &  maximum_value,
dd::OptionalSize  default_type_alignment,
const DDUnit unit 
)

CTOR.

Parameters
namethe name of the POD Type
bit_sizethe bit size of the type
descriptionthe description of the type
array_sizethe array size of the type (please use only 1! codec API does not support greater than 1 here!)
minimum_valuethe minimum value (for information only)
maximum_valuethe maximum value (for information only)
unitthe unit to use for this type
default_type_alignmentType alignment (this is optional, because it is not part of the DD, but important for automatic calculation of member positions)

◆ DDDataType() [3/3]

DDDataType ( const std::string &  name,
size_t  bit_size,
const std::string &  description,
dd::OptionalSize  array_size,
const std::string &  minimum_value,
const std::string &  maximum_value,
dd::OptionalSize  default_type_alignment,
const dd::BaseUnit base_unit 
)

CTOR.

Parameters
namethe name of the POD Type
bit_sizethe bit size of the type
descriptionthe description of the type
array_sizethe array size of the type (please use only 1! codec API does not support greater than 1 here!)
minimum_valuethe minimum value (for information only)
maximum_valuethe maximum value (for information only)
base_unitthe base_unit to use for this type
default_type_alignmentType alignment (this is optional, because it is not part of the DD, but important for automatic calculation of member positions)

Member Function Documentation

◆ getDataType()

const dd::DataType& getDataType ( ) const

Get the Data Type object.

Returns
const dd::DataType&

◆ getDD()

const dd::DataDefinition& getDD ( ) const

Get the DataDefinition.

Returns
const dd::DataDefinition&

◆ operator=() [1/2]

DDDataType& operator= ( const DDDataType )

copy assignment operator

Returns
DDDataType&

◆ operator=() [2/2]

DDDataType& operator= ( DDDataType &&  )

move assignment operator

Returns
DDDataType&