15 #ifndef DDL_CODEC_TYPE_INFO_CLASS_HEADER
16 #define DDL_CODEC_TYPE_INFO_CLASS_HEADER
30 cet_empty = a_util::variant::VariantType::VT_Empty,
31 cet_bool = a_util::variant::VariantType::VT_Bool,
32 cet_int8 = a_util::variant::VariantType::VT_Int8,
33 cet_uint8 = a_util::variant::VariantType::VT_UInt8,
34 cet_int16 = a_util::variant::VariantType::VT_Int16,
35 cet_uint16 = a_util::variant::VariantType::VT_UInt16,
36 cet_int32 = a_util::variant::VariantType::VT_Int32,
37 cet_uint32 = a_util::variant::VariantType::VT_UInt32,
38 cet_int64 = a_util::variant::VariantType::VT_Int64,
39 cet_uint64 = a_util::variant::VariantType::VT_UInt64,
121 friend class StructAccess;
129 std::string _type_name;
161 friend class StructAccess;
165 const char* _constant_name;
189 friend class StructAccess;
Container type, able to store any primitive data type (and arrays thereof)
The constant info of a element.
const char * getConstantName() const
Get the name of the constant value.
bool isConstant() const
Determines if the element has a constant value or not.
a_util::variant::Variant getConstantValue() const
Returns the constant value in type T.
The default value info of a element.
bool hasDefaultValue() const
Determines if the element has a constant value or not.
a_util::variant::Variant getDefaultValue() const
Returns the default value in type T.
Description of the elements Type.
ElementType getType() const
Get the Type.
bool isEnum() const
Determines the value is an enum or not.
const char * getEnumElementName(const a_util::variant::Variant &value) const
Returns the enum elements name for the given value if exists.
const AccessEnumType * getLegacyAccessEnumType() const
Legacy Only: Get the Legacy Access Enum Type object.
std::vector< std::string > getEnumElementNames() const
Get the Enum Element Names.
a_util::variant::Variant getEnumElementValue(const std::string &name) const
Returns the current enum elements value of the given enum element name converted to type T if support...
bool hasEnumElementName(const std::string &name) const
Determines if the enum element name exists.
const char * getTypeName() const
Get the typename.
@ VT_Float
Variant type is float.
@ VT_Double
Variant type is double.
ddl::AccessEnumType AccessEnumType
This is the legacy Access Type for resolving enum names.
ElementType
The element type of the value.
@ cet_float
Variant type is float.
@ cet_int16
Variant type is std::int16_t.
@ cet_int8
Variant type is std::int8_t.
@ cet_uint64
Variant type is std::uint64_t.
@ cet_uint8
Variant type is std::uint8_t.
@ cet_uint32
Variant type is std::uint32_t.
@ cet_sub_codec
type marks a subcodec/substructure with children
@ cet_bool
Variant type is bool.
@ cet_uint16
Variant type is std::uint16_t.
@ cet_int32
Variant type is std::int32_t.
@ cet_int64
Variant type is std::int64_t.
@ cet_empty
Variant type is empty.
@ cet_user_type
type marks a user defined type
@ cet_double
Variant type is double.
definition of the ddl namespace
std::map< std::string, a_util::variant::Variant > AccessEnumType
Typedef for enumerations name -> value.
Definition of old StructElement legacy header for old Codec API.