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

#include <TRBConf.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TRBConf 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.
 
uint32_t get_tr_queue_timeout () const
 Get "tr_queue_timeout" attribute value.
 
void set_tr_queue_timeout (uint32_t value)
 Set "tr_queue_timeout" attribute value.
 
uint32_t get_request_queue_timeout () const
 Get "request_queue_timeout" attribute value.
 
void set_request_queue_timeout (uint32_t value)
 Set "request_queue_timeout" attribute value.
 
uint32_t get_trigger_record_timeout_ms () const
 Get "trigger_record_timeout_ms" attribute value.
 
void set_trigger_record_timeout_ms (uint32_t value)
 Set "trigger_record_timeout_ms" attribute value.
 
int64_t get_max_sequence_length_ticks () const
 Get "max_sequence_length_ticks" attribute value.
 
void set_max_sequence_length_ticks (int64_t value)
 Set "max_sequence_length_ticks" attribute value.
 
uint32_t get_source_id () const
 Get "source_id" attribute value.
 
void set_source_id (uint32_t value)
 Set "source_id" attribute value.
 
uint32_t get_maximum_open_trigger_records () const
 Get "maximum_open_trigger_records" attribute value.
 
void set_maximum_open_trigger_records (uint32_t value)
 Set "maximum_open_trigger_records" attribute value.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TRBConf 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.
 
uint32_t get_tr_queue_timeout () const
 Get "tr_queue_timeout" attribute value.
 
void set_tr_queue_timeout (uint32_t value)
 Set "tr_queue_timeout" attribute value.
 
uint32_t get_request_queue_timeout () const
 Get "request_queue_timeout" attribute value.
 
void set_request_queue_timeout (uint32_t value)
 Set "request_queue_timeout" attribute value.
 
uint32_t get_trigger_record_timeout_ms () const
 Get "trigger_record_timeout_ms" attribute value.
 
void set_trigger_record_timeout_ms (uint32_t value)
 Set "trigger_record_timeout_ms" attribute value.
 
int64_t get_max_sequence_length_ticks () const
 Get "max_sequence_length_ticks" attribute value.
 
void set_max_sequence_length_ticks (int64_t value)
 Set "max_sequence_length_ticks" attribute value.
 
uint32_t get_source_id () const
 Get "source_id" attribute value.
 
void set_source_id (uint32_t value)
 Set "source_id" attribute value.
 
uint32_t get_maximum_open_trigger_records () const
 Get "maximum_open_trigger_records" attribute value.
 
void set_maximum_open_trigger_records (uint32_t value)
 Set "maximum_open_trigger_records" attribute value.
 
- 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.
 

Static Public Member Functions

static const std::string & __get_tr_queue_timeout_str () noexcept
 
static const std::string & __get_request_queue_timeout_str () noexcept
 
static const std::string & __get_trigger_record_timeout_ms_str () noexcept
 
static const std::string & __get_max_sequence_length_ticks_str () noexcept
 
static const std::string & __get_source_id_str () noexcept
 
static const std::string & __get_maximum_open_trigger_records_str () noexcept
 
static const std::string & __get_tr_queue_timeout_str () noexcept
 
static const std::string & __get_request_queue_timeout_str () noexcept
 
static const std::string & __get_trigger_record_timeout_ms_str () noexcept
 
static const std::string & __get_max_sequence_length_ticks_str () noexcept
 
static const std::string & __get_source_id_str () noexcept
 
static const std::string & __get_maximum_open_trigger_records_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 Attributes

static const std::string & s_class_name
 
static const std::string s_tr_queue_timeout = "tr_queue_timeout"
 
static const std::string s_request_queue_timeout = "request_queue_timeout"
 
static const std::string s_trigger_record_timeout_ms = "trigger_record_timeout_ms"
 
static const std::string s_max_sequence_length_ticks = "max_sequence_length_ticks"
 
static const std::string s_source_id = "source_id"
 
static const std::string s_maximum_open_trigger_records = "maximum_open_trigger_records"
 

Protected Member Functions

 TRBConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TRBConf () 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
 
 TRBConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TRBConf () 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::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.
 

Private Attributes

uint32_t m_tr_queue_timeout
 
uint32_t m_request_queue_timeout
 
uint32_t m_trigger_record_timeout_ms
 
int64_t m_max_sequence_length_ticks
 
uint32_t m_source_id
 
uint32_t m_maximum_open_trigger_records
 

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 20 of file TRBConf.hpp.

Constructor & Destructor Documentation

◆ TRBConf() [1/2]

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

Definition at line 26 of file TRBConf.cpp.

26 :
28 {
29 ;
30 }
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~TRBConf() [1/2]

dunedaq::appmodel::TRBConf::~TRBConf ( )
protectedvirtualnoexcept

Definition at line 78 of file TRBConf.cpp.

79 {
80 }

◆ TRBConf() [2/2]

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

◆ ~TRBConf() [2/2]

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

Member Function Documentation

◆ __get_max_sequence_length_ticks_str() [1/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_max_sequence_length_ticks_str ( )
inlinestaticnoexcept

Definition at line 93 of file TRBConf.hpp.

static const std::string s_max_sequence_length_ticks
Definition TRBConf.hpp:86

◆ __get_max_sequence_length_ticks_str() [2/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_max_sequence_length_ticks_str ( )
inlinestaticnoexcept

Definition at line 93 of file TRBConf.hpp.

◆ __get_maximum_open_trigger_records_str() [1/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_maximum_open_trigger_records_str ( )
inlinestaticnoexcept

Definition at line 95 of file TRBConf.hpp.

static const std::string s_maximum_open_trigger_records
Definition TRBConf.hpp:88

◆ __get_maximum_open_trigger_records_str() [2/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_maximum_open_trigger_records_str ( )
inlinestaticnoexcept

Definition at line 95 of file TRBConf.hpp.

◆ __get_request_queue_timeout_str() [1/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_request_queue_timeout_str ( )
inlinestaticnoexcept

Definition at line 91 of file TRBConf.hpp.

static const std::string s_request_queue_timeout
Definition TRBConf.hpp:84

◆ __get_request_queue_timeout_str() [2/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_request_queue_timeout_str ( )
inlinestaticnoexcept

Definition at line 91 of file TRBConf.hpp.

◆ __get_source_id_str() [1/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_source_id_str ( )
inlinestaticnoexcept

Definition at line 94 of file TRBConf.hpp.

94{ return s_source_id; }
static const std::string s_source_id
Definition TRBConf.hpp:87

◆ __get_source_id_str() [2/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_source_id_str ( )
inlinestaticnoexcept

Definition at line 94 of file TRBConf.hpp.

94{ return s_source_id; }

◆ __get_tr_queue_timeout_str() [1/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_tr_queue_timeout_str ( )
inlinestaticnoexcept

Definition at line 90 of file TRBConf.hpp.

90{ return s_tr_queue_timeout; }
static const std::string s_tr_queue_timeout
Definition TRBConf.hpp:83

◆ __get_tr_queue_timeout_str() [2/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_tr_queue_timeout_str ( )
inlinestaticnoexcept

Definition at line 90 of file TRBConf.hpp.

90{ return s_tr_queue_timeout; }

◆ __get_trigger_record_timeout_ms_str() [1/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_trigger_record_timeout_ms_str ( )
inlinestaticnoexcept

Definition at line 92 of file TRBConf.hpp.

static const std::string s_trigger_record_timeout_ms
Definition TRBConf.hpp:85

◆ __get_trigger_record_timeout_ms_str() [2/2]

static const std::string & dunedaq::appmodel::TRBConf::__get_trigger_record_timeout_ms_str ( )
inlinestaticnoexcept

Definition at line 92 of file TRBConf.hpp.

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::TRBConf::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

Implements dunedaq::conffwk::DalObject.

Definition at line 82 of file TRBConf.cpp.

83 {
84 std::vector<const dunedaq::conffwk::DalObject *> vec;
85
86 if (!get(name, vec, upcast_unregistered, true))
87 throw_get_ex(name, s_class_name, this);
88
89 return vec;
90 }
static const std::string & s_class_name
Definition TRBConf.hpp:37
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...
Definition TRBConf.cpp:82
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::TRBConf::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

Implements dunedaq::conffwk::DalObject.

◆ get() [3/4]

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

Definition at line 92 of file TRBConf.cpp.

93 {
94 if (first_call)
95 {
96 std::lock_guard scoped_lock(m_mutex);
97
98 check();
99 check_init();
100
101 if (get_rel_objects(name, upcast_unregistered, vec))
102 return true;
103 }
104
105 if (first_call)
106 return get_algo_objects(name, vec);
107
108 return false;
109 }
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::TRBConf::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_max_sequence_length_ticks() [1/2]

int64_t dunedaq::appmodel::TRBConf::get_max_sequence_length_ticks ( ) const
inline

Get "max_sequence_length_ticks" attribute value.

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

Definition at line 198 of file TRBConf.hpp.

199 {
200 std::lock_guard scoped_lock(m_mutex);
201 check();
202 check_init();
204 }
int64_t m_max_sequence_length_ticks
Definition TRBConf.hpp:74

◆ get_max_sequence_length_ticks() [2/2]

int64_t dunedaq::appmodel::TRBConf::get_max_sequence_length_ticks ( ) const
inline

Get "max_sequence_length_ticks" attribute value.

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

Definition at line 198 of file TRBConf.hpp.

199 {
200 std::lock_guard scoped_lock(m_mutex);
201 check();
202 check_init();
204 }

◆ get_maximum_open_trigger_records() [1/2]

uint32_t dunedaq::appmodel::TRBConf::get_maximum_open_trigger_records ( ) const
inline

Get "maximum_open_trigger_records" attribute value.

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

Definition at line 260 of file TRBConf.hpp.

261 {
262 std::lock_guard scoped_lock(m_mutex);
263 check();
264 check_init();
266 }
uint32_t m_maximum_open_trigger_records
Definition TRBConf.hpp:76

◆ get_maximum_open_trigger_records() [2/2]

uint32_t dunedaq::appmodel::TRBConf::get_maximum_open_trigger_records ( ) const
inline

Get "maximum_open_trigger_records" attribute value.

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

Definition at line 260 of file TRBConf.hpp.

261 {
262 std::lock_guard scoped_lock(m_mutex);
263 check();
264 check_init();
266 }

◆ get_request_queue_timeout() [1/2]

uint32_t dunedaq::appmodel::TRBConf::get_request_queue_timeout ( ) const
inline

Get "request_queue_timeout" attribute value.

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

Definition at line 136 of file TRBConf.hpp.

137 {
138 std::lock_guard scoped_lock(m_mutex);
139 check();
140 check_init();
142 }

◆ get_request_queue_timeout() [2/2]

uint32_t dunedaq::appmodel::TRBConf::get_request_queue_timeout ( ) const
inline

Get "request_queue_timeout" attribute value.

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

Definition at line 136 of file TRBConf.hpp.

137 {
138 std::lock_guard scoped_lock(m_mutex);
139 check();
140 check_init();
142 }

◆ get_source_id() [1/2]

uint32_t dunedaq::appmodel::TRBConf::get_source_id ( ) const
inline

Get "source_id" attribute value.

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

Definition at line 229 of file TRBConf.hpp.

230 {
231 std::lock_guard scoped_lock(m_mutex);
232 check();
233 check_init();
234 return m_source_id;
235 }

◆ get_source_id() [2/2]

uint32_t dunedaq::appmodel::TRBConf::get_source_id ( ) const
inline

Get "source_id" attribute value.

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

Definition at line 229 of file TRBConf.hpp.

230 {
231 std::lock_guard scoped_lock(m_mutex);
232 check();
233 check_init();
234 return m_source_id;
235 }

◆ get_tr_queue_timeout() [1/2]

uint32_t dunedaq::appmodel::TRBConf::get_tr_queue_timeout ( ) const
inline

Get "tr_queue_timeout" attribute value.

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

Definition at line 105 of file TRBConf.hpp.

106 {
107 std::lock_guard scoped_lock(m_mutex);
108 check();
109 check_init();
110 return m_tr_queue_timeout;
111 }

◆ get_tr_queue_timeout() [2/2]

uint32_t dunedaq::appmodel::TRBConf::get_tr_queue_timeout ( ) const
inline

Get "tr_queue_timeout" attribute value.

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

Definition at line 105 of file TRBConf.hpp.

106 {
107 std::lock_guard scoped_lock(m_mutex);
108 check();
109 check_init();
110 return m_tr_queue_timeout;
111 }

◆ get_trigger_record_timeout_ms() [1/2]

uint32_t dunedaq::appmodel::TRBConf::get_trigger_record_timeout_ms ( ) const
inline

Get "trigger_record_timeout_ms" attribute value.

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

Definition at line 167 of file TRBConf.hpp.

168 {
169 std::lock_guard scoped_lock(m_mutex);
170 check();
171 check_init();
173 }
uint32_t m_trigger_record_timeout_ms
Definition TRBConf.hpp:73

◆ get_trigger_record_timeout_ms() [2/2]

uint32_t dunedaq::appmodel::TRBConf::get_trigger_record_timeout_ms ( ) const
inline

Get "trigger_record_timeout_ms" attribute value.

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

Definition at line 167 of file TRBConf.hpp.

168 {
169 std::lock_guard scoped_lock(m_mutex);
170 check();
171 check_init();
173 }

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Implements dunedaq::conffwk::DalObject.

Definition at line 59 of file TRBConf.cpp.

60 {
61 p_was_read = true;
63 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
64
65 try {
72 }
73 catch (dunedaq::conffwk::Exception & ex) {
74 throw_init_ex(ex);
75 }
76 }
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
void increment_read() noexcept
bool p_was_read
is true, if the object was read
ConfigObject p_obj
Config object used by given template object.
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Implements dunedaq::conffwk::DalObject.

◆ print() [1/2]

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

Print details of the TRBConf 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

Implements dunedaq::conffwk::DalObject.

Definition at line 33 of file TRBConf.cpp.

34 {
35 check_init();
36
37 try {
38 const std::string str(indent+2, ' ');
39
40 if (print_header)
41 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
42
43
44 // print direct attributes
45
52 }
53 catch (dunedaq::conffwk::Exception & ex) {
55 }
56 }
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
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::TRBConf::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the TRBConf 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

Implements dunedaq::conffwk::DalObject.

◆ set_max_sequence_length_ticks() [1/2]

void dunedaq::appmodel::TRBConf::set_max_sequence_length_ticks ( int64_t value)
inline

Set "max_sequence_length_ticks" attribute value.

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

Definition at line 213 of file TRBConf.hpp.

214 {
215 std::lock_guard scoped_lock(m_mutex);
216 check();
217 clear();
219 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_max_sequence_length_ticks() [2/2]

void dunedaq::appmodel::TRBConf::set_max_sequence_length_ticks ( int64_t value)
inline

Set "max_sequence_length_ticks" attribute value.

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

Definition at line 213 of file TRBConf.hpp.

214 {
215 std::lock_guard scoped_lock(m_mutex);
216 check();
217 clear();
219 }

◆ set_maximum_open_trigger_records() [1/2]

void dunedaq::appmodel::TRBConf::set_maximum_open_trigger_records ( uint32_t value)
inline

Set "maximum_open_trigger_records" attribute value.

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

Definition at line 275 of file TRBConf.hpp.

276 {
277 std::lock_guard scoped_lock(m_mutex);
278 check();
279 clear();
281 }

◆ set_maximum_open_trigger_records() [2/2]

void dunedaq::appmodel::TRBConf::set_maximum_open_trigger_records ( uint32_t value)
inline

Set "maximum_open_trigger_records" attribute value.

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

Definition at line 275 of file TRBConf.hpp.

276 {
277 std::lock_guard scoped_lock(m_mutex);
278 check();
279 clear();
281 }

◆ set_request_queue_timeout() [1/2]

void dunedaq::appmodel::TRBConf::set_request_queue_timeout ( uint32_t value)
inline

Set "request_queue_timeout" attribute value.

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

Definition at line 151 of file TRBConf.hpp.

152 {
153 std::lock_guard scoped_lock(m_mutex);
154 check();
155 clear();
157 }

◆ set_request_queue_timeout() [2/2]

void dunedaq::appmodel::TRBConf::set_request_queue_timeout ( uint32_t value)
inline

Set "request_queue_timeout" attribute value.

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

Definition at line 151 of file TRBConf.hpp.

152 {
153 std::lock_guard scoped_lock(m_mutex);
154 check();
155 clear();
157 }

◆ set_source_id() [1/2]

void dunedaq::appmodel::TRBConf::set_source_id ( uint32_t value)
inline

Set "source_id" attribute value.

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

Definition at line 244 of file TRBConf.hpp.

245 {
246 std::lock_guard scoped_lock(m_mutex);
247 check();
248 clear();
250 }

◆ set_source_id() [2/2]

void dunedaq::appmodel::TRBConf::set_source_id ( uint32_t value)
inline

Set "source_id" attribute value.

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

Definition at line 244 of file TRBConf.hpp.

245 {
246 std::lock_guard scoped_lock(m_mutex);
247 check();
248 clear();
250 }

◆ set_tr_queue_timeout() [1/2]

void dunedaq::appmodel::TRBConf::set_tr_queue_timeout ( uint32_t value)
inline

Set "tr_queue_timeout" attribute value.

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

Definition at line 120 of file TRBConf.hpp.

121 {
122 std::lock_guard scoped_lock(m_mutex);
123 check();
124 clear();
126 }

◆ set_tr_queue_timeout() [2/2]

void dunedaq::appmodel::TRBConf::set_tr_queue_timeout ( uint32_t value)
inline

Set "tr_queue_timeout" attribute value.

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

Definition at line 120 of file TRBConf.hpp.

121 {
122 std::lock_guard scoped_lock(m_mutex);
123 check();
124 clear();
126 }

◆ set_trigger_record_timeout_ms() [1/2]

void dunedaq::appmodel::TRBConf::set_trigger_record_timeout_ms ( uint32_t value)
inline

Set "trigger_record_timeout_ms" attribute value.

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

Definition at line 182 of file TRBConf.hpp.

183 {
184 std::lock_guard scoped_lock(m_mutex);
185 check();
186 clear();
188 }

◆ set_trigger_record_timeout_ms() [2/2]

void dunedaq::appmodel::TRBConf::set_trigger_record_timeout_ms ( uint32_t value)
inline

Set "trigger_record_timeout_ms" attribute value.

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

Definition at line 182 of file TRBConf.hpp.

183 {
184 std::lock_guard scoped_lock(m_mutex);
185 check();
186 clear();
188 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 22 of file TRBConf.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 24 of file TRBConf.hpp.

◆ conffwk::DalObject

Definition at line 23 of file TRBConf.hpp.

◆ conffwk::DalRegistry

Definition at line 25 of file TRBConf.hpp.

Member Data Documentation

◆ m_max_sequence_length_ticks

int64_t dunedaq::appmodel::TRBConf::m_max_sequence_length_ticks
private

Definition at line 74 of file TRBConf.hpp.

◆ m_maximum_open_trigger_records

uint32_t dunedaq::appmodel::TRBConf::m_maximum_open_trigger_records
private

Definition at line 76 of file TRBConf.hpp.

◆ m_request_queue_timeout

uint32_t dunedaq::appmodel::TRBConf::m_request_queue_timeout
private

Definition at line 72 of file TRBConf.hpp.

◆ m_source_id

uint32_t dunedaq::appmodel::TRBConf::m_source_id
private

Definition at line 75 of file TRBConf.hpp.

◆ m_tr_queue_timeout

uint32_t dunedaq::appmodel::TRBConf::m_tr_queue_timeout
private

Definition at line 71 of file TRBConf.hpp.

◆ m_trigger_record_timeout_ms

uint32_t dunedaq::appmodel::TRBConf::m_trigger_record_timeout_ms
private

Definition at line 73 of file TRBConf.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 37 of file TRBConf.hpp.

◆ s_max_sequence_length_ticks

static const std::string dunedaq::appmodel::TRBConf::s_max_sequence_length_ticks = "max_sequence_length_ticks"
inlinestatic

Definition at line 86 of file TRBConf.hpp.

◆ s_maximum_open_trigger_records

static const std::string dunedaq::appmodel::TRBConf::s_maximum_open_trigger_records = "maximum_open_trigger_records"
inlinestatic

Definition at line 88 of file TRBConf.hpp.

◆ s_request_queue_timeout

static const std::string dunedaq::appmodel::TRBConf::s_request_queue_timeout = "request_queue_timeout"
inlinestatic

Definition at line 84 of file TRBConf.hpp.

◆ s_source_id

static const std::string dunedaq::appmodel::TRBConf::s_source_id = "source_id"
inlinestatic

Definition at line 87 of file TRBConf.hpp.

◆ s_tr_queue_timeout

static const std::string dunedaq::appmodel::TRBConf::s_tr_queue_timeout = "tr_queue_timeout"
inlinestatic

Definition at line 83 of file TRBConf.hpp.

◆ s_trigger_record_timeout_ms

static const std::string dunedaq::appmodel::TRBConf::s_trigger_record_timeout_ms = "trigger_record_timeout_ms"
inlinestatic

Definition at line 85 of file TRBConf.hpp.


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