2#ifndef DBC_ATTRIBUTES_H
3#define DBC_ATTRIBUTES_H
15enum class AttributeScope {
26enum class AttributeType {
35using AttributeValue = std::variant<std::int64_t, double, std::string>;
37using AttributeMap = std::map<std::string, AttributeValue>;
43 AttributeScope
scope = AttributeScope::Database;
44 AttributeType
type = AttributeType::String;
61 AttributeScope
scope = AttributeScope::Database;
Explicit assignment; defaults remain on definitions.
Attribute type, permitted range, and optional default.
std::vector< std::string > enumValues
std::int64_t integerMaximum
std::int64_t integerMinimum
std::optional< AttributeValue > defaultValue