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

#include <DataWriterConf.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the DataWriterConf 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.
 
int32_t get_data_storage_prescale () const
 Get "data_storage_prescale" attribute value.
 
void set_data_storage_prescale (int32_t value)
 Set "data_storage_prescale" attribute value.
 
int32_t get_min_write_retry_time_ms () const
 Get "min_write_retry_time_ms" attribute value.
 
void set_min_write_retry_time_ms (int32_t value)
 Set "min_write_retry_time_ms" attribute value.
 
int32_t get_max_write_retry_time_ms () const
 Get "max_write_retry_time_ms" attribute value.
 
void set_max_write_retry_time_ms (int32_t value)
 Set "max_write_retry_time_ms" attribute value.
 
int32_t get_write_retry_time_increase_factor () const
 Get "write_retry_time_increase_factor" attribute value.
 
void set_write_retry_time_increase_factor (int32_t value)
 Set "write_retry_time_increase_factor" attribute value.
 
const dunedaq::appmodel::DataStoreConfget_data_store_params () const
 Get "data_store_params" relationship value.
 
void set_data_store_params (const dunedaq::appmodel::DataStoreConf *value)
 Set "data_store_params" relationship value.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the DataWriterConf 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.
 
int32_t get_data_storage_prescale () const
 Get "data_storage_prescale" attribute value.
 
void set_data_storage_prescale (int32_t value)
 Set "data_storage_prescale" attribute value.
 
int32_t get_min_write_retry_time_ms () const
 Get "min_write_retry_time_ms" attribute value.
 
void set_min_write_retry_time_ms (int32_t value)
 Set "min_write_retry_time_ms" attribute value.
 
int32_t get_max_write_retry_time_ms () const
 Get "max_write_retry_time_ms" attribute value.
 
void set_max_write_retry_time_ms (int32_t value)
 Set "max_write_retry_time_ms" attribute value.
 
int32_t get_write_retry_time_increase_factor () const
 Get "write_retry_time_increase_factor" attribute value.
 
void set_write_retry_time_increase_factor (int32_t value)
 Set "write_retry_time_increase_factor" attribute value.
 
const dunedaq::appmodel::DataStoreConfget_data_store_params () const
 Get "data_store_params" relationship value.
 
void set_data_store_params (const dunedaq::appmodel::DataStoreConf *value)
 Set "data_store_params" relationship 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_data_storage_prescale_str () noexcept
 
static const std::string & __get_min_write_retry_time_ms_str () noexcept
 
static const std::string & __get_max_write_retry_time_ms_str () noexcept
 
static const std::string & __get_write_retry_time_increase_factor_str () noexcept
 
static const std::string & __get_data_store_params_str () noexcept
 
static const std::string & __get_data_storage_prescale_str () noexcept
 
static const std::string & __get_min_write_retry_time_ms_str () noexcept
 
static const std::string & __get_max_write_retry_time_ms_str () noexcept
 
static const std::string & __get_write_retry_time_increase_factor_str () noexcept
 
static const std::string & __get_data_store_params_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_data_storage_prescale = "data_storage_prescale"
 
static const std::string s_min_write_retry_time_ms = "min_write_retry_time_ms"
 
static const std::string s_max_write_retry_time_ms = "max_write_retry_time_ms"
 
static const std::string s_write_retry_time_increase_factor = "write_retry_time_increase_factor"
 
static const std::string s_data_store_params = "data_store_params"
 

Protected Member Functions

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

int32_t m_data_storage_prescale
 
int32_t m_min_write_retry_time_ms
 
int32_t m_max_write_retry_time_ms
 
int32_t m_write_retry_time_increase_factor
 
const dunedaq::appmodel::DataStoreConfm_data_store_params
 

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 29 of file DataWriterConf.hpp.

Constructor & Destructor Documentation

◆ DataWriterConf() [1/2]

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

Definition at line 31 of file DataWriterConf.cpp.

