15 #ifndef DD_TYPES_H_INCLUDED
16 #define DD_TYPES_H_INCLUDED
25 #define DEV_ESSENTIAL_DEPRECATED_STATIC_VERSION(alternative) \
26 DEV_ESSENTIAL_DEPRECATED("Please use ddl::dd::" #alternative \
27 " directly, due to static intialization problem.")
131 const Alignment& default_val = Alignment::e_invalid);
153 platform_not_supported = 0x00,
154 plattform_little_endian_8 = 0x01,
155 platform_big_endian_8 = 0x02,
156 e_noe = platform_not_supported,
157 e_le = plattform_little_endian_8,
158 e_be = platform_big_endian_8
182 const ByteOrder& default_val = ByteOrder::platform_not_supported);
286 DEV_ESSENTIAL_DEPRECATED_STATIC_VERSION(
Version(0, 0))
292 DEV_ESSENTIAL_DEPRECATED_STATIC_VERSION(
Version(0, 0))
298 DEV_ESSENTIAL_DEPRECATED_STATIC_VERSION(
Version(1, 0))
304 DEV_ESSENTIAL_DEPRECATED_STATIC_VERSION(
Version(1, 1))
310 DEV_ESSENTIAL_DEPRECATED_STATIC_VERSION(
Version(1, 2))
316 DEV_ESSENTIAL_DEPRECATED_STATIC_VERSION(
Version(2, 0))
322 DEV_ESSENTIAL_DEPRECATED_STATIC_VERSION(
Version(3, 0))
328 DEV_ESSENTIAL_DEPRECATED_STATIC_VERSION(
Version(4, 0))
334 DEV_ESSENTIAL_DEPRECATED_STATIC_VERSION(
Version(4, 1))
344 uint32_t _major = {};
345 uint32_t _minor = {};
347 static const Version& getDefault();
446 size_t _array_size = {1};
447 std::string _array_size_element_name = {};
OO DataDefinition Optional Implementation.
tBool operator<(const tErrorCode &lhs, const tErrorCode &rhs)
Less-than operator for POD error type.
tBool operator<=(const tErrorCode &lhs, const tErrorCode &rhs)
Less-than-or-equal operator for POD error type.
tBool operator>(const tErrorCode &lhs, const tErrorCode &rhs)
Greater-than operator for POD error type.
tBool operator!=(const tErrorCode &lhs, const tErrorCode &rhs)
Compare two POD error code types for inequality.
tBool operator==(const tErrorCode &lhs, const tErrorCode &rhs)
Compare two POD error code types for equality.
tBool operator>=(const tErrorCode &lhs, const tErrorCode &rhs)
Greater-than-or-equal operator for POD error type.
Alignment Conversion utility.
static Alignment fromString(const std::string &alignment, const Alignment &default_val=Alignment::e_invalid)
convert a string to an alignment.
static std::string toString(Alignment alignment)
convert alignment to a string.
Alignment ConvValidation utility.
static bool isValid(size_t alignment)
check if the Alignment is a valid value
Sinc DDL 2.0 it is possible to define arraysize with a string that indicates a dynamic array.
bool operator!=(const ArraySize &other) const
compares the Array size with the other
ArraySize(const std::string &array_size_element_name)
CTOR.
ArraySize & operator=(size_t array_size)
assignment operator
void setArraySizeValue(size_t array_size)
set the array size
bool isDynamicArraySize() const
indicates if this is a dynamic erray size.
ArraySize(size_t array_size)
CTOR.
size_t getArraySizeValue() const
get the array size
ArraySize()=default
default CTOR.
ArraySize & operator=(const std::string &array_size_element_name)
assignment operator
void setArraySizeElementName(const std::string &array_size_element_name)
sets the dynamic array size
bool operator==(const ArraySize &other) const
compares the Array size with the other
const std::string & getArraySizeElementName() const
gets the dynamic array size
ByteOrder Conversion utility.
static std::string toString(ByteOrder byte_order)
convert byte_order to a string.
static ByteOrder fromString(const std::string &byte_order, const ByteOrder &default_val=ByteOrder::platform_not_supported)
convert a string to a byte_order.
Default ByteOrder Discovery utility class.
static ByteOrder getPlatformDefault()
Get the current Platform Byteorder.
Version conversion utility class.
static Version fromString(const std::string &version, const Version &default_val=Version(0, 0))
Creates the Version from a string.
static std::string toString(const Version &version)
Version to string conversion.
std::string toString() const
the vrsion as string
static const Version & getLatestVersion()
Get the latest DDL version This is the currently Version(4, 2).
static const Version ddl_version_current
the newest version (currently it is Version(4, 2)).
static const Version ddl_version_invalid
invalid Version.
bool isValidVersion() const
is valid or not
static const Version ddl_version_12
Language Version 1.2.
static const Version ddl_version_10
Language Version 1.0.
static const Version & getDefaultVersion()
Get the Default Version.
static const Version ddl_version_11
Language Version 1.0+.
uint32_t getMajor() const
Get the Major value.
static const Version ddl_version_40
Language Version 4.0.
Version(uint32_t major, uint32_t minor)
CTOR.
static const Version ddl_version_41
Language Version 4.1.
static const Version ddl_version_30
Language Version 3.0.
static const Version ddl_version_notset
version not set Version.
Version(const std::string &version)
CTOR - Version from string.
uint32_t getMinor() const
Get the Minor value.
static const Version ddl_version_20
Language Version 2.0.
Definition of preprocessor macro DEV_ESSENTIAL_DEPRECATED.
TypeOfType
Classification of a Type.
@ enum_type
the type is a enum type (EnumType)
@ data_type
the type is a data type (DataType)
@ struct_type
the type is a struct type (StructType)
@ invalid_type
the type is unknown
@ stream_meta_type
the type is an stream meta type (StreamMetaType)
TypeOfUnit
Classification of unit.
@ unit
the unit is a unit (Unit)
@ base_unit
the unit is a base unit (BaseUnit)
@ invalid_unit
the type of the unit is unknown
ByteOrder
Representation of the byteorder enumeration.
Alignment
Alignment defintion.
@ e0
for backward compatibility
definition of the ddl namespace