Struct SAttributeDef#

Struct Documentation#

struct SAttributeDef#

Attribute definition.

Public Types

enum class EType#

Attribute type.

Values:

enumerator integer#

Integer attribute.

enumerator hex_integer#

Hexadecimal integer attribute.

enumerator floating_point#

Floating point attribute.

enumerator string#

String attribute.

enumerator enumerator#

Enumerator attribute.

enum class EObjectType#

Object type this attribute is aiming for.

Values:

enumerator global#

Global attribute definition (independent)

enumerator node#

Node specific attribute definition.

enumerator message#

Message specific attribute definition.

enumerator signal#

Signal specific attribute definition.

enumerator envvar#

Environment variable specific attribute definition.

Public Functions

SAttributeDef(EType eTypeParam)#

Default constructor.

Parameters:

eTypeParam[in] The attribute type (this cannot be changed any more).

~SAttributeDef()#

Destructor.

SAttributeDef(const SAttributeDef &rAttrDef)#

Copy constructor.

Parameters:

rAttrDef[in] Reference to the attribute definition to copy from.

SAttributeDef(SAttributeDef &&rAttrDef)#

Move constructor.

Parameters:

rAttrDef[in] Reference to the attribute definition to move from.

SAttributeDef &operator=(const SAttributeDef &rAttrDef)#

Assignment operator.

Parameters:

rAttrDef[in] Reference to the attribute definition to assign from.

Returns:

Reference to this attribute definition.

SAttributeDef &operator=(SAttributeDef &&rAttrDef)#

Move operator.

Parameters:

rAttrDef[in] Reference to the attribute definition to move from.

Returns:

Reference to this attribute definition.

Public Members

EObjectType eObjType = EObjectType::global#

Object type.

std::string ssName#

Attribute name.

const EType eType#

Type of the attribute.

int32_t iMinimum#

Minimum value for integer attribute.

int32_t iMaximum#

Maximum value for integer attribute.

int32_t iDefault#

Default value for integer attribute.

struct dbc::SAttributeDef sIntValues#

Integer value structure.

uint32_t uiMinimum#

Minimum value for hexadecimal attribute.

uint32_t uiMaximum#

Maximum value for hexadecimal attribute.

uint32_t uiDefault#

Default value for hexadecimal attribute.

struct dbc::SAttributeDef sHexValues#

Hexadecimal value structure.

double dMinimum#

Minimum value for floating point attribute.

double dMaximum#

Maximum value for floating point attribute.

double dDefault#

Default value for floating point attribute.

struct dbc::SAttributeDef sFltValues#

Floating point value structure.

std::string ssDefault#

Default value for string attribute.

Default value for enumerator attribute.

struct dbc::SAttributeDef sStringValues#

String value structure.

std::vector<std::string> vecEnumValues#

Values for enumerator attribute.

struct dbc::SAttributeDef sEnumValues#

Enumerator value structure.

union dbc::SAttributeDef

Unnamed union based on the attribute definition type.