Bayeux  3.4.1
Core Foundation library for SuperNEMO
Namespaces | Enumerations | Functions
data_type.h File Reference

Data type information. More...

#include <string>
#include <boost/any.hpp>
#include <boost/cstdint.hpp>
#include <datatools/reflection_interface.h>

Go to the source code of this file.

Namespaces

 datatools
 The Bayeux/datatools library top-level namespace.
 
 datatools::introspection
 Nested namespace of the Bayeux/datatools module library.
 

Enumerations

enum  datatools::introspection::data_type {
  datatools::introspection::DATA_TYPE_INVALID = -1, datatools::introspection::DATA_TYPE_VOID = 0, datatools::introspection::DATA_TYPE_BOOLEAN = 1, datatools::introspection::DATA_TYPE_INT8 = 2,
  datatools::introspection::DATA_TYPE_UINT8 = 3, datatools::introspection::DATA_TYPE_INT16 = 4, datatools::introspection::DATA_TYPE_UINT16 = 5, datatools::introspection::DATA_TYPE_INT32 = 6,
  datatools::introspection::DATA_TYPE_UINT32 = 7, datatools::introspection::DATA_TYPE_INT64 = 8, datatools::introspection::DATA_TYPE_UINT64 = 9, datatools::introspection::DATA_TYPE_FLOAT = 10,
  datatools::introspection::DATA_TYPE_DOUBLE = 11, datatools::introspection::DATA_TYPE_STRING = 12, datatools::introspection::DATA_TYPE_PATH = 13, datatools::introspection::DATA_TYPE_ENUM = 100,
  datatools::introspection::DATA_TYPE_USER = 200
}
 Supported data types. More...
 

Functions

const std::type_info & datatools::introspection::get_type_info (data_type dt_, const std::string &layout_label_="")
 
void datatools::introspection::make_value (boost::any &, data_type dt_, const std::string &layout_label_="")
 Make value as a boost::any object. More...
 
const std::string & datatools::introspection::to_string (data_type)
 Convert a data type to a string. More...
 
bool datatools::introspection::from_string (const std::string &label_, data_type &layout_)
 Convert a string to a data type. More...
 
data_type datatools::introspection::from_label_to_data_type (const std::string &label_)
 Convert a string to a data type. More...
 
bool datatools::introspection::is_valid (data_type)
 Check the validity of a data type. More...
 
bool datatools::introspection::is_void (data_type)
 Check if a data type is a void. More...
 
bool datatools::introspection::is_boolean (data_type)
 Check if a data type is a boolean. More...
 
bool datatools::introspection::is_integer (data_type)
 Check if a data type is an integer. More...
 
bool datatools::introspection::is_real (data_type)
 Check if a data type is a real. More...
 
bool datatools::introspection::is_string (data_type)
 Check if a data type is a string. More...
 
bool datatools::introspection::is_path (data_type)
 Check if a data type is a path (string) More...
 
bool datatools::introspection::is_enum (data_type)
 Check if a data type is an enumeration. More...
 
bool datatools::introspection::is_user (data_type)
 Check if a data type is a user type. More...
 

Detailed Description

Data type information.