31 :
33 m_data_store_params (nullptr)
34
35 {
36 ;
37 }
const dunedaq::appmodel::DataStoreConf * m_data_store_params
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~DataWriterConf() [1/2]

dunedaq::appmodel::DataWriterConf::~DataWriterConf ( )
protectedvirtualnoexcept

Definition at line 87 of file DataWriterConf.cpp.

88 {
89 }

◆ DataWriterConf() [2/2]

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

◆ ~DataWriterConf() [2/2]

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

Member Function Documentation

◆ __get_data_storage_prescale_str() [1/2]

static const std::string & dunedaq::appmodel::DataWriterConf::__get_data_storage_prescale_str ( )
inlinestaticnoexcept

Definition at line 96 of file DataWriterConf.hpp.

static const std::string s_data_storage_prescale

◆ __get_data_storage_prescale_str() [2/2]

static const std::string & dunedaq::appmodel::DataWriterConf::__get_data_storage_prescale_str ( )
inlinestaticnoexcept

Definition at line 96 of file DataWriterConf.hpp.

◆ __get_data_store_params_str() [1/2]

static const std::string & dunedaq::appmodel::DataWriterConf::__get_data_store_params_str ( )
inlinestaticnoexcept

Definition at line 230 of file DataWriterConf.hpp.

230{ return s_data_store_params; }
static const std::string s_data_store_params

◆ __get_data_store_params_str() [2/2]

static const std::string & dunedaq::appmodel::DataWriterConf::__get_data_store_params_str ( )
inlinestaticnoexcept

Definition at line 230 of file DataWriterConf.hpp.

230{ return s_data_store_params; }

◆ __get_max_write_retry_time_ms_str() [1/2]

static const std::string & dunedaq::appmodel::DataWriterConf::__get_max_write_retry_time_ms_str ( )
inlinestaticnoexcept

Definition at line 98 of file DataWriterConf.hpp.

static const std::string s_max_write_retry_time_ms

◆ __get_max_write_retry_time_ms_str() [2/2]

static const std::string & dunedaq::appmodel::DataWriterConf::__get_max_write_retry_time_ms_str ( )
inlinestaticnoexcept

Definition at line 98 of file DataWriterConf.hpp.

◆ __get_min_write_retry_time_ms_str() [1/2]

static const std::string & dunedaq::appmodel::DataWriterConf::__get_min_write_retry_time_ms_str ( )
inlinestaticnoexcept

Definition at line 97 of file DataWriterConf.hpp.

static const std::string s_min_write_retry_time_ms

◆ __get_min_write_retry_time_ms_str() [2/2]

static const std::string & dunedaq::appmodel::DataWriterConf::__get_min_write_retry_time_ms_str ( )
inlinestaticnoexcept

Definition at line 97 of file DataWriterConf.hpp.

◆ __get_write_retry_time_increase_factor_str() [1/2]

static const std::string & dunedaq::appmodel::DataWriterConf::__get_write_retry_time_increase_factor_str ( )
inlinestaticnoexcept

Definition at line 99 of file DataWriterConf.hpp.

static const std::string s_write_retry_time_increase_factor

◆ __get_write_retry_time_increase_factor_str() [2/2]

static const std::string & dunedaq::appmodel::DataWriterConf::__get_write_retry_time_increase_factor_str ( )
inlinestaticnoexcept

Definition at line 99 of file DataWriterConf.hpp.

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::DataWriterConf::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 91 of file DataWriterConf.cpp.

92 {
93 std::vector<const dunedaq::conffwk::DalObject *> vec;
94
95 if (!get(name, vec, upcast_unregistered, true))
96 throw_get_ex(name, s_class_name, this);
97
98 return vec;
99 }
static const std::string & s_class_name
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...
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::DataWriterConf::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::DataWriterConf::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

Definition at line 101 of file DataWriterConf.cpp.

