ADTF  3.18.2
dd_predefined_datatypes.h File Reference

OO DataDefinition DataTypes header for template based DataType usages and the predefined types. More...

Go to the source code of this file.

Classes

class  DataType< T >
 Generator template to create DataType for the plain c-types. More...
 
class  DataType< bool >
 The datatype for bool. More...
 
class  DataType< char >
 The datatype for char. More...
 
class  DataType< float >
 The datatype for float. More...
 
class  DataType< double >
 The datatype for double. More...
 
class  PredefinedDataTypes
 Predefined types of the DataDefinition. More...
 
struct  PredefinedDataTypes::PredefInfo
 

Namespaces

 ddl
 definition of the ddl namespace
 

Macros

#define DDL_DATA_TYPE_INT(type, default_name)
 Expands to DataType<type> inheriting from dd::datamodel::DataType. More...
 

Detailed Description

OO DataDefinition DataTypes header for template based DataType usages and the predefined types.

Definition in file dd_predefined_datatypes.h.

Macro Definition Documentation

◆ DDL_DATA_TYPE_INT

#define DDL_DATA_TYPE_INT (   type,
  default_name 
)
Value:
namespace ddl { \
template <> \
class DataType<type> : public dd::datamodel::DataType { \
public: \
DataType(const std::string& name) \
sizeof(type) * 8, \
std::string("Predefined DataType for ") + name, \
1, \
"", \
std::to_string((std::numeric_limits<type>::min)()), \
std::to_string((std::numeric_limits<type>::max)()), \
alignof(type)) \
{ \
} \
DataType() : DataType(default_name) \
{ \
} \
}; \
} /* namespace ddl */ \
static_assert(true, "Simply to make sure a closing semicolon ';' is used for the macro")
cString to_string(const tResult &i_oResult, eResultFormatFlags i_eFormatFlags=eResultFormatFlags::RFF_DisableNone, const tChar *i_strFormat=nullptr)
Copy all information of an assigned result object to a (formatted) string.
datamodel::DataType DataType
Reuse of datamodel datatype class - ddl::dd::datamodel::DataType.
Definition: dd.h:46

Expands to DataType<type> inheriting from dd::datamodel::DataType.

Parameters
typeType to create the specialized template for
default_nameName to use for the type by default

Definition at line 71 of file dd_predefined_datatypes.h.