DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <Schema.hpp>
Public Member Functions | |
attribute_t (const std::string &name, type_t type, const std::string &range, int_format_t int_format, bool is_not_null, bool is_multi_value, const std::string &default_value, const std::string &description) | |
attribute_t () | |
void | print (std::ostream &out, const std::string &prefix="") const |
Static Public Member Functions | |
static const char * | type2str (type_t type) |
static const char * | type (type_t type) |
static const char * | format2str (int_format_t format) |
Public Attributes | |
std::string | p_name |
type_t | p_type |
std::string | p_range |
int_format_t | p_int_format |
bool | p_is_not_null |
bool | p_is_multi_value |
std::string | p_default_value |
std::string | p_description |
The description of attribute.
Definition at line 52 of file Schema.hpp.
dunedaq::conffwk::attribute_t::attribute_t | ( | const std::string & | name, |
type_t | type, | ||
const std::string & | range, | ||
int_format_t | int_format, | ||
bool | is_not_null, | ||
bool | is_multi_value, | ||
const std::string & | default_value, | ||
const std::string & | description ) |
Create attribute description
Definition at line 12 of file ConfigurationImpl.cpp.
|
inline |
|
static |
Return string corresponding to given integer value representation format
format | the integer value representation format |
Definition at line 73 of file ConfigurationImpl.cpp.
void dunedaq::conffwk::attribute_t::print | ( | std::ostream & | out, |
const std::string & | prefix = "" ) const |
Print description of attribute to stream.
out | the output stream |
prefix | optional shift output using prefix |
Definition at line 83 of file ConfigurationImpl.cpp.
|
static |
Return short string (oks data type) corresponding to given data type
type | the data type |
Definition at line 50 of file ConfigurationImpl.cpp.
|
static |
Return string corresponding to given data type
type | the data type |
Definition at line 27 of file ConfigurationImpl.cpp.
std::string dunedaq::conffwk::attribute_t::p_default_value |
the default value of attribute
Definition at line 60 of file Schema.hpp.
std::string dunedaq::conffwk::attribute_t::p_description |
the description text of attribute
Definition at line 61 of file Schema.hpp.
int_format_t dunedaq::conffwk::attribute_t::p_int_format |
the representation format for integer values
Definition at line 57 of file Schema.hpp.
bool dunedaq::conffwk::attribute_t::p_is_multi_value |
if true, the value of attribute is a list of primitive values (e.g. list of strings, list of integer numbers, etc.)
Definition at line 59 of file Schema.hpp.
bool dunedaq::conffwk::attribute_t::p_is_not_null |
if true, the value of attribute cannot be null
Definition at line 58 of file Schema.hpp.
std::string dunedaq::conffwk::attribute_t::p_name |
the attribute name
Definition at line 54 of file Schema.hpp.
std::string dunedaq::conffwk::attribute_t::p_range |
the attribute range in UML syntax (e.g.: "A,B,C..D,*..F,G..*" => value can be A, B, greater or equal to C and less or equal to D, less or equal to F, greater or equal to G)
Definition at line 56 of file Schema.hpp.
type_t dunedaq::conffwk::attribute_t::p_type |
the attribute type
Definition at line 55 of file Schema.hpp.