102 {
103 if (first_call)
104 {
105 std::lock_guard scoped_lock(m_mutex);
106
107 check();
108 check_init();
109
110 if (get_rel_objects(name, upcast_unregistered, vec))
111 return true;
112 }
113
114 if (first_call)
115 return get_algo_objects(name, vec);
116
117 return false;
118 }
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::DataWriterConf::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_data_storage_prescale() [1/2]

int32_t dunedaq::appmodel::DataWriterConf::get_data_storage_prescale ( ) const
inline

Get "data_storage_prescale" attribute value.

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

Definition at line 109 of file DataWriterConf.hpp.

110 {
111 std::lock_guard scoped_lock(m_mutex);
112 check();
113 check_init();
115 }

◆ get_data_storage_prescale() [2/2]

int32_t dunedaq::appmodel::DataWriterConf::get_data_storage_prescale ( ) const
inline

Get "data_storage_prescale" attribute value.

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

Definition at line 109 of file DataWriterConf.hpp.

110 {
111 std::lock_guard scoped_lock(m_mutex);
112 check();
113 check_init();
115 }

◆ get_data_store_params() [1/2]

const dunedaq::appmodel::DataStoreConf * dunedaq::appmodel::DataWriterConf::get_data_store_params ( ) const
inline

Get "data_store_params" relationship value.

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

Definition at line 240 of file DataWriterConf.hpp.

241 {
242 std::lock_guard scoped_lock(m_mutex);
243 check();
244 check_init();
246 {
247 std::ostringstream text;
248 text << "relationship \"" << s_data_store_params << "\" of object " << this << " is not set";
249 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
250 }
251 return m_data_store_params;
252 }
#define ERS_HERE
Generic configuration exception.

◆ get_data_store_params() [2/2]

const dunedaq::appmodel::DataStoreConf * dunedaq::appmodel::DataWriterConf::get_data_store_params ( ) const
inline

Get "data_store_params" relationship value.

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

Definition at line 240 of file DataWriterConf.hpp.

241 {
242 std::lock_guard scoped_lock(m_mutex);
243 check();
244 check_init();
246 {
247 std::ostringstream text;
248 text << "relationship \"" << s_data_store_params << "\" of object " << this << " is not set";
249 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
250 }
251 return m_data_store_params;
252 }

◆ get_max_write_retry_time_ms() [1/2]

int32_t dunedaq::appmodel::DataWriterConf::get_max_write_retry_time_ms ( ) const
inline

Get "max_write_retry_time_ms" attribute value.

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

Definition at line 171 of file DataWriterConf.hpp.

172 {
173 std::lock_guard scoped_lock(m_mutex);
174 check();
175 check_init();
177 }

◆ get_max_write_retry_time_ms() [2/2]

int32_t dunedaq::appmodel::DataWriterConf::get_max_write_retry_time_ms ( ) const
inline

Get "max_write_retry_time_ms" attribute value.

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

Definition at line 171 of file DataWriterConf.hpp.

172 {
173 std::lock_guard scoped_lock(m_mutex);
174 check();
175 check_init();
177 }

◆ get_min_write_retry_time_ms() [1/2]

int32_t dunedaq::appmodel::DataWriterConf::get_min_write_retry_time_ms ( ) const
inline

Get "min_write_retry_time_ms" attribute value.

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

Definition at line 140 of file DataWriterConf.hpp.

141 {
142 std::lock_guard scoped_lock(m_mutex);
143 check();
144 check_init();
146 }

◆ get_min_write_retry_time_ms() [2/2]

int32_t dunedaq::appmodel::DataWriterConf::get_min_write_retry_time_ms ( ) const
inline

Get "min_write_retry_time_ms" attribute value.

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

Definition at line 140 of file DataWriterConf.hpp.

141 {
142 std::lock_guard scoped_lock(m_mutex);
143 check();
144 check_init();
146 }

◆ get_write_retry_time_increase_factor() [1/2]

int32_t dunedaq::appmodel::DataWriterConf::get_write_retry_time_increase_factor ( ) const
inline

Get "write_retry_time_increase_factor" attribute value.

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

Definition at line 202 of file DataWriterConf.hpp.

203 {
204 std::lock_guard scoped_lock(m_mutex);
205 check();
206 check_init();
208 }

◆ get_write_retry_time_increase_factor() [2/2]

int32_t dunedaq::appmodel::DataWriterConf::get_write_retry_time_increase_factor ( ) const
inline

Get "write_retry_time_increase_factor" attribute value.

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

Definition at line 202 of file DataWriterConf.hpp.

203 {
204 std::lock_guard scoped_lock(m_mutex);
205 check();
206 check_init();
208 }

◆ init() [1/2]

void dunedaq::appmodel::DataWriterConf::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 69 of file DataWriterConf.cpp.

70 {
71 p_was_read = true;
73 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
74
75 try {
81 }
82 catch (dunedaq::conffwk::Exception & ex) {
83 throw_init_ex(ex);
84 }
85 }
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
DalRegistry & p_registry
Configuration object.
bool p_was_read
is true, if the object was read
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).
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

virtual void dunedaq::appmodel::DataWriterConf::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::DataWriterConf::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the DataWriterConf 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 40 of file DataWriterConf.cpp.

41 {
42 check_init();
43
44 try {
45 const std::string str(indent+2, ' ');
46
47 if (print_header)
48 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
49
50
51 // print direct attributes
52
57
58
59 // print direct relationships
60
62 }
63 catch (dunedaq::conffwk::Exception & ex) {
65 }
66 }
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_rel(std::ostream &s, const std::string &str, const std::string &name, const DalObject *obj)
print weak single-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::DataWriterConf::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the DataWriterConf 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_data_storage_prescale() [1/2]

void dunedaq::appmodel::DataWriterConf::set_data_storage_prescale ( int32_t value)
inline

Set "data_storage_prescale" attribute value.

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

Definition at line 124 of file DataWriterConf.hpp.

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

◆ set_data_storage_prescale() [2/2]

void dunedaq::appmodel::DataWriterConf::set_data_storage_prescale ( int32_t value)
inline

Set "data_storage_prescale" attribute value.

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

Definition at line 124 of file DataWriterConf.hpp.

125 {
126 std::lock_guard scoped_lock(m_mutex);
127 check();
128 clear();
130 }

◆ set_data_store_params() [1/2]

void dunedaq::appmodel::DataWriterConf::set_data_store_params ( const dunedaq::appmodel::DataStoreConf * value)

Set "data_store_params" relationship value.

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

Definition at line 120 of file DataWriterConf.cpp.

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

◆ set_data_store_params() [2/2]

void dunedaq::appmodel::DataWriterConf::set_data_store_params ( const dunedaq::appmodel::DataStoreConf * value)

Set "data_store_params" relationship value.

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

◆ set_max_write_retry_time_ms() [1/2]

void dunedaq::appmodel::DataWriterConf::set_max_write_retry_time_ms ( int32_t value)
inline

Set "max_write_retry_time_ms" attribute value.

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

Definition at line 186 of file DataWriterConf.hpp.

187 {
188 std::lock_guard scoped_lock(m_mutex);
189 check();
190 clear();
192 }

◆ set_max_write_retry_time_ms() [2/2]

void dunedaq::appmodel::DataWriterConf::set_max_write_retry_time_ms ( int32_t value)
inline

Set "max_write_retry_time_ms" attribute value.

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

Definition at line 186 of file DataWriterConf.hpp.

187 {
188 std::lock_guard scoped_lock(m_mutex);
189 check();
190 clear();
192 }

◆ set_min_write_retry_time_ms() [1/2]

void dunedaq::appmodel::DataWriterConf::set_min_write_retry_time_ms ( int32_t value)
inline

Set "min_write_retry_time_ms" attribute value.

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

Definition at line 155 of file DataWriterConf.hpp.

156 {
157 std::lock_guard scoped_lock(m_mutex);
158 check();
159 clear();
161 }

◆ set_min_write_retry_time_ms() [2/2]

void dunedaq::appmodel::DataWriterConf::set_min_write_retry_time_ms ( int32_t value)
inline

Set "min_write_retry_time_ms" attribute value.

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

Definition at line 155 of file DataWriterConf.hpp.

156 {
157 std::lock_guard scoped_lock(m_mutex);
158 check();
159 clear();
161 }

◆ set_write_retry_time_increase_factor() [1/2]

void dunedaq::appmodel::DataWriterConf::set_write_retry_time_increase_factor ( int32_t value)
inline

Set "write_retry_time_increase_factor" attribute value.

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

Definition at line 217 of file DataWriterConf.hpp.

218 {
219 std::lock_guard scoped_lock(m_mutex);
220 check();
221 clear();
223 }

◆ set_write_retry_time_increase_factor() [2/2]

void dunedaq::appmodel::DataWriterConf::set_write_retry_time_increase_factor ( int32_t value)
inline

Set "write_retry_time_increase_factor" attribute value.

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

Definition at line 217 of file DataWriterConf.hpp.

218 {
219 std::lock_guard scoped_lock(m_mutex);
220 check();
221 clear();
223 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 31 of file DataWriterConf.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 33 of file DataWriterConf.hpp.

◆ conffwk::DalObject

Definition at line 32 of file DataWriterConf.hpp.

◆ conffwk::DalRegistry

Definition at line 34 of file DataWriterConf.hpp.

Member Data Documentation

◆ m_data_storage_prescale

int32_t dunedaq::appmodel::DataWriterConf::m_data_storage_prescale
private

Definition at line 80 of file DataWriterConf.hpp.

◆ m_data_store_params

const dunedaq::appmodel::DataStoreConf * dunedaq::appmodel::DataWriterConf::m_data_store_params
private

Definition at line 84 of file DataWriterConf.hpp.

◆ m_max_write_retry_time_ms

int32_t dunedaq::appmodel::DataWriterConf::m_max_write_retry_time_ms
private

Definition at line 82 of file DataWriterConf.hpp.

◆ m_min_write_retry_time_ms

int32_t dunedaq::appmodel::DataWriterConf::m_min_write_retry_time_ms
private

Definition at line 81 of file DataWriterConf.hpp.

◆ m_write_retry_time_increase_factor

int32_t dunedaq::appmodel::DataWriterConf::m_write_retry_time_increase_factor
private

Definition at line 83 of file DataWriterConf.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 46 of file DataWriterConf.hpp.

◆ s_data_storage_prescale

static const std::string dunedaq::appmodel::DataWriterConf::s_data_storage_prescale = "data_storage_prescale"
inlinestatic

Definition at line 91 of file DataWriterConf.hpp.

◆ s_data_store_params

static const std::string dunedaq::appmodel::DataWriterConf::s_data_store_params = "data_store_params"
inlinestatic

Definition at line 228 of file DataWriterConf.hpp.

◆ s_max_write_retry_time_ms

static const std::string dunedaq::appmodel::DataWriterConf::s_max_write_retry_time_ms = "max_write_retry_time_ms"
inlinestatic

Definition at line 93 of file DataWriterConf.hpp.

◆ s_min_write_retry_time_ms

static const std::string dunedaq::appmodel::DataWriterConf::s_min_write_retry_time_ms = "min_write_retry_time_ms"
inlinestatic

Definition at line 92 of file DataWriterConf.hpp.

◆ s_write_retry_time_increase_factor

static const std::string dunedaq::appmodel::DataWriterConf::s_write_retry_time_increase_factor = "write_retry_time_increase_factor"
inlinestatic

Definition at line 94 of file DataWriterConf.hpp.


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