DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Namespaces | |
namespace | python |
Classes | |
struct | attribute_t |
struct | class_t |
class | ConfigAction |
class | ConfigObject |
Represents database objects. More... | |
class | ConfigObjectDefault |
class | ConfigObjectImpl |
Implements database objects. More... | |
class | Configuration |
Defines base class for cache of template objects. More... | |
class | ConfigurationChange |
Describes changes inside a class returned by the notification mechanism. More... | |
class | ConfigurationImpl |
Provides pure virtual interface used by the Configuration class. More... | |
class | ConfigurationSubscriptionCriteria |
Describes a subscription criteria. More... | |
struct | DalFactoryFunctions |
class | DalObject |
The base class for any generated DAL object. More... | |
class | DalRegistry |
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalObjecs. More... | |
class | fmap |
class | map |
class | multimap |
class | pmap |
struct | relationship_t |
struct | string_ptr_compare |
struct | string_ptr_hash |
class | Version |
Represents configuration version. More... | |
Typedefs | |
typedef DalObject *(* | dal_object_creator) (Configuration &db, ConfigObject &obj, const std::string &uid) |
The factory function creates DAL object of given template class. | |
typedef void(* | notify2) (Configuration &conf, const ConfigurationChange *changed_class) |
The notification callback function which is invoked by database implementation in case of changes. | |
typedef void(* | unread_object) (CacheBase *x) |
The function to update states of objects in cache. | |
typedef void(* | rename_object_f) (CacheBase *x, const std::string &old_id, const std::string &new_id) |
The function to rename object in cache. | |
typedef std::unordered_set< std::string > | set |
typedef std::unordered_set< const std::string *, string_ptr_hash > | fset |
Enumerations | |
enum | ObjectState { Valid , Deleted , Unknown } |
enum | PrintNumBase { dec , hex , oct } |
enum | type_t { bool_type , s8_type , u8_type , s16_type , u16_type , s32_type , u32_type , s64_type , u64_type , float_type , double_type , date_type , time_type , string_type , enum_type , class_type } |
enum | int_format_t { oct_int_format , dec_int_format , hex_int_format , na_int_format } |
enum | cardinality_t { zero_or_one , zero_or_many , only_one , one_or_many } |
Functions | |
std::ostream & | operator<< (std::ostream &, const ConfigurationChange &) |
std::ostream & | operator<< (std::ostream &, const std::vector< ConfigurationChange * > &) |
std::ostream & | operator<< (std::ostream &, const ConfigObject *) |
std::ostream & | operator<< (std::ostream &, const ConfigObject &) |
std::ostream & | operator<< (std::ostream &s, const Configuration &c) |
std::ostream & | operator<< (std::ostream &, const Version &) |
std::ostream & | operator<< (std::ostream &s, const DalObject *obj) |
template<class T > | |
void | p_val (std::ostream &s, const T &data) |
template<> | |
void | p_val< uint8_t > (std::ostream &s, const uint8_t &data) |
template<> | |
void | p_val< int8_t > (std::ostream &s, const int8_t &data) |
template<PrintNumBase NUM_BASE = dec> | |
void | p_base_start (std::ostream &s) noexcept |
template<PrintNumBase NUM_BASE> | |
void | p_base_end (std::ostream &s) noexcept |
template<PrintNumBase NUM_BASE = dec, class T > | |
void | p_sv_attr (std::ostream &s, const std::string &str, const std::string &name, const T &val) noexcept |
print single-value attribute | |
template<PrintNumBase NUM_BASE = dec, class T > | |
void | p_mv_attr (std::ostream &s, const std::string &str, const std::string &name, const T &val) noexcept |
print multi-value attribute | |
void | p_sv_rel (std::ostream &s, const std::string &str, const std::string &name, const DalObject *obj) |
print weak single-value relationship | |
template<class T > | |
void | p_sv_rel (std::ostream &s, const std::string &str, unsigned int indent, const std::string &name, const T *obj) noexcept |
print composite single-value relationship | |
template<class T > | |
void | p_mv_rel (std::ostream &s, const std::string &str, const std::string &name, const T &objs) noexcept |
print weak multi-value relationship | |
template<class T > | |
void | p_mv_rel (std::ostream &s, const std::string &str, unsigned int indent, const std::string &name, const T &objs) noexcept |
print composite multi-value relationship | |
const char * | bool2str (bool value) |
std::ostream & | operator<< (std::ostream &out, const attribute_t &) |
std::ostream & | operator<< (std::ostream &out, const relationship_t &) |
std::ostream & | operator<< (std::ostream &out, const class_t &) |
std::ostream & | operator<< (std::ostream &, const ConfigurationSubscriptionCriteria &) |
static void | print_sep (const char sep, std::ostream &s) |
template<class T > | |
void | print_val (const T &val, std::ostream &s) |
template<> | |
void | print_val< uint8_t > (const uint8_t &val, std::ostream &s) |
template<> | |
void | print_val< int8_t > (const int8_t &val, std::ostream &s) |
template<class T > | |
void | print_value (const ConfigObject &const_obj, const std::string &name, const bool ismv, const char sep, std::ostream &s) |
bool | is_null_obj (const ConfigObject *o) |
typedef DalObject *(* dunedaq::conffwk::dal_object_creator) (Configuration &db, ConfigObject &obj, const std::string &uid) |
The factory function creates DAL object of given template class.
It is used by the referenced_by() method returning DAL object.
db | reference on configuration |
obj | conffwk object |
uid | uid for generated objects |
Definition at line 31 of file DalFactoryFunctions.hpp.
typedef std::unordered_set<const std::string *, string_ptr_hash> dunedaq::conffwk::fset |
typedef void(* dunedaq::conffwk::notify2) (Configuration &conf, const ConfigurationChange *changed_class) |
The notification callback function which is invoked by database implementation in case of changes.
conf | reference on configuration |
changed_class | pointer to changed class |
Definition at line 44 of file DalFactoryFunctions.hpp.
typedef void(* dunedaq::conffwk::rename_object_f) (CacheBase *x, const std::string &old_id, const std::string &new_id) |
The function to rename object in cache.
x | reference on configuration cache for class of object |
old_id | old object id |
new_id | new object id |
Definition at line 69 of file DalFactoryFunctions.hpp.
typedef std::unordered_set<std::string> dunedaq::conffwk::set |
typedef void(* dunedaq::conffwk::unread_object) (CacheBase *x) |
The function to update states of objects in cache.
conf | reference on configuration |
re_initialise_obj | reinitialize object (after abort operation) |
Definition at line 56 of file DalFactoryFunctions.hpp.
The relationship cardinality.
Definition at line 103 of file Schema.hpp.
The numeration format to be used for integer value representation.
Definition at line 42 of file Schema.hpp.
Possible states of configuration objects.
Enumerator | |
---|---|
Valid | the object is valid |
Deleted | the object was deleted and may not be accessed |
Unknown | the state of object i unknown (e.g. after abort) |
Definition at line 29 of file ConfigObjectImpl.hpp.
The supported attribute types.
Definition at line 20 of file Schema.hpp.
const char * dunedaq::conffwk::bool2str | ( | bool | value | ) |
Definition at line 10 of file ConfigurationImpl.cpp.
|
inline |
Definition at line 188 of file ConfigObject.cpp.
std::ostream & dunedaq::conffwk::operator<< | ( | std::ostream & | s, |
const ConfigObject & | obj ) |
Operator to print reference on conffwk object in 'obj-id@class-name' format
Definition at line 106 of file ConfigObject.cpp.
std::ostream & dunedaq::conffwk::operator<< | ( | std::ostream & | s, |
const ConfigObject * | obj ) |
Operator to print pointer on conffwk object in 'obj-id@class-name' format
Definition at line 99 of file ConfigObject.cpp.
std::ostream & dunedaq::conffwk::operator<< | ( | std::ostream & | , |
const ConfigurationChange & | ) |
Operator prints out to stream details of configuration change.
std::ostream & dunedaq::conffwk::operator<< | ( | std::ostream & | s, |
const ConfigurationSubscriptionCriteria & | criteria ) |
Operator to print details of subscription criteria object
Definition at line 51 of file SubscriptionCriteria.cpp.
std::ostream & dunedaq::conffwk::operator<< | ( | std::ostream & | , |
const std::vector< ConfigurationChange * > & | ) |
Operator prints out to stream details of all configuration changes.
std::ostream & dunedaq::conffwk::operator<< | ( | std::ostream & | , |
const Version & | ) |
std::ostream & dunedaq::conffwk::operator<< | ( | std::ostream & | out, |
const attribute_t & | a ) |
Definition at line 101 of file ConfigurationImpl.cpp.
std::ostream & dunedaq::conffwk::operator<< | ( | std::ostream & | out, |
const class_t & | c ) |
Definition at line 217 of file ConfigurationImpl.cpp.
std::ostream & dunedaq::conffwk::operator<< | ( | std::ostream & | out, |
const relationship_t & | r ) |
Definition at line 145 of file ConfigurationImpl.cpp.
std::ostream & dunedaq::conffwk::operator<< | ( | std::ostream & | s, |
const Configuration & | c ) |
Operator prints out to stream configuration using method print().
std::ostream & dunedaq::conffwk::operator<< | ( | std::ostream & | s, |
const DalObject * | obj ) |
Operator to print any template's object pointer in 'obj-id@class-name' format
Definition at line 90 of file DalObject.cpp.
|
noexcept |
Definition at line 52 of file DalObjectPrint.hpp.
|
noexcept |
Definition at line 39 of file DalObjectPrint.hpp.
|
noexcept |
print multi-value attribute
Definition at line 73 of file DalObjectPrint.hpp.
|
noexcept |
print weak multi-value relationship
Definition at line 114 of file DalObjectPrint.hpp.
|
noexcept |
print composite multi-value relationship
Definition at line 134 of file DalObjectPrint.hpp.
|
noexcept |
print single-value attribute
Definition at line 61 of file DalObjectPrint.hpp.
void dunedaq::conffwk::p_sv_rel | ( | std::ostream & | s, |
const std::string & | str, | ||
const std::string & | name, | ||
const DalObject * | obj ) |
print weak single-value relationship
Definition at line 105 of file DalObject.cpp.
|
noexcept |
print composite single-value relationship
Definition at line 101 of file DalObjectPrint.hpp.
void dunedaq::conffwk::p_val | ( | std::ostream & | s, |
const T & | data ) |
Definition at line 17 of file DalObjectPrint.hpp.
|
inline |
Definition at line 30 of file DalObjectPrint.hpp.
|
inline |
Definition at line 23 of file DalObjectPrint.hpp.
|
inlinestatic |
Definition at line 114 of file ConfigObject.cpp.
void dunedaq::conffwk::print_val | ( | const T & | val, |
std::ostream & | s ) |
Definition at line 122 of file ConfigObject.cpp.
void dunedaq::conffwk::print_val< int8_t > | ( | const int8_t & | val, |
std::ostream & | s ) |
Definition at line 135 of file ConfigObject.cpp.
void dunedaq::conffwk::print_val< uint8_t > | ( | const uint8_t & | val, |
std::ostream & | s ) |
Definition at line 128 of file ConfigObject.cpp.
void dunedaq::conffwk::print_value | ( | const ConfigObject & | const_obj, |
const std::string & | name, | ||
const bool | ismv, | ||
const char | sep, | ||
std::ostream & | s ) |
Definition at line 143 of file ConfigObject.cpp.