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.
 
const dunedaq::appmodel::DataMoveCallbackDescriptorget_callback_desc () const
 Get "callback_desc" relationship value.
 
void set_callback_desc (const dunedaq::appmodel::DataMoveCallbackDescriptor *value)
 Set "callback_desc" relationship value.
 
void generate_modules (std::shared_ptr< appmodel::ConfigurationHelper >) 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.
 
const dunedaq::appmodel::DataMoveCallbackDescriptorget_callback_desc () const
 Get "callback_desc" relationship value.
 
void set_callback_desc (const dunedaq::appmodel::DataMoveCallbackDescriptor *value)
 Set "callback_desc" relationship value.
 
void generate_modules (std::shared_ptr< appmodel::ConfigurationHelper >) 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_callback_desc_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 const std::string & __get_callback_desc_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 const std::string s_callback_desc = "callback_desc"
 
- 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
 
const dunedaq::appmodel::DataMoveCallbackDescriptorm_callback_desc
 

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 34 of file CRTReaderApplication.cpp.

34 :
38 m_data_reader (nullptr),
39 m_callback_desc (nullptr)
40
41 {
42 ;
43 }
const dunedaq::appmodel::DataMoveCallbackDescriptor * m_callback_desc
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 100 of file CRTReaderApplication.cpp.

101 {
102 }

◆ 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 102 of file CRTReaderApplication.hpp.

102{ 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 102 of file CRTReaderApplication.hpp.

102{ return s_application_name; }

◆ __get_callback_desc_str() [1/2]

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

Definition at line 146 of file CRTReaderApplication.hpp.

146{ return s_callback_desc; }

◆ __get_callback_desc_str() [2/2]

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

Definition at line 146 of file CRTReaderApplication.hpp.

146{ return s_callback_desc; }

◆ __get_data_reader_str() [1/2]

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

Definition at line 144 of file CRTReaderApplication.hpp.

144{ 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 144 of file CRTReaderApplication.hpp.

144{ 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 143 of file CRTReaderApplication.hpp.

143{ 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 143 of file CRTReaderApplication.hpp.

143{ 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 145 of file CRTReaderApplication.hpp.

145{ 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 145 of file CRTReaderApplication.hpp.

145{ 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 38 of file CRTReaderApplication.cpp.

38 {
40}
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 ( std::shared_ptr< appmodel::ConfigurationHelper > helper) const
overridevirtual

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

Implements dunedaq::appmodel::SmartDaqApplication.

Definition at line 43 of file CRTReaderApplication.cpp.

44{
45
46 TLOG_DEBUG(6) << "Generating modules for application " << this->UID();
47
48 std::vector<const confmodel::DaqModule*> modules;
49
50 ConfigObjectFactory obj_fac(this);
51
52 //
53 // Extract basic configuration objects
54 //
55
56 // Data reader
57 const auto reader_conf = get_data_reader();
58 if (reader_conf == 0) {
59 throw(BadConf(ERS_HERE, "No DataReaderModule configuration given"));
60 }
61 const std::string reader_class = reader_conf->get_template_for();
62
63 // Data writers
64 const auto writer_confs = get_data_writers();
65 if (writer_confs.size() == 0) {
66 throw(BadConf(ERS_HERE, "No DataWriterModule configuration given"));
67 }
68
69 //
70 // Get the callback descriptor
71 //
72 const DataMoveCallbackDescriptor* raw_data_callback_desc = get_callback_desc();
73
74 if (raw_data_callback_desc == nullptr) {
75 throw(BadConf(ERS_HERE, "No Raw Data Callback descriptor given"));
76 }
77
78 //
79 // Scan Detector 2 DAQ connections to extract sender, receiver and stream information
80 //
81
82 // Loop over the detector to daq connections and generate one data reader per connection
83
84 // Collect all streams
85 std::map<uint32_t, const appmodel::DataMoveCallbackConf*> callback_confs_by_sid;
86
87 uint16_t conn_idx = 0;
88
89 for (auto d2d_conn : get_detector_connections()) {
90
91 // Are we sure?
92 if (helper->is_disabled(d2d_conn)) {
93 TLOG_DEBUG(7) << "Ignoring disabled DetectorToDaqConnection " << d2d_conn->UID();
94 continue;
95 }
96
97 TLOG_DEBUG(6) << "Processing DetectorToDaqConnection " << d2d_conn->UID();
98 // get the readout groups and the interfaces and streams therein; 1 reaout group corresponds to 1 data reader module
99
100 std::vector<const confmodel::DetectorStream*> enabled_det_streams;
101 // Loop over streams
102 for (auto stream : d2d_conn->streams()) {
103
104 // Are we sure?
105 if (helper->is_disabled(stream)) {
106 TLOG_DEBUG(7) << "Ignoring disabled DetectorStream " << stream->UID();
107 continue;
108 }
109
110 enabled_det_streams.push_back(stream);
111 }
112
113 // Create the raw data callbacks
114 std::vector<const conffwk::ConfigObject*> raw_data_callback_objs;
115
116 // Create data queues
117 for (auto ds : enabled_det_streams) {
118 conffwk::ConfigObject callback_obj = obj_fac.create_callback_sid_obj(raw_data_callback_desc, ds->get_source_id());
119 const auto* callback_conf = obj_fac.get_dal<DataMoveCallbackConf>(callback_obj.UID());
120 raw_data_callback_objs.push_back(&callback_conf->config_object());
121 callback_confs_by_sid[ds->get_source_id()] = callback_conf;
122 }
123
124 //-----------------------------------------------------------------
125 //
126 // Create DataReaderModule object
127 //
128
129 //
130 // Instantiate DataReaderModule of type CRTBernReaderModule/CRTGrenobleReaderModule
131 //
132
133 // Create the Data reader object
134
135 std::string reader_uid(fmt::format("crtdatareader-{}-{}", this->UID(), std::to_string(conn_idx++)));
136 TLOG_DEBUG(6) << fmt::format("creating OKS configuration object for Data reader class {} with id {}", reader_class, reader_uid);
137 auto reader_obj = obj_fac.create(reader_class, reader_uid);
138
139 // Populate configuration and interfaces (leave output queues for later)
140 reader_obj.set_obj("configuration", &reader_conf->config_object());
141 reader_obj.set_objs("connections", { &d2d_conn->config_object() });
142 reader_obj.set_objs("raw_data_callbacks", raw_data_callback_objs);
143
144 modules.push_back(obj_fac.get_dal<confmodel::DaqModule>(reader_obj.UID()));
145
146 //-----------------------------------------------------------------
147 //
148 // Create DataWriterModule objects
149 //
150
151 //
152 // Instantiate DataWriterModule of type SocketWriterModule
153 //
154
155 // Create the SocketWriterModule objects
156
157 conn_idx = 0;
158
159 for (const auto writer_conf : writer_confs) {
160
161 const std::string writer_class = writer_conf->get_template_for();
162
163 std::string writer_uid(fmt::format("socketdatawriter-{}-{}", this->UID(), std::to_string(conn_idx++)));
164 TLOG_DEBUG(6) << fmt::format(
165 "Creating OKS configuration object for socket data writer class {} with id {}", writer_class, writer_uid);
166 auto writer_obj = obj_fac.create(writer_class, writer_uid);
167
168 // Populate configuration and interfaces
169 writer_obj.set_obj("configuration", &writer_conf->config_object());
170 writer_obj.set_objs("connections", {&d2d_conn->config_object()});
171
172 modules.push_back(obj_fac.get_dal<confmodel::DaqModule>(writer_obj.UID()));
173 }
174 }
175
176 obj_fac.update_modules(modules);
177}
#define ERS_HERE
const dunedaq::appmodel::DataReaderConf * get_data_reader() const
Get "data_reader" relationship value.
const dunedaq::appmodel::DataMoveCallbackDescriptor * get_callback_desc() const
Get "callback_desc" relationship value.
const std::vector< const dunedaq::appmodel::SocketDataWriterConf * > & get_data_writers() const
Get "data_writers" 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 ( std::shared_ptr< appmodel::ConfigurationHelper > ) 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 104 of file CRTReaderApplication.cpp.

105 {
106 std::vector<const dunedaq::conffwk::DalObject *> vec;
107
108 if (!get(name, vec, upcast_unregistered, true))
109 throw_get_ex(name, s_class_name, this);
110
111 return vec;
112 }
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 114 of file CRTReaderApplication.cpp.

115 {
116 if (first_call)
117 {
118 std::lock_guard scoped_lock(m_mutex);
119
120 check();
121 check_init();
122
123 if (get_rel_objects(name, upcast_unregistered, vec))
124 return true;
125 }
126
127 if (ResourceSetDisableAND::get(name, vec, upcast_unregistered, false)) return true;
128 if (SmartDaqApplication::get(name, vec, upcast_unregistered, false)) return true;
129
130 if (first_call)
131 return get_algo_objects(name, vec);
132
133 return false;
134 }
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 112 of file CRTReaderApplication.hpp.

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

◆ 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 112 of file CRTReaderApplication.hpp.

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

◆ get_callback_desc() [1/2]

const dunedaq::appmodel::DataMoveCallbackDescriptor * dunedaq::appmodel::CRTReaderApplication::get_callback_desc ( ) const
inline

Get "callback_desc" relationship value.

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

Definition at line 243 of file CRTReaderApplication.hpp.

244 {
245 std::lock_guard scoped_lock(m_mutex);
246 check();
247 check_init();
248 if (!m_callback_desc)
249 {
250 std::ostringstream text;
251 text << "relationship \"" << s_callback_desc << "\" of object " << this << " is not set";
252 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
253 }
254 return m_callback_desc;
255 }
Generic configuration exception.

◆ get_callback_desc() [2/2]

const dunedaq::appmodel::DataMoveCallbackDescriptor * dunedaq::appmodel::CRTReaderApplication::get_callback_desc ( ) const
inline

Get "callback_desc" relationship value.

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

Definition at line 243 of file CRTReaderApplication.hpp.

244 {
245 std::lock_guard scoped_lock(m_mutex);
246 check();
247 check_init();
248 if (!m_callback_desc)
249 {
250 std::ostringstream text;
251 text << "relationship \"" << s_callback_desc << "\" of object " << this << " is not set";
252 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
253 }
254 return m_callback_desc;
255 }

◆ 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 187 of file CRTReaderApplication.hpp.

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

◆ 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 187 of file CRTReaderApplication.hpp.

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

◆ 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 156 of file CRTReaderApplication.hpp.

157 {
158 std::lock_guard scoped_lock(m_mutex);
159 check();
160 check_init();
161 if (m_data_writers.empty())
162 {
163 std::ostringstream text;
164 text << "relationship \"" << s_data_writers << "\" of object " << this << " is empty";
165 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
166 }
167 return m_data_writers;
168 }
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 156 of file CRTReaderApplication.hpp.

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

◆ 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 218 of file CRTReaderApplication.hpp.

219 {
220 std::lock_guard scoped_lock(m_mutex);
221 check();
222 check_init();
224 }
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 218 of file CRTReaderApplication.hpp.

219 {
220 std::lock_guard scoped_lock(m_mutex);
221 check();
222 check_init();
224 }

◆ 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 81 of file CRTReaderApplication.cpp.

82 {
83 ResourceSetDisableAND::init(init_children);
84 SmartDaqApplication::init(init_children);
85
86 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
87
88 try {
94 }
95 catch (dunedaq::conffwk::Exception & ex) {
96 throw_init_ex(ex);
97 }
98 }
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 46 of file CRTReaderApplication.cpp.

47 {
48 check_init();
49
50 try {
51 const std::string str(indent+2, ' ');
52
53 if (print_header)
54 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
55
56
57 // print direct super-classes
58
61
62
63 // print direct attributes
64
66
67
68 // print direct relationships
69
74 }
75 catch (dunedaq::conffwk::Exception & ex) {
77 }
78 }
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 127 of file CRTReaderApplication.hpp.

128 {
129 std::lock_guard scoped_lock(m_mutex);
130 check();
131 clear();
133 }
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 127 of file CRTReaderApplication.hpp.

128 {
129 std::lock_guard scoped_lock(m_mutex);
130 check();
131 clear();
133 }

◆ set_callback_desc() [1/2]

void dunedaq::appmodel::CRTReaderApplication::set_callback_desc ( const dunedaq::appmodel::DataMoveCallbackDescriptor * value)

Set "callback_desc" relationship value.

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

Definition at line 151 of file CRTReaderApplication.cpp.

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

◆ set_callback_desc() [2/2]

void dunedaq::appmodel::CRTReaderApplication::set_callback_desc ( const dunedaq::appmodel::DataMoveCallbackDescriptor * value)

Set "callback_desc" relationship value.

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

◆ 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 141 of file CRTReaderApplication.cpp.

142 {
144 }

◆ 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 136 of file CRTReaderApplication.cpp.

137 {
139 }
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 146 of file CRTReaderApplication.cpp.

147 {
149 }

◆ 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_callback_desc

const dunedaq::appmodel::DataMoveCallbackDescriptor * dunedaq::appmodel::CRTReaderApplication::m_callback_desc
private

Definition at line 93 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 100 of file CRTReaderApplication.hpp.

◆ s_callback_desc

static const std::string dunedaq::appmodel::CRTReaderApplication::s_callback_desc = "callback_desc"
inlinestatic

Definition at line 141 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 139 of file CRTReaderApplication.hpp.

◆ s_data_writers

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

Definition at line 138 of file CRTReaderApplication.hpp.

◆ s_detector_connections

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

Definition at line 140 of file CRTReaderApplication.hpp.


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