DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::appmodel::CRTReaderApplication Class Reference

#include <CRTReaderApplication.hpp>

Inheritance diagram for dunedaq::appmodel::CRTReaderApplication:
[legend]
Collaboration diagram for dunedaq::appmodel::CRTReaderApplication:
[legend]

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the CRTReaderApplication 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.
 
const std::string & get_application_name () const
 Get "application_name" attribute value.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value.
 
const std::vector< const dunedaq::appmodel::SocketDataWriterConf * > & get_data_writers () const
 Get "data_writers" relationship value.
 
void set_data_writers (const std::vector< const dunedaq::appmodel::SocketDataWriterConf * > &value)
 Set "data_writers" relationship value.
 
const dunedaq::appmodel::DataReaderConfget_data_reader () const
 Get "data_reader" relationship value.
 
void set_data_reader (const dunedaq::appmodel::DataReaderConf *value)
 Set "data_reader" relationship value.
 
const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > & get_detector_connections () const
 Get "detector_connections" relationship value.
 
void set_detector_connections (const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > &value)
 Set "detector_connections" relationship value.
 
void generate_modules (const confmodel::Session *) const override
 
virtual std::vector< const Resource * > contained_resources () const override
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the CRTReaderApplication 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.
 
const std::string & get_application_name () const
 Get "application_name" attribute value.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value.
 
const std::vector< const dunedaq::appmodel::SocketDataWriterConf * > & get_data_writers () const
 Get "data_writers" relationship value.
 
void set_data_writers (const std::vector< const dunedaq::appmodel::SocketDataWriterConf * > &value)
 Set "data_writers" relationship value.
 
const dunedaq::appmodel::DataReaderConfget_data_reader () const
 Get "data_reader" relationship value.
 
void set_data_reader (const dunedaq::appmodel::DataReaderConf *value)
 Set "data_reader" relationship value.
 
const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > & get_detector_connections () const
 Get "detector_connections" relationship value.
 
void set_detector_connections (const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > &value)
 Set "detector_connections" relationship value.
 
void generate_modules (const confmodel::Session *) const override
 
virtual std::vector< const Resource * > contained_resources () const override
 
- Public Member Functions inherited from dunedaq::confmodel::ResourceSetDisableAND
bool compute_disabled_state (const std::set< std::string > &disabled) const final
 
bool compute_disabled_state (const std::set< std::string > &disabled) const final
 
- Public Member Functions inherited from dunedaq::confmodel::ResourceSet
- Public Member Functions inherited from dunedaq::confmodel::Resource
void parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Resource * > > &parents) const
 
bool is_disabled (const dunedaq::confmodel::ResourceTree &session) const
 
void parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Resource * > > &parents) const
 
bool is_disabled (const dunedaq::confmodel::ResourceTree &session) const
 
- Public Member Functions inherited from dunedaq::conffwk::DalObject
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 ConfigObjectconfig_object () const
 
DalRegistryregistry () const noexcept
 
Configurationconfiguration () 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.
 
- Public Member Functions inherited from dunedaq::appmodel::SmartDaqApplication
const dunedaq::appmodel::SourceIDConfget_source_id () const
 Get "source_id" relationship value.
 
void set_source_id (const dunedaq::appmodel::SourceIDConf *value)
 Set "source_id" relationship value.
 
const std::vector< const dunedaq::appmodel::QueueConnectionRule * > & get_queue_rules () const
 Get "queue_rules" relationship value.
 
void set_queue_rules (const std::vector< const dunedaq::appmodel::QueueConnectionRule * > &value)
 Set "queue_rules" relationship value.
 
const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > & get_network_rules () const
 Get "network_rules" relationship value.
 
void set_network_rules (const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > &value)
 Set "network_rules" relationship value.
 
const dunedaq::appmodel::SourceIDConfget_source_id () const
 Get "source_id" relationship value.
 
void set_source_id (const dunedaq::appmodel::SourceIDConf *value)
 Set "source_id" relationship value.
 
const std::vector< const dunedaq::appmodel::QueueConnectionRule * > & get_queue_rules () const
 Get "queue_rules" relationship value.
 
void set_queue_rules (const std::vector< const dunedaq::appmodel::QueueConnectionRule * > &value)
 Set "queue_rules" relationship value.
 
const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > & get_network_rules () const
 Get "network_rules" relationship value.
 
void set_network_rules (const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > &value)
 Set "network_rules" relationship value.
 
- Public Member Functions inherited from dunedaq::confmodel::DaqApplication
const std::string & get_application_name () const
 Get "application_name" attribute value. Name of the application binary to run.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value. Name of the application binary to run.
 
const std::vector< const dunedaq::confmodel::DaqModule * > & get_modules () const
 Get "modules" relationship value.
 
void set_modules (const std::vector< const dunedaq::confmodel::DaqModule * > &value)
 Set "modules" relationship value.
 
const std::vector< const dunedaq::confmodel::ActionPlan * > & get_action_plans () const
 Get "action_plans" relationship value.
 
void set_action_plans (const std::vector< const dunedaq::confmodel::ActionPlan * > &value)
 Set "action_plans" relationship value.
 
std::set< const dunedaq::confmodel::HostComponent * > get_used_hostresources () const
 
const std::vector< std::string > construct_commandline_parameters (const conffwk::Configuration &confdb, const dunedaq::confmodel::Session *session) const
 
const std::string & get_application_name () const
 Get "application_name" attribute value. Name of the application binary to run.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value. Name of the application binary to run.
 
const std::vector< const dunedaq::confmodel::DaqModule * > & get_modules () const
 Get "modules" relationship value.
 
void set_modules (const std::vector< const dunedaq::confmodel::DaqModule * > &value)
 Set "modules" relationship value.
 
const std::vector< const dunedaq::confmodel::ActionPlan * > & get_action_plans () const
 Get "action_plans" relationship value.
 
void set_action_plans (const std::vector< const dunedaq::confmodel::ActionPlan * > &value)
 Set "action_plans" relationship value.
 
std::set< const dunedaq::confmodel::HostComponent * > get_used_hostresources () const
 
const std::vector< std::string > construct_commandline_parameters (const conffwk::Configuration &confdb, const dunedaq::confmodel::Session *session) const
 
- Public Member Functions inherited from dunedaq::confmodel::Application
const std::string & get_application_name () const
 Get "application_name" attribute value. Name of the application binary to run.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value. Name of the application binary to run.
 
const std::vector< std::string > & get_commandline_parameters () const
 Get "commandline_parameters" attribute value. command line parameters to add when starting the application.
 
void set_commandline_parameters (const std::vector< std::string > &value)
 Set "commandline_parameters" attribute value. command line parameters to add when starting the application.
 
const std::string & get_log_path () const
 Get "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used.
 
void set_log_path (const std::string &value)
 Set "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used.
 
const std::vector< const dunedaq::confmodel::VariableBase * > & get_application_environment () const
 Get "application_environment" relationship value. Define process environment for this application.
 
void set_application_environment (const std::vector< const dunedaq::confmodel::VariableBase * > &value)
 Set "application_environment" relationship value. Define process environment for this application.
 
const dunedaq::confmodel::VirtualHostget_runs_on () const
 Get "runs_on" relationship value. VirtualHost to run this application on.
 
void set_runs_on (const dunedaq::confmodel::VirtualHost *value)
 Set "runs_on" relationship value. VirtualHost to run this application on.
 
const std::vector< const dunedaq::confmodel::Service * > & get_exposes_service () const
 Get "exposes_service" relationship value. Services exposed i.e. provided by this application.
 
void set_exposes_service (const std::vector< const dunedaq::confmodel::Service * > &value)
 Set "exposes_service" relationship value. Services exposed i.e. provided by this application.
 
const dunedaq::confmodel::OpMonConfget_opmon_conf () const
 Get "opmon_conf" relationship value. description of the monitoring behaviour in the application.
 
void set_opmon_conf (const dunedaq::confmodel::OpMonConf *value)
 Set "opmon_conf" relationship value. description of the monitoring behaviour in the application.
 
const std::vector< std::string > parse_commandline_parameters () const
 
const std::string & get_application_name () const
 Get "application_name" attribute value. Name of the application binary to run.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value. Name of the application binary to run.
 
const std::vector< std::string > & get_commandline_parameters () const
 Get "commandline_parameters" attribute value. command line parameters to add when starting the application.
 
void set_commandline_parameters (const std::vector< std::string > &value)
 Set "commandline_parameters" attribute value. command line parameters to add when starting the application.
 
const std::string & get_log_path () const
 Get "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used.
 
void set_log_path (const std::string &value)
 Set "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used.
 
const std::vector< const dunedaq::confmodel::VariableBase * > & get_application_environment () const
 Get "application_environment" relationship value. Define process environment for this application.
 
void set_application_environment (const std::vector< const dunedaq::confmodel::VariableBase * > &value)
 Set "application_environment" relationship value. Define process environment for this application.
 
const dunedaq::confmodel::VirtualHostget_runs_on () const
 Get "runs_on" relationship value. VirtualHost to run this application on.
 
void set_runs_on (const dunedaq::confmodel::VirtualHost *value)
 Set "runs_on" relationship value. VirtualHost to run this application on.
 
const std::vector< const dunedaq::confmodel::Service * > & get_exposes_service () const
 Get "exposes_service" relationship value. Services exposed i.e. provided by this application.
 
void set_exposes_service (const std::vector< const dunedaq::confmodel::Service * > &value)
 Set "exposes_service" relationship value. Services exposed i.e. provided by this application.
 
const dunedaq::confmodel::OpMonConfget_opmon_conf () const
 Get "opmon_conf" relationship value. description of the monitoring behaviour in the application.
 
void set_opmon_conf (const dunedaq::confmodel::OpMonConf *value)
 Set "opmon_conf" relationship value. description of the monitoring behaviour in the application.
 
const std::vector< std::string > parse_commandline_parameters () const
 

Static Public Member Functions

static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_data_writers_str () noexcept
 
static const std::string & __get_data_reader_str () noexcept
 
static const std::string & __get_detector_connections_str () noexcept
 
static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_data_writers_str () noexcept
 
static const std::string & __get_data_reader_str () noexcept
 
static const std::string & __get_detector_connections_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::conffwk::DalObject
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
 
- Static Public Member Functions inherited from dunedaq::appmodel::SmartDaqApplication
static const std::string & __get_source_id_str () noexcept
 
static const std::string & __get_queue_rules_str () noexcept
 
static const std::string & __get_network_rules_str () noexcept
 
static const std::string & __get_source_id_str () noexcept
 
static const std::string & __get_queue_rules_str () noexcept
 
static const std::string & __get_network_rules_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::confmodel::DaqApplication
static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_modules_str () noexcept
 
static const std::string & __get_action_plans_str () noexcept
 
static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_modules_str () noexcept
 
static const std::string & __get_action_plans_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::confmodel::Application
static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_commandline_parameters_str () noexcept
 
static const std::string & __get_log_path_str () noexcept
 
static const std::string & __get_application_environment_str () noexcept
 
static const std::string & __get_runs_on_str () noexcept
 
static const std::string & __get_exposes_service_str () noexcept
 
static const std::string & __get_opmon_conf_str () noexcept
 
static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_commandline_parameters_str () noexcept
 
static const std::string & __get_log_path_str () noexcept
 
static const std::string & __get_application_environment_str () noexcept
 
static const std::string & __get_runs_on_str () noexcept
 
static const std::string & __get_exposes_service_str () noexcept
 
static const std::string & __get_opmon_conf_str () noexcept
 

Static Public Attributes

static const std::string & s_class_name
 
static const std::string s_application_name = "application_name"
 
static const std::string s_data_writers = "data_writers"
 
static const std::string s_data_reader = "data_reader"
 
static const std::string s_detector_connections = "detector_connections"
 
- Static Public Attributes inherited from dunedaq::confmodel::ResourceSetDisableAND
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::ResourceSet
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::Resource
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::appmodel::SmartDaqApplication
static const std::string & s_class_name
 
static const std::string s_source_id = "source_id"
 
static const std::string s_queue_rules = "queue_rules"
 
static const std::string s_network_rules = "network_rules"
 
- Static Public Attributes inherited from dunedaq::confmodel::DaqApplication
static const std::string & s_class_name
 
static const std::string s_application_name = "application_name"
 
static const std::string s_modules = "modules"
 
static const std::string s_action_plans = "action_plans"
 
- Static Public Attributes inherited from dunedaq::confmodel::Application
static const std::string & s_class_name
 
static const std::string s_application_name = "application_name"
 
static const std::string s_commandline_parameters = "commandline_parameters"
 
static const std::string s_log_path = "log_path"
 
static const std::string s_application_environment = "application_environment"
 
static const std::string s_runs_on = "runs_on"
 
static const std::string s_exposes_service = "exposes_service"
 
static const std::string s_opmon_conf = "opmon_conf"
 

Protected Member Functions

 CRTReaderApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~CRTReaderApplication () 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
 
 CRTReaderApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~CRTReaderApplication () 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
 
- Protected Member Functions inherited from dunedaq::confmodel::ResourceSetDisableAND
 ResourceSetDisableAND (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceSetDisableAND () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 ResourceSetDisableAND (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceSetDisableAND () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::ResourceSet
 ResourceSet (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceSet () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 ResourceSet (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceSet () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::Resource
 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
 
- Protected Member Functions inherited from dunedaq::conffwk::DalObject
 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.
 
- Protected Member Functions inherited from dunedaq::appmodel::SmartDaqApplication
 SmartDaqApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~SmartDaqApplication () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 SmartDaqApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~SmartDaqApplication () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::DaqApplication
 DaqApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DaqApplication () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 DaqApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DaqApplication () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::Application
 Application (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Application () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 Application (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Application () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 

Private Attributes

std::string m_application_name
 
std::vector< const dunedaq::appmodel::SocketDataWriterConf * > m_data_writers
 
const dunedaq::appmodel::DataReaderConfm_data_reader
 
std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > m_detector_connections
 

Friends

class conffwk::Configuration
 
class conffwk::DalObject
 
class conffwk::DalFactory
 
class conffwk::DalRegistry
 

Additional Inherited Members

- Protected Attributes inherited from dunedaq::conffwk::DalObject
std::mutex m_mutex
 Used to protect changes of DAL object.
 
bool p_was_read
 is true, if the object was read
 
DalRegistryp_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)
 

Detailed Description

Definition at line 38 of file CRTReaderApplication.hpp.

Constructor & Destructor Documentation

◆ CRTReaderApplication() [1/2]

dunedaq::appmodel::CRTReaderApplication::CRTReaderApplication ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

Definition at line 33 of file CRTReaderApplication.cpp.

33 :
37 m_data_reader (nullptr)
38
39 {
40 ;
41 }
const dunedaq::appmodel::DataReaderConf * m_data_reader
SmartDaqApplication(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~CRTReaderApplication() [1/2]

dunedaq::appmodel::CRTReaderApplication::~CRTReaderApplication ( )
protectedvirtualnoexcept

Definition at line 96 of file CRTReaderApplication.cpp.

97 {
98 }

◆ CRTReaderApplication() [2/2]

dunedaq::appmodel::CRTReaderApplication::CRTReaderApplication ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

◆ ~CRTReaderApplication() [2/2]

virtual dunedaq::appmodel::CRTReaderApplication::~CRTReaderApplication ( )
protectedvirtualnoexcept

Member Function Documentation

◆ __get_application_name_str() [1/2]

static const std::string & dunedaq::appmodel::CRTReaderApplication::__get_application_name_str ( )
inlinestaticnoexcept

Definition at line 101 of file CRTReaderApplication.hpp.

101{ return s_application_name; }

◆ __get_application_name_str() [2/2]

static const std::string & dunedaq::appmodel::CRTReaderApplication::__get_application_name_str ( )
inlinestaticnoexcept

Definition at line 101 of file CRTReaderApplication.hpp.

101{ return s_application_name; }

◆ __get_data_reader_str() [1/2]

static const std::string & dunedaq::appmodel::CRTReaderApplication::__get_data_reader_str ( )
inlinestaticnoexcept

Definition at line 142 of file CRTReaderApplication.hpp.

142{ return s_data_reader; }

◆ __get_data_reader_str() [2/2]

static const std::string & dunedaq::appmodel::CRTReaderApplication::__get_data_reader_str ( )
inlinestaticnoexcept

Definition at line 142 of file CRTReaderApplication.hpp.

142{ return s_data_reader; }

◆ __get_data_writers_str() [1/2]

static const std::string & dunedaq::appmodel::CRTReaderApplication::__get_data_writers_str ( )
inlinestaticnoexcept

Definition at line 141 of file CRTReaderApplication.hpp.

141{ return s_data_writers; }

◆ __get_data_writers_str() [2/2]

static const std::string & dunedaq::appmodel::CRTReaderApplication::__get_data_writers_str ( )
inlinestaticnoexcept

Definition at line 141 of file CRTReaderApplication.hpp.

141{ return s_data_writers; }

◆ __get_detector_connections_str() [1/2]

static const std::string & dunedaq::appmodel::CRTReaderApplication::__get_detector_connections_str ( )
inlinestaticnoexcept

Definition at line 143 of file CRTReaderApplication.hpp.

143{ return s_detector_connections; }

◆ __get_detector_connections_str() [2/2]

static const std::string & dunedaq::appmodel::CRTReaderApplication::__get_detector_connections_str ( )
inlinestaticnoexcept

Definition at line 143 of file CRTReaderApplication.hpp.

143{ return s_detector_connections; }

◆ contained_resources() [1/2]

std::vector< const confmodel::Resource * > dunedaq::appmodel::CRTReaderApplication::contained_resources ( ) const
overridevirtual

Virtual method to obtain the list of all contained Resources. Used internally by the core disabled logic. Not intended to be used in application code as that should be using individual relationships of the derived classes.

Implements dunedaq::confmodel::ResourceSet.

Definition at line 37 of file CRTReaderApplication.cpp.

37 {
39}
const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > & get_detector_connections() const
Get "detector_connections" relationship value.
std::vector< const dunedaq::confmodel::Resource * > to_resources(const std::vector< T * > &vector_of_children)

◆ contained_resources() [2/2]

virtual std::vector< const Resource * > dunedaq::appmodel::CRTReaderApplication::contained_resources ( ) const
overridevirtual

Virtual method to obtain the list of all contained Resources. Used internally by the core disabled logic. Not intended to be used in application code as that should be using individual relationships of the derived classes.

Implements dunedaq::confmodel::ResourceSet.

◆ generate_modules() [1/2]

void dunedaq::appmodel::CRTReaderApplication::generate_modules ( const confmodel::Session * session) const
overridevirtual

Generate daq module dal objects for streams of the CRTReaderApplication on the fly

Implements dunedaq::appmodel::SmartDaqApplication.

Definition at line 42 of file CRTReaderApplication.cpp.

43{
44
45 TLOG_DEBUG(6) << "Generating modules for application " << this->UID();
46
47 std::vector<const confmodel::DaqModule*> modules;
48
49 ConfigObjectFactory obj_fac(this);
50
51 //
52 // Extract basic configuration objects
53 //
54
55 // Data reader
56 const auto reader_conf = get_data_reader();
57 if (reader_conf == 0) {
58 throw(BadConf(ERS_HERE, "No DataReaderModule configuration given"));
59 }
60 const std::string reader_class = reader_conf->get_template_for();
61
62 // Data writers
63 const auto writer_confs = get_data_writers();
64 if (writer_confs.size() == 0) {
65 throw(BadConf(ERS_HERE, "No DataWriterModule configuration given"));
66 }
67
68 //
69 // Process the queue rules looking for inputs to our DL/TP handler modules
70 //
71 const QueueDescriptor* dlh_input_qdesc = nullptr;
72
73 for (auto rule : get_queue_rules()) {
74 auto destination_class = rule->get_destination_class();
75 auto data_type = rule->get_descriptor()->get_data_type();
76 // Why datahander here? It is the base class for several DataHandler types (e.g. FDDataHandlerModule,
77 // SNBDataHandlerModule)
78 if (destination_class == "DataHandlerModule") {
79 if (data_type != "DataRequest") {
80 dlh_input_qdesc = rule->get_descriptor();
81 }
82 }
83 }
84
85 if (dlh_input_qdesc == nullptr) {
86 throw(BadConf(ERS_HERE, "No data link handler input queue descriptor given"));
87 }
88
89 //
90 // Scan Detector 2 DAQ connections to extract sender, receiver and stream information
91 //
92
93 // Loop over the detector to daq connections and generate one data reader per connection
94
95 // Collect all streams
96 std::map<uint32_t, const confmodel::Connection*> data_queues_by_sid;
97
98 uint16_t conn_idx = 0;
99
100 for (auto d2d_conn : get_detector_connections()) {
101
102 // Are we sure?
103 if (d2d_conn->is_disabled(*session)) {
104 TLOG_DEBUG(7) << "Ignoring disabled DetectorToDaqConnection " << d2d_conn->UID();
105 continue;
106 }
107
108 TLOG_DEBUG(6) << "Processing DetectorToDaqConnection " << d2d_conn->UID();
109 // get the readout groups and the interfaces and streams therein; 1 reaout group corresponds to 1 data reader module
110
111 std::vector<const confmodel::DetectorStream*> enabled_det_streams;
112 // Loop over streams
113 for (auto stream : d2d_conn->streams()) {
114
115 // Are we sure?
116 if (stream->is_disabled(*session)) {
117 TLOG_DEBUG(7) << "Ignoring disabled DetectorStream " << stream->UID();
118 continue;
119 }
120
121 enabled_det_streams.push_back(stream);
122 }
123
124 // Create the raw data queues
125 std::vector<const conffwk::ConfigObject*> data_queue_objs;
126 // keep a map for convenience
127
128 // Create data queues
129 for (auto ds : enabled_det_streams) {
130 conffwk::ConfigObject queue_obj = obj_fac.create_queue_sid_obj(dlh_input_qdesc, ds);
131 const auto* data_queue = obj_fac.get_dal<confmodel::Connection>(queue_obj.UID());
132 data_queue_objs.push_back(&data_queue->config_object());
133 data_queues_by_sid[ds->get_source_id()] = data_queue;
134 }
135
136 //-----------------------------------------------------------------
137 //
138 // Create DataReaderModule object
139 //
140
141 //
142 // Instantiate DataReaderModule of type CRTBernReaderModule/CRTGrenobleReaderModule
143 //
144
145 // Create the Data reader object
146
147 std::string reader_uid(fmt::format("crtdatareader-{}-{}", this->UID(), std::to_string(conn_idx++)));
148 TLOG_DEBUG(6) << fmt::format("creating OKS configuration object for Data reader class {} with id {}", reader_class, reader_uid);
149 auto reader_obj = obj_fac.create(reader_class, reader_uid);
150
151 // Populate configuration and interfaces (leave output queues for later)
152 reader_obj.set_obj("configuration", &reader_conf->config_object());
153 reader_obj.set_objs("connections", {&d2d_conn->config_object()});
154 reader_obj.set_objs("outputs", data_queue_objs);
155
156 modules.push_back(obj_fac.get_dal<confmodel::DaqModule>(reader_obj.UID()));
157
158 //-----------------------------------------------------------------
159 //
160 // Create DataWriterModule objects
161 //
162
163 //
164 // Instantiate DataWriterModule of type SocketWriterModule
165 //
166
167 // Create the SocketWriterModule objects
168
169 conn_idx = 0;
170
171 for (const auto writer_conf : writer_confs) {
172
173 const std::string writer_class = writer_conf->get_template_for();
174
175 std::string writer_uid(fmt::format("socketdatawriter-{}-{}", this->UID(), std::to_string(conn_idx++)));
176 TLOG_DEBUG(6) << fmt::format(
177 "Creating OKS configuration object for socket data writer class {} with id {}", writer_class, writer_uid);
178 auto writer_obj = obj_fac.create(writer_class, writer_uid);
179
180 // Populate configuration and interfaces
181 writer_obj.set_obj("configuration", &writer_conf->config_object());
182 writer_obj.set_objs("connections", {&d2d_conn->config_object()});
183 writer_obj.set_objs("inputs", data_queue_objs);
184
185 modules.push_back(obj_fac.get_dal<confmodel::DaqModule>(writer_obj.UID()));
186 }
187 }
188
189 obj_fac.update_modules(modules);
190}
#define ERS_HERE
const dunedaq::appmodel::DataReaderConf * get_data_reader() const
Get "data_reader" relationship value.
const std::vector< const dunedaq::appmodel::SocketDataWriterConf * > & get_data_writers() const
Get "data_writers" relationship value.
const std::vector< const dunedaq::appmodel::QueueConnectionRule * > & get_queue_rules() const
Get "queue_rules" relationship value.
const std::string & UID() const noexcept
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ generate_modules() [2/2]

void dunedaq::appmodel::CRTReaderApplication::generate_modules ( const confmodel::Session * ) const
overridevirtual

Generate daq module dal objects for streams of the CRTReaderApplication on the fly

Implements dunedaq::appmodel::SmartDaqApplication.

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::CRTReaderApplication::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
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.

Definition at line 100 of file CRTReaderApplication.cpp.

101 {
102 std::vector<const dunedaq::conffwk::DalObject *> vec;
103
104 if (!get(name, vec, upcast_unregistered, true))
105 throw_get_ex(name, s_class_name, this);
106
107 return vec;
108 }
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...
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.
Definition DalObject.cpp:82

◆ get() [2/4]

virtual std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::CRTReaderApplication::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
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.

◆ get() [3/4]

bool dunedaq::appmodel::CRTReaderApplication::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

Definition at line 110 of file CRTReaderApplication.cpp.

111 {
112 if (first_call)
113 {
114 std::lock_guard scoped_lock(m_mutex);
115
116 check();
117 check_init();
118
119 if (get_rel_objects(name, upcast_unregistered, vec))
120 return true;
121 }
122
123 if (ResourceSetDisableAND::get(name, vec, upcast_unregistered, false)) return true;
124 if (SmartDaqApplication::get(name, vec, upcast_unregistered, false)) return true;
125
126 if (first_call)
127 return get_algo_objects(name, vec);
128
129 return false;
130 }
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...
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.
Definition DalObject.cpp:8
std::mutex m_mutex
Used to protect changes of DAL object.
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.
Definition DalObject.cpp:25
void check_init() const
Check and initialize object if necessary.

◆ get() [4/4]

bool dunedaq::appmodel::CRTReaderApplication::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_application_name() [1/2]

const std::string & dunedaq::appmodel::CRTReaderApplication::get_application_name ( ) const
inline

Get "application_name" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 111 of file CRTReaderApplication.hpp.

112 {
113 std::lock_guard scoped_lock(m_mutex);
114 check();
115 check_init();
116 return m_application_name;
117 }

◆ get_application_name() [2/2]

const std::string & dunedaq::appmodel::CRTReaderApplication::get_application_name ( ) const
inline

Get "application_name" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 111 of file CRTReaderApplication.hpp.

112 {
113 std::lock_guard scoped_lock(m_mutex);
114 check();
115 check_init();
116 return m_application_name;
117 }

◆ get_data_reader() [1/2]

const dunedaq::appmodel::DataReaderConf * dunedaq::appmodel::CRTReaderApplication::get_data_reader ( ) const
inline

Get "data_reader" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 184 of file CRTReaderApplication.hpp.

185 {
186 std::lock_guard scoped_lock(m_mutex);
187 check();
188 check_init();
189 if (!m_data_reader)
190 {
191 std::ostringstream text;
192 text << "relationship \"" << s_data_reader << "\" of object " << this << " is not set";
193 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
194 }
195 return m_data_reader;
196 }
Generic configuration exception.

◆ get_data_reader() [2/2]

const dunedaq::appmodel::DataReaderConf * dunedaq::appmodel::CRTReaderApplication::get_data_reader ( ) const
inline

Get "data_reader" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 184 of file CRTReaderApplication.hpp.

185 {
186 std::lock_guard scoped_lock(m_mutex);
187 check();
188 check_init();
189 if (!m_data_reader)
190 {
191 std::ostringstream text;
192 text << "relationship \"" << s_data_reader << "\" of object " << this << " is not set";
193 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
194 }
195 return m_data_reader;
196 }

◆ get_data_writers() [1/2]

const std::vector< const dunedaq::appmodel::SocketDataWriterConf * > & dunedaq::appmodel::CRTReaderApplication::get_data_writers ( ) const
inline

Get "data_writers" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 153 of file CRTReaderApplication.hpp.

154 {
155 std::lock_guard scoped_lock(m_mutex);
156 check();
157 check_init();
158 if (m_data_writers.empty())
159 {
160 std::ostringstream text;
161 text << "relationship \"" << s_data_writers << "\" of object " << this << " is empty";
162 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
163 }
164 return m_data_writers;
165 }
std::vector< const dunedaq::appmodel::SocketDataWriterConf * > m_data_writers

◆ get_data_writers() [2/2]

const std::vector< const dunedaq::appmodel::SocketDataWriterConf * > & dunedaq::appmodel::CRTReaderApplication::get_data_writers ( ) const
inline

Get "data_writers" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 153 of file CRTReaderApplication.hpp.

154 {
155 std::lock_guard scoped_lock(m_mutex);
156 check();
157 check_init();
158 if (m_data_writers.empty())
159 {
160 std::ostringstream text;
161 text << "relationship \"" << s_data_writers << "\" of object " << this << " is empty";
162 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
163 }
164 return m_data_writers;
165 }

◆ get_detector_connections() [1/2]

const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > & dunedaq::appmodel::CRTReaderApplication::get_detector_connections ( ) const
inline

Get "detector_connections" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 215 of file CRTReaderApplication.hpp.

216 {
217 std::lock_guard scoped_lock(m_mutex);
218 check();
219 check_init();
221 }
std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > m_detector_connections

◆ get_detector_connections() [2/2]

const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > & dunedaq::appmodel::CRTReaderApplication::get_detector_connections ( ) const
inline

Get "detector_connections" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 215 of file CRTReaderApplication.hpp.

216 {
217 std::lock_guard scoped_lock(m_mutex);
218 check();
219 check_init();
221 }

◆ init() [1/2]

void dunedaq::appmodel::CRTReaderApplication::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.

Definition at line 78 of file CRTReaderApplication.cpp.

79 {
80 ResourceSetDisableAND::init(init_children);
81 SmartDaqApplication::init(init_children);
82
83 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
84
85 try {
90 }
91 catch (dunedaq::conffwk::Exception & ex) {
92 throw_init_ex(ex);
93 }
94 }
virtual void init(bool init_children)
void get(const std::string &name, T &value)
Get value of object's attribute or relationship.
void throw_init_ex(dunedaq::conffwk::Exception &ex)
throw object initialisation exception (i.e.
Definition DalObject.cpp:74
DalRegistry & p_registry
Configuration object.
ConfigObject p_obj
Config object used by given template object.
const T * _ref(ConfigObject &obj, const std::string &name, bool read_children)
Get signle value of object's relation and instantiate result with it (multi-thread safe).

◆ init() [2/2]

virtual void dunedaq::appmodel::CRTReaderApplication::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.

◆ print() [1/2]

void dunedaq::appmodel::CRTReaderApplication::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the CRTReaderApplication object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.

Definition at line 44 of file CRTReaderApplication.cpp.

45 {
46 check_init();
47
48 try {
49 const std::string str(indent+2, ' ');
50
51 if (print_header)
52 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
53
54
55 // print direct super-classes
56
59
60
61 // print direct attributes
62
64
65
66 // print direct relationships
67
71 }
72 catch (dunedaq::conffwk::Exception & ex) {
74 }
75 }
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the SmartDaqApplication object.
void p_hdr(std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
print object headers
Definition DalObject.cpp:65
static void p_error(std::ostream &s, dunedaq::conffwk::Exception &ex)
print error text
Definition DalObject.cpp:59
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the ResourceSetDisableAND object.
void p_sv_rel(std::ostream &s, const std::string &str, const std::string &name, const DalObject *obj)
print weak single-value relationship
void p_mv_rel(std::ostream &s, const std::string &str, const std::string &name, const T &objs) noexcept
print weak multi-value relationship
void p_sv_attr(std::ostream &s, const std::string &str, const std::string &name, const T &val) noexcept
print single-value attribute

◆ print() [2/2]

virtual void dunedaq::appmodel::CRTReaderApplication::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the CRTReaderApplication object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.

◆ set_application_name() [1/2]

void dunedaq::appmodel::CRTReaderApplication::set_application_name ( const std::string & value)
inline

Set "application_name" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 126 of file CRTReaderApplication.hpp.

127 {
128 std::lock_guard scoped_lock(m_mutex);
129 check();
130 clear();
132 }
void set_by_ref(const std::string &name, T &value)
Set attribute value.

◆ set_application_name() [2/2]

void dunedaq::appmodel::CRTReaderApplication::set_application_name ( const std::string & value)
inline

Set "application_name" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 126 of file CRTReaderApplication.hpp.

127 {
128 std::lock_guard scoped_lock(m_mutex);
129 check();
130 clear();
132 }

◆ set_data_reader() [1/2]

void dunedaq::appmodel::CRTReaderApplication::set_data_reader ( const dunedaq::appmodel::DataReaderConf * value)

Set "data_reader" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 137 of file CRTReaderApplication.cpp.

138 {
140 }
void _set_object(const std::string &name, const T *value)
Helper method for generated set single-value relationship methods.

◆ set_data_reader() [2/2]

void dunedaq::appmodel::CRTReaderApplication::set_data_reader ( const dunedaq::appmodel::DataReaderConf * value)

Set "data_reader" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

◆ set_data_writers() [1/2]

void dunedaq::appmodel::CRTReaderApplication::set_data_writers ( const std::vector< const dunedaq::appmodel::SocketDataWriterConf * > & value)

Set "data_writers" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 132 of file CRTReaderApplication.cpp.

133 {
135 }
void _set_objects(const std::string &name, const std::vector< const T * > &value)
Helper method for generated set multi-value relationship methods.

◆ set_data_writers() [2/2]

void dunedaq::appmodel::CRTReaderApplication::set_data_writers ( const std::vector< const dunedaq::appmodel::SocketDataWriterConf * > & value)

Set "data_writers" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

◆ set_detector_connections() [1/2]

void dunedaq::appmodel::CRTReaderApplication::set_detector_connections ( const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > & value)

Set "detector_connections" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 142 of file CRTReaderApplication.cpp.

143 {
145 }

◆ set_detector_connections() [2/2]

void dunedaq::appmodel::CRTReaderApplication::set_detector_connections ( const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > & value)

Set "detector_connections" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 40 of file CRTReaderApplication.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 42 of file CRTReaderApplication.hpp.

◆ conffwk::DalObject

Definition at line 41 of file CRTReaderApplication.hpp.

◆ conffwk::DalRegistry

Definition at line 43 of file CRTReaderApplication.hpp.

Member Data Documentation

◆ m_application_name

std::string dunedaq::appmodel::CRTReaderApplication::m_application_name
private

Definition at line 89 of file CRTReaderApplication.hpp.

◆ m_data_reader

const dunedaq::appmodel::DataReaderConf * dunedaq::appmodel::CRTReaderApplication::m_data_reader
private

Definition at line 91 of file CRTReaderApplication.hpp.

◆ m_data_writers

std::vector< const dunedaq::appmodel::SocketDataWriterConf * > dunedaq::appmodel::CRTReaderApplication::m_data_writers
private

Definition at line 90 of file CRTReaderApplication.hpp.

◆ m_detector_connections

std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > dunedaq::appmodel::CRTReaderApplication::m_detector_connections
private

Definition at line 92 of file CRTReaderApplication.hpp.

◆ s_application_name

static const std::string dunedaq::appmodel::CRTReaderApplication::s_application_name = "application_name"
inlinestatic

Definition at line 99 of file CRTReaderApplication.hpp.

◆ s_class_name

static const std::string & dunedaq::appmodel::CRTReaderApplication::s_class_name
static

The name of the configuration class.

Definition at line 55 of file CRTReaderApplication.hpp.

◆ s_data_reader

static const std::string dunedaq::appmodel::CRTReaderApplication::s_data_reader = "data_reader"
inlinestatic

Definition at line 138 of file CRTReaderApplication.hpp.

◆ s_data_writers

static const std::string dunedaq::appmodel::CRTReaderApplication::s_data_writers = "data_writers"
inlinestatic

Definition at line 137 of file CRTReaderApplication.hpp.

◆ s_detector_connections

static const std::string dunedaq::appmodel::CRTReaderApplication::s_detector_connections = "detector_connections"
inlinestatic

Definition at line 139 of file CRTReaderApplication.hpp.


The documentation for this class was generated from the following files: