DBC Framework
DBC parsing and CAN signal decoding framework
Loading...
Searching...
No Matches
AttributeDefinition Struct Reference

Attribute type, permitted range, and optional default. More...

#include <attributes.h>

Public Attributes

AttributeScope scope = AttributeScope::Database
 
AttributeType type = AttributeType::String
 
std::int64_t integerMinimum = 0
 
std::int64_t integerMaximum = 0
 
double minimum = 0.0
 
double maximum = 0.0
 
std::vector< std::string > enumValues
 
std::optional< AttributeValue > defaultValue
 

Detailed Description

Attribute type, permitted range, and optional default.

Definition at line 42 of file attributes.h.

Member Data Documentation

◆ scope

AttributeScope AttributeDefinition::scope = AttributeScope::Database

Target scope; database when no scope marker is present.

Definition at line 43 of file attributes.h.

Referenced by DbcParseContext::ResolveAttributes().

◆ type

AttributeType AttributeDefinition::type = AttributeType::String

Type used to validate values.

Definition at line 44 of file attributes.h.

◆ integerMinimum

std::int64_t AttributeDefinition::integerMinimum = 0

Inclusive INT, HEX, or ENUM lower bound.

Definition at line 45 of file attributes.h.

◆ integerMaximum

std::int64_t AttributeDefinition::integerMaximum = 0

Inclusive INT, HEX, or ENUM upper bound.

Definition at line 46 of file attributes.h.

◆ minimum

double AttributeDefinition::minimum = 0.0

Inclusive FLOAT lower bound.

Definition at line 47 of file attributes.h.

◆ maximum

double AttributeDefinition::maximum = 0.0

Inclusive FLOAT upper bound.

Definition at line 48 of file attributes.h.

◆ enumValues

std::vector<std::string> AttributeDefinition::enumValues

ENUM labels in index order.

Definition at line 49 of file attributes.h.

◆ defaultValue

std::optional<AttributeValue> AttributeDefinition::defaultValue

Validated default; empty when not declared.

Definition at line 50 of file attributes.h.

Referenced by DbcParseContext::ResolveAttributes().


The documentation for this struct was generated from the following file: