|
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
| Print details of the DetDataReceiver object.
|
|
virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
| Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
|
|
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
| Print details of the DetDataReceiver object.
|
|
virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
| Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
|
|
void | get_parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Component * > > &parents) const |
|
bool | disabled (const dunedaq::confmodel::Session &session) const |
|
void | get_parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Component * > > &parents) const |
|
bool | disabled (const dunedaq::confmodel::Session &session) const |
|
const std::string & | UID () const noexcept |
|
const std::string & | class_name () const noexcept |
|
bool | castable (const std::string &target) const noexcept |
|
bool | castable (const std::string *target) const noexcept |
|
template<class TARGET > |
const TARGET * | cast () const noexcept |
| Casts object to different class.
|
|
std::string | full_name () const noexcept |
|
const ConfigObject & | config_object () const |
|
DalRegistry & | registry () const noexcept |
|
Configuration & | configuration () const noexcept |
|
void | unread () |
|
void | set (const ConfigObject &o) noexcept |
|
void | move (const std::string &at) |
|
void | rename (const std::string &new_id) |
|
void | p_hdr (std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const |
| print object headers
|
|
std::ostream & | print_object (std::ostream &s) const |
| print object details
|
|
void | throw_init_ex (dunedaq::conffwk::Exception &ex) |
| throw object initialisation exception (i.e.
|
|
|
| DetDataReceiver (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept |
|
virtual | ~DetDataReceiver () noexcept |
|
virtual void | init (bool init_children) |
|
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
|
| DetDataReceiver (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept |
|
virtual | ~DetDataReceiver () noexcept |
|
virtual void | init (bool init_children) |
|
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
|
| Resource (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept |
|
virtual | ~Resource () noexcept |
|
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
|
| Resource (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept |
|
virtual | ~Resource () noexcept |
|
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
|
| ResourceBase (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept |
|
virtual | ~ResourceBase () noexcept |
|
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
|
| ResourceBase (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept |
|
virtual | ~ResourceBase () noexcept |
|
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
|
| Component (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept |
|
virtual | ~Component () noexcept |
|
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
|
| Component (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept |
|
virtual | ~Component () noexcept |
|
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
|
| DalObject (DalRegistry &db, const ConfigObject &o) noexcept |
|
virtual | ~DalObject () |
|
void | clear () noexcept |
|
void | check () const |
|
bool | is_deleted () const |
|
void | increment_created () noexcept |
|
void | increment_read () noexcept |
|
void | check_init () const |
| Check and initialize object if necessary.
|
|
template<typename T > |
void | _set_object (const std::string &name, const T *value) |
| Helper method for generated set single-value relationship methods.
|
|
template<typename T > |
void | _set_objects (const std::string &name, const std::vector< const T * > &value) |
| Helper method for generated set multi-value relationship methods.
|
|
bool | get_rel_objects (const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const |
| Read relationship values as DAL objects using DAL factory.
|
|
bool | get_algo_objects (const std::string &name, std::vector< const DalObject * > &objs) const |
| Run algorithm and return result as DAL objects using DAL factory.
|
|
|
static void | p_null (std::ostream &s) |
| print "(null)"
|
|
static void | p_rm (std::ostream &s) |
| print "(deleted object)"
|
|
static void | p_error (std::ostream &s, dunedaq::conffwk::Exception &ex) |
| print error text
|
|
static void | throw_get_ex (const std::string &what, const std::string &class_name, const DalObject *obj) |
| throw exception in generated get method (i.e.
|
|
static bool | is_null (const DalObject *ref) noexcept |
| check a pointer on DAL object is null
|
|
std::mutex | m_mutex |
| Used to protect changes of DAL object.
|
|
bool | p_was_read |
| is true, if the object was read
|
|
DalRegistry & | p_registry |
| Configuration object.
|
|
ConfigObject | p_obj |
| Config object used by given template object.
|
|
std::string | p_UID |
| Is used for template objects (see dqm_conffwk)
|
|
Definition at line 23 of file DetDataReceiver.hpp.
std::vector< const dunedaq::conffwk::DalObject * > dunedaq::confmodel::DetDataReceiver::get |
( |
const std::string & | name, |
|
|
bool | upcast_unregistered = true ) const |
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
- Parameters
-
name | name of the relationship or algorithm |
- Returns
- value of relationship or result of algorithm
- Exceptions
-
std::exception | if there is no relationship or algorithm with such name in this and base classes |
Reimplemented from dunedaq::confmodel::Resource.
Reimplemented in dunedaq::appmodel::DPDKReceiver, dunedaq::appmodel::DPDKReceiver, dunedaq::appmodel::FakeDataReceiver, dunedaq::appmodel::FakeDataReceiver, dunedaq::appmodel::FelixDataReceiver, dunedaq::appmodel::FelixDataReceiver, dunedaq::appmodel::FelixInterface, dunedaq::appmodel::FelixInterface, dunedaq::appmodel::NWDetDataReceiver, dunedaq::appmodel::NWDetDataReceiver, dunedaq::appmodel::SocketReceiver, and dunedaq::appmodel::SocketReceiver.
Definition at line 55 of file DetDataReceiver.cpp.
56 {
57 std::vector<const dunedaq::conffwk::DalObject *> vec;
58
59 if (!
get(name, vec, upcast_unregistered,
true))
61
62 return vec;
63 }
static void throw_get_ex(const std::string &what, const std::string &class_name, const DalObject *obj)
throw exception in generated get method (i.e.
static const std::string & s_class_name
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...