Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Nested namespace of the Bayeux/datatools module library. More...
Classes | |
class | argument |
Description of a method argument. More... | |
class | data_description |
Data description. More... | |
class | method |
Description of a method. More... | |
class | method_args_builder |
This class uses a variable map from the command line to build a list of arguments for calling a function/method through the reflection API. More... | |
class | method_builder |
This class uses the reflection API to build the description of a function or a class method. Special tags are expected in the reflection API of the function/method in order to generate the function introspective description. The mapped function may have or not a unique returned value. The mapped function can have an arbitrary number of input arguments. Only scalar argument/returned values of simple types (bool, integer, real, string) are supported for now. More... | |
class | unit_info |
Unit information associated to a parameter. More... | |
Enumerations | |
enum | access_type { ACCESS_INVALID = 0, ACCESS_INPUT = 1, ACCESS_OUTPUT = 2 } |
Access type associated to a method argument. More... | |
enum | data_layout { DATA_LAYOUT_INVALID = 0, DATA_LAYOUT_SCALAR = 1, DATA_LAYOUT_VECTOR_WITH_FIXED_SIZE = 2, DATA_LAYOUT_VECTOR_WITH_FREE_SIZE = 3 } |
Layout (scalar/vector) of the data. More... | |
enum | data_type { DATA_TYPE_INVALID = -1, DATA_TYPE_VOID = 0, DATA_TYPE_BOOLEAN = 1, DATA_TYPE_INT8 = 2, DATA_TYPE_UINT8 = 3, DATA_TYPE_INT16 = 4, DATA_TYPE_UINT16 = 5, DATA_TYPE_INT32 = 6, DATA_TYPE_UINT32 = 7, DATA_TYPE_INT64 = 8, DATA_TYPE_UINT64 = 9, DATA_TYPE_FLOAT = 10, DATA_TYPE_DOUBLE = 11, DATA_TYPE_STRING = 12, DATA_TYPE_PATH = 13, DATA_TYPE_ENUM = 100, DATA_TYPE_USER = 200 } |
Supported data types. More... | |
enum | unit_support_type { UNIT_SUPPORT_INVALID = -1, UNIT_SUPPORT_NONE = 0, UNIT_SUPPORT_IMPLICIT_UNIT = 1, UNIT_SUPPORT_EXPLICIT_DIMENSION = 2 } |
Unit support type for real parameters. More... | |
Functions | |
const std::string & | to_string (access_type) |
Convert an access type to a string. More... | |
bool | from_string (const std::string &label_, access_type &access_) |
Convert a string to an access type. More... | |
bool | is_valid (access_type t_) |
Check the validity of an access type. More... | |
bool | is_input (access_type t_) |
Check if an access type is input. More... | |
bool | is_output (access_type t_) |
Check if an access type is output. More... | |
std::string | function_builder_flag () |
std::string | function_constness_flag () |
std::string | function_description_tag () |
std::string | name_tag () |
std::string | description_tag () |
std::string | type_tag () |
std::string | layout_tag () |
std::string | vector_fixed_size_tag () |
std::string | implicit_unit_tag () |
std::string | explicit_unit_dimension_tag () |
std::string | preferred_unit_tag () |
std::string | default_value_tag () |
std::string | composed_tag (const std::string &prefix_, const std::string &what_) |
std::string | function_arg_prefix (std::size_t iarg_) |
std::string | function_arg_tag (std::size_t iarg_, const std::string &what_) |
std::string | function_returned_prefix () |
std::string | function_returned_tag (const std::string &what_) |
const std::string & | to_string (data_layout) |
Convert a data layout to a string. More... | |
bool | from_string (const std::string &label_, data_layout &layout_) |
Convert a string to a data layout. More... | |
bool | is_valid (data_layout) |
Check the validity of a data layout. More... | |
bool | is_scalar (data_layout) |
Check if a data layout is scalar. More... | |
bool | is_vector (data_layout) |
Check if a data layout is vector. More... | |
const std::type_info & | get_type_info (data_type dt_, const std::string &layout_label_="") |
void | make_value (boost::any &, data_type dt_, const std::string &layout_label_="") |
Make value as a boost::any object. More... | |
const std::string & | to_string (data_type) |
Convert a data type to a string. More... | |
bool | from_string (const std::string &label_, data_type &layout_) |
Convert a string to a data type. More... | |
data_type | from_label_to_data_type (const std::string &label_) |
Convert a string to a data type. More... | |
bool | is_valid (data_type) |
Check the validity of a data type. More... | |
bool | is_void (data_type) |
Check if a data type is a void. More... | |
bool | is_boolean (data_type) |
Check if a data type is a boolean. More... | |
bool | is_integer (data_type) |
Check if a data type is an integer. More... | |
bool | is_real (data_type) |
Check if a data type is a real. More... | |
bool | is_string (data_type) |
Check if a data type is a string. More... | |
bool | is_path (data_type) |
Check if a data type is a path (string) More... | |
bool | is_enum (data_type) |
Check if a data type is an enumeration. More... | |
bool | is_user (data_type) |
Check if a data type is a user type. More... | |
const std::string & | to_string (unit_support_type) |
Convert an unit support type to a string. More... | |
bool | from_string (const std::string &label_, unit_support_type &us_) |
Convert a string to an unit support type. More... | |
unit_support_type | from_label_to_unit_support (const std::string &label_) |
Convert a string to an unit support type. More... | |
bool | is_valid (unit_support_type) |
Check the validity of an unit support type. More... | |
bool | is_no_unit_support (unit_support_type) |
Check if an unit support type is none. More... | |
bool | is_implicit_unit (unit_support_type) |
Check if an unit support type is implicit unit. More... | |
bool | is_explicit_unit_dimension (unit_support_type) |
Check if an unit support type is explicit dimension. More... | |
Nested namespace of the Bayeux/datatools module library.
Layout (scalar/vector) of the data.
Examples:
Supported data types.
std::string datatools::introspection::composed_tag | ( | const std::string & | prefix_, |
const std::string & | what_ | ||
) |
std::string datatools::introspection::default_value_tag | ( | ) |
std::string datatools::introspection::description_tag | ( | ) |
std::string datatools::introspection::explicit_unit_dimension_tag | ( | ) |
Convert a string to a data type.
unit_support_type datatools::introspection::from_label_to_unit_support | ( | const std::string & | label_ | ) |
Convert a string to an unit support type.
bool datatools::introspection::from_string | ( | const std::string & | label_, |
access_type & | access_ | ||
) |
Convert a string to an access type.
bool datatools::introspection::from_string | ( | const std::string & | label_, |
unit_support_type & | us_ | ||
) |
Convert a string to an unit support type.
bool datatools::introspection::from_string | ( | const std::string & | label_, |
data_layout & | layout_ | ||
) |
Convert a string to a data layout.
Convert a string to a data type.
std::string datatools::introspection::function_arg_prefix | ( | std::size_t | iarg_ | ) |
std::string datatools::introspection::function_arg_tag | ( | std::size_t | iarg_, |
const std::string & | what_ | ||
) |
std::string datatools::introspection::function_builder_flag | ( | ) |
std::string datatools::introspection::function_constness_flag | ( | ) |
std::string datatools::introspection::function_description_tag | ( | ) |
std::string datatools::introspection::function_returned_prefix | ( | ) |
std::string datatools::introspection::function_returned_tag | ( | const std::string & | what_ | ) |
const std::type_info& datatools::introspection::get_type_info | ( | data_type | dt_, |
const std::string & | layout_label_ = "" |
||
) |
Return the type info associated to a given data type with specific layout
Supported layout labels are:
std::string datatools::introspection::implicit_unit_tag | ( | ) |
bool datatools::introspection::is_boolean | ( | data_type | ) |
Check if a data type is a boolean.
bool datatools::introspection::is_enum | ( | data_type | ) |
Check if a data type is an enumeration.
bool datatools::introspection::is_explicit_unit_dimension | ( | unit_support_type | ) |
Check if an unit support type is explicit dimension.
bool datatools::introspection::is_implicit_unit | ( | unit_support_type | ) |
Check if an unit support type is implicit unit.
bool datatools::introspection::is_input | ( | access_type | t_ | ) |
Check if an access type is input.
bool datatools::introspection::is_integer | ( | data_type | ) |
Check if a data type is an integer.
bool datatools::introspection::is_no_unit_support | ( | unit_support_type | ) |
Check if an unit support type is none.
bool datatools::introspection::is_output | ( | access_type | t_ | ) |
Check if an access type is output.
bool datatools::introspection::is_path | ( | data_type | ) |
Check if a data type is a path (string)
bool datatools::introspection::is_real | ( | data_type | ) |
Check if a data type is a real.
bool datatools::introspection::is_scalar | ( | data_layout | ) |
Check if a data layout is scalar.
bool datatools::introspection::is_string | ( | data_type | ) |
Check if a data type is a string.
bool datatools::introspection::is_user | ( | data_type | ) |
Check if a data type is a user type.
bool datatools::introspection::is_valid | ( | access_type | t_ | ) |
Check the validity of an access type.
bool datatools::introspection::is_valid | ( | unit_support_type | ) |
Check the validity of an unit support type.
bool datatools::introspection::is_valid | ( | data_layout | ) |
Check the validity of a data layout.
bool datatools::introspection::is_valid | ( | data_type | ) |
Check the validity of a data type.
bool datatools::introspection::is_vector | ( | data_layout | ) |
Check if a data layout is vector.
bool datatools::introspection::is_void | ( | data_type | ) |
Check if a data type is a void.
std::string datatools::introspection::layout_tag | ( | ) |
void datatools::introspection::make_value | ( | boost::any & | , |
data_type | dt_, | ||
const std::string & | layout_label_ = "" |
||
) |
Make value as a boost::any object.
std::string datatools::introspection::name_tag | ( | ) |
std::string datatools::introspection::preferred_unit_tag | ( | ) |
const std::string& datatools::introspection::to_string | ( | access_type | ) |
Convert an access type to a string.
const std::string& datatools::introspection::to_string | ( | unit_support_type | ) |
Convert an unit support type to a string.
const std::string& datatools::introspection::to_string | ( | data_layout | ) |
Convert a data layout to a string.
Convert a data type to a string.
std::string datatools::introspection::type_tag | ( | ) |
std::string datatools::introspection::vector_fixed_size_tag | ( | ) |