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

#include <FilenameParams.hpp>

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

Classes

struct  File_type_prefix
 

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the FilenameParams 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_file_type_prefix () const
 Get "file_type_prefix" attribute value.
 
void set_file_type_prefix (const std::string &value)
 Set "file_type_prefix" attribute value.
 
const std::string & get_run_number_prefix () const
 Get "run_number_prefix" attribute value.
 
void set_run_number_prefix (const std::string &value)
 Set "run_number_prefix" attribute value.
 
int32_t get_digits_for_run_number () const
 Get "digits_for_run_number" attribute value.
 
void set_digits_for_run_number (int32_t value)
 Set "digits_for_run_number" attribute value.
 
const std::string & get_file_index_prefix () const
 Get "file_index_prefix" attribute value.
 
void set_file_index_prefix (const std::string &value)
 Set "file_index_prefix" attribute value.
 
int32_t get_digits_for_file_index () const
 Get "digits_for_file_index" attribute value.
 
void set_digits_for_file_index (int32_t value)
 Set "digits_for_file_index" attribute value.
 
const std::string & get_trigger_number_prefix () const
 Get "trigger_number_prefix" attribute value.
 
void set_trigger_number_prefix (const std::string &value)
 Set "trigger_number_prefix" attribute value.
 
int32_t get_digits_for_trigger_number () const
 Get "digits_for_trigger_number" attribute value.
 
void set_digits_for_trigger_number (int32_t value)
 Set "digits_for_trigger_number" attribute value.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the FilenameParams 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_file_type_prefix () const
 Get "file_type_prefix" attribute value.
 
void set_file_type_prefix (const std::string &value)
 Set "file_type_prefix" attribute value.
 
const std::string & get_run_number_prefix () const
 Get "run_number_prefix" attribute value.
 
void set_run_number_prefix (const std::string &value)
 Set "run_number_prefix" attribute value.
 
int32_t get_digits_for_run_number () const
 Get "digits_for_run_number" attribute value.
 
void set_digits_for_run_number (int32_t value)
 Set "digits_for_run_number" attribute value.
 
const std::string & get_file_index_prefix () const
 Get "file_index_prefix" attribute value.
 
void set_file_index_prefix (const std::string &value)
 Set "file_index_prefix" attribute value.
 
int32_t get_digits_for_file_index () const
 Get "digits_for_file_index" attribute value.
 
void set_digits_for_file_index (int32_t value)
 Set "digits_for_file_index" attribute value.
 
const std::string & get_trigger_number_prefix () const
 Get "trigger_number_prefix" attribute value.
 
void set_trigger_number_prefix (const std::string &value)
 Set "trigger_number_prefix" attribute value.
 
int32_t get_digits_for_trigger_number () const
 Get "digits_for_trigger_number" attribute value.
 
void set_digits_for_trigger_number (int32_t value)
 Set "digits_for_trigger_number" 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_file_type_prefix_str () noexcept
 
static const std::string & __get_run_number_prefix_str () noexcept
 
static const std::string & __get_digits_for_run_number_str () noexcept
 
static const std::string & __get_file_index_prefix_str () noexcept
 
static const std::string & __get_digits_for_file_index_str () noexcept
 
static const std::string & __get_trigger_number_prefix_str () noexcept
 
static const std::string & __get_digits_for_trigger_number_str () noexcept
 
static const std::string & __get_file_type_prefix_str () noexcept
 
static const std::string & __get_run_number_prefix_str () noexcept
 
static const std::string & __get_digits_for_run_number_str () noexcept
 
static const std::string & __get_file_index_prefix_str () noexcept
 
static const std::string & __get_digits_for_file_index_str () noexcept
 
static const std::string & __get_trigger_number_prefix_str () noexcept
 
static const std::string & __get_digits_for_trigger_number_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_file_type_prefix = "file_type_prefix"
 
static const std::string s_run_number_prefix = "run_number_prefix"
 
static const std::string s_digits_for_run_number = "digits_for_run_number"
 
static const std::string s_file_index_prefix = "file_index_prefix"
 
static const std::string s_digits_for_file_index = "digits_for_file_index"
 
static const std::string s_trigger_number_prefix = "trigger_number_prefix"
 
static const std::string s_digits_for_trigger_number = "digits_for_trigger_number"
 

Protected Member Functions

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

std::string m_file_type_prefix
 
std::string m_run_number_prefix
 
int32_t m_digits_for_run_number
 
std::string m_file_index_prefix
 
int32_t m_digits_for_file_index
 
std::string m_trigger_number_prefix
 
int32_t m_digits_for_trigger_number
 

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 FilenameParams.hpp.

Constructor & Destructor Documentation

◆ FilenameParams() [1/2]

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

Definition at line 26 of file FilenameParams.cpp.

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

◆ ~FilenameParams() [1/2]

dunedaq::appmodel::FilenameParams::~FilenameParams ( )
protectedvirtualnoexcept

Definition at line 80 of file FilenameParams.cpp.

81 {
82 }

◆ FilenameParams() [2/2]

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

◆ ~FilenameParams() [2/2]

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

Member Function Documentation

◆ __get_digits_for_file_index_str() [1/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_digits_for_file_index_str ( )
inlinestaticnoexcept

Definition at line 96 of file FilenameParams.hpp.

static const std::string s_digits_for_file_index

◆ __get_digits_for_file_index_str() [2/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_digits_for_file_index_str ( )
inlinestaticnoexcept

Definition at line 96 of file FilenameParams.hpp.

◆ __get_digits_for_run_number_str() [1/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_digits_for_run_number_str ( )
inlinestaticnoexcept

Definition at line 94 of file FilenameParams.hpp.

static const std::string s_digits_for_run_number

◆ __get_digits_for_run_number_str() [2/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_digits_for_run_number_str ( )
inlinestaticnoexcept

Definition at line 94 of file FilenameParams.hpp.

◆ __get_digits_for_trigger_number_str() [1/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_digits_for_trigger_number_str ( )
inlinestaticnoexcept

Definition at line 98 of file FilenameParams.hpp.

static const std::string s_digits_for_trigger_number

◆ __get_digits_for_trigger_number_str() [2/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_digits_for_trigger_number_str ( )
inlinestaticnoexcept

Definition at line 98 of file FilenameParams.hpp.

◆ __get_file_index_prefix_str() [1/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_file_index_prefix_str ( )
inlinestaticnoexcept

Definition at line 95 of file FilenameParams.hpp.

95{ return s_file_index_prefix; }
static const std::string s_file_index_prefix

◆ __get_file_index_prefix_str() [2/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_file_index_prefix_str ( )
inlinestaticnoexcept

Definition at line 95 of file FilenameParams.hpp.

95{ return s_file_index_prefix; }

◆ __get_file_type_prefix_str() [1/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_file_type_prefix_str ( )
inlinestaticnoexcept

Definition at line 92 of file FilenameParams.hpp.

92{ return s_file_type_prefix; }
static const std::string s_file_type_prefix

◆ __get_file_type_prefix_str() [2/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_file_type_prefix_str ( )
inlinestaticnoexcept

Definition at line 92 of file FilenameParams.hpp.

92{ return s_file_type_prefix; }

◆ __get_run_number_prefix_str() [1/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_run_number_prefix_str ( )
inlinestaticnoexcept

Definition at line 93 of file FilenameParams.hpp.

93{ return s_run_number_prefix; }
static const std::string s_run_number_prefix

◆ __get_run_number_prefix_str() [2/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_run_number_prefix_str ( )
inlinestaticnoexcept

Definition at line 93 of file FilenameParams.hpp.

93{ return s_run_number_prefix; }

◆ __get_trigger_number_prefix_str() [1/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_trigger_number_prefix_str ( )
inlinestaticnoexcept

Definition at line 97 of file FilenameParams.hpp.

static const std::string s_trigger_number_prefix

◆ __get_trigger_number_prefix_str() [2/2]

static const std::string & dunedaq::appmodel::FilenameParams::__get_trigger_number_prefix_str ( )
inlinestaticnoexcept

Definition at line 97 of file FilenameParams.hpp.

◆ get() [1/4]

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

85 {
86 std::vector<const dunedaq::conffwk::DalObject *> vec;
87
88 if (!get(name, vec, upcast_unregistered, true))
89 throw_get_ex(name, s_class_name, this);
90
91 return vec;
92 }
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 const std::string & s_class_name
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::FilenameParams::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::FilenameParams::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

Definition at line 94 of file FilenameParams.cpp.

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

◆ get_digits_for_file_index() [1/2]

int32_t dunedaq::appmodel::FilenameParams::get_digits_for_file_index ( ) const
inline

Get "digits_for_file_index" attribute value.

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

Definition at line 241 of file FilenameParams.hpp.

242 {
243 std::lock_guard scoped_lock(m_mutex);
244 check();
245 check_init();
247 }

◆ get_digits_for_file_index() [2/2]

int32_t dunedaq::appmodel::FilenameParams::get_digits_for_file_index ( ) const
inline

Get "digits_for_file_index" attribute value.

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

Definition at line 241 of file FilenameParams.hpp.

242 {
243 std::lock_guard scoped_lock(m_mutex);
244 check();
245 check_init();
247 }

◆ get_digits_for_run_number() [1/2]

int32_t dunedaq::appmodel::FilenameParams::get_digits_for_run_number ( ) const
inline

Get "digits_for_run_number" attribute value.

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

Definition at line 179 of file FilenameParams.hpp.

180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
185 }

◆ get_digits_for_run_number() [2/2]

int32_t dunedaq::appmodel::FilenameParams::get_digits_for_run_number ( ) const
inline

Get "digits_for_run_number" attribute value.

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

Definition at line 179 of file FilenameParams.hpp.

180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
185 }

◆ get_digits_for_trigger_number() [1/2]

int32_t dunedaq::appmodel::FilenameParams::get_digits_for_trigger_number ( ) const
inline

Get "digits_for_trigger_number" attribute value.

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

Definition at line 303 of file FilenameParams.hpp.

304 {
305 std::lock_guard scoped_lock(m_mutex);
306 check();
307 check_init();
309 }

◆ get_digits_for_trigger_number() [2/2]

int32_t dunedaq::appmodel::FilenameParams::get_digits_for_trigger_number ( ) const
inline

Get "digits_for_trigger_number" attribute value.

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

Definition at line 303 of file FilenameParams.hpp.

304 {
305 std::lock_guard scoped_lock(m_mutex);
306 check();
307 check_init();
309 }

◆ get_file_index_prefix() [1/2]

const std::string & dunedaq::appmodel::FilenameParams::get_file_index_prefix ( ) const
inline

Get "file_index_prefix" attribute value.

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

Definition at line 210 of file FilenameParams.hpp.

211 {
212 std::lock_guard scoped_lock(m_mutex);
213 check();
214 check_init();
215 return m_file_index_prefix;
216 }

◆ get_file_index_prefix() [2/2]

const std::string & dunedaq::appmodel::FilenameParams::get_file_index_prefix ( ) const
inline

Get "file_index_prefix" attribute value.

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

Definition at line 210 of file FilenameParams.hpp.

211 {
212 std::lock_guard scoped_lock(m_mutex);
213 check();
214 check_init();
215 return m_file_index_prefix;
216 }

◆ get_file_type_prefix() [1/2]

const std::string & dunedaq::appmodel::FilenameParams::get_file_type_prefix ( ) const
inline

Get "file_type_prefix" attribute value.

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

Definition at line 117 of file FilenameParams.hpp.

118 {
119 std::lock_guard scoped_lock(m_mutex);
120 check();
121 check_init();
122 return m_file_type_prefix;
123 }

◆ get_file_type_prefix() [2/2]

const std::string & dunedaq::appmodel::FilenameParams::get_file_type_prefix ( ) const
inline

Get "file_type_prefix" attribute value.

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

Definition at line 117 of file FilenameParams.hpp.

118 {
119 std::lock_guard scoped_lock(m_mutex);
120 check();
121 check_init();
122 return m_file_type_prefix;
123 }

◆ get_run_number_prefix() [1/2]

const std::string & dunedaq::appmodel::FilenameParams::get_run_number_prefix ( ) const
inline

Get "run_number_prefix" attribute value.

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

Definition at line 148 of file FilenameParams.hpp.

149 {
150 std::lock_guard scoped_lock(m_mutex);
151 check();
152 check_init();
153 return m_run_number_prefix;
154 }

◆ get_run_number_prefix() [2/2]

const std::string & dunedaq::appmodel::FilenameParams::get_run_number_prefix ( ) const
inline

Get "run_number_prefix" attribute value.

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

Definition at line 148 of file FilenameParams.hpp.

149 {
150 std::lock_guard scoped_lock(m_mutex);
151 check();
152 check_init();
153 return m_run_number_prefix;
154 }

◆ get_trigger_number_prefix() [1/2]

const std::string & dunedaq::appmodel::FilenameParams::get_trigger_number_prefix ( ) const
inline

Get "trigger_number_prefix" attribute value.

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

Definition at line 272 of file FilenameParams.hpp.

273 {
274 std::lock_guard scoped_lock(m_mutex);
275 check();
276 check_init();
278 }

◆ get_trigger_number_prefix() [2/2]

const std::string & dunedaq::appmodel::FilenameParams::get_trigger_number_prefix ( ) const
inline

Get "trigger_number_prefix" attribute value.

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

Definition at line 272 of file FilenameParams.hpp.

273 {
274 std::lock_guard scoped_lock(m_mutex);
275 check();
276 check_init();
278 }

◆ init() [1/2]

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

61 {
62 p_was_read = true;
64 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
65
66 try {
74 }
75 catch (dunedaq::conffwk::Exception & ex) {
76 throw_init_ex(ex);
77 }
78 }
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::FilenameParams::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::FilenameParams::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the FilenameParams 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 FilenameParams.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
53 }
54 catch (dunedaq::conffwk::Exception & ex) {
56 }
57 }
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::FilenameParams::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

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

void dunedaq::appmodel::FilenameParams::set_digits_for_file_index ( int32_t value)
inline

Set "digits_for_file_index" attribute value.

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

Definition at line 256 of file FilenameParams.hpp.

257 {
258 std::lock_guard scoped_lock(m_mutex);
259 check();
260 clear();
262 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_digits_for_file_index() [2/2]

void dunedaq::appmodel::FilenameParams::set_digits_for_file_index ( int32_t value)
inline

Set "digits_for_file_index" attribute value.

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

Definition at line 256 of file FilenameParams.hpp.

257 {
258 std::lock_guard scoped_lock(m_mutex);
259 check();
260 clear();
262 }

◆ set_digits_for_run_number() [1/2]

void dunedaq::appmodel::FilenameParams::set_digits_for_run_number ( int32_t value)
inline

Set "digits_for_run_number" attribute value.

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

Definition at line 194 of file FilenameParams.hpp.

195 {
196 std::lock_guard scoped_lock(m_mutex);
197 check();
198 clear();
200 }

◆ set_digits_for_run_number() [2/2]

void dunedaq::appmodel::FilenameParams::set_digits_for_run_number ( int32_t value)
inline

Set "digits_for_run_number" attribute value.

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

Definition at line 194 of file FilenameParams.hpp.

195 {
196 std::lock_guard scoped_lock(m_mutex);
197 check();
198 clear();
200 }

◆ set_digits_for_trigger_number() [1/2]

void dunedaq::appmodel::FilenameParams::set_digits_for_trigger_number ( int32_t value)
inline

Set "digits_for_trigger_number" attribute value.

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

Definition at line 318 of file FilenameParams.hpp.

319 {
320 std::lock_guard scoped_lock(m_mutex);
321 check();
322 clear();
324 }

◆ set_digits_for_trigger_number() [2/2]

void dunedaq::appmodel::FilenameParams::set_digits_for_trigger_number ( int32_t value)
inline

Set "digits_for_trigger_number" attribute value.

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

Definition at line 318 of file FilenameParams.hpp.

319 {
320 std::lock_guard scoped_lock(m_mutex);
321 check();
322 clear();
324 }

◆ set_file_index_prefix() [1/2]

void dunedaq::appmodel::FilenameParams::set_file_index_prefix ( const std::string & value)
inline

Set "file_index_prefix" attribute value.

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

Definition at line 225 of file FilenameParams.hpp.

226 {
227 std::lock_guard scoped_lock(m_mutex);
228 check();
229 clear();
231 }
void set_by_ref(const std::string &name, T &value)
Set attribute value.

◆ set_file_index_prefix() [2/2]

void dunedaq::appmodel::FilenameParams::set_file_index_prefix ( const std::string & value)
inline

Set "file_index_prefix" attribute value.

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

Definition at line 225 of file FilenameParams.hpp.

226 {
227 std::lock_guard scoped_lock(m_mutex);
228 check();
229 clear();
231 }

◆ set_file_type_prefix() [1/2]

void dunedaq::appmodel::FilenameParams::set_file_type_prefix ( const std::string & value)
inline

Set "file_type_prefix" attribute value.

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

Definition at line 132 of file FilenameParams.hpp.

133 {
134 std::lock_guard scoped_lock(m_mutex);
135 check();
136 clear();
138 }
void set_enum(const std::string &name, const std::string &value)
Set attribute enumeration value.

◆ set_file_type_prefix() [2/2]

void dunedaq::appmodel::FilenameParams::set_file_type_prefix ( const std::string & value)
inline

Set "file_type_prefix" attribute value.

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

Definition at line 132 of file FilenameParams.hpp.

133 {
134 std::lock_guard scoped_lock(m_mutex);
135 check();
136 clear();
138 }

◆ set_run_number_prefix() [1/2]

void dunedaq::appmodel::FilenameParams::set_run_number_prefix ( const std::string & value)
inline

Set "run_number_prefix" attribute value.

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

Definition at line 163 of file FilenameParams.hpp.

164 {
165 std::lock_guard scoped_lock(m_mutex);
166 check();
167 clear();
169 }

◆ set_run_number_prefix() [2/2]

void dunedaq::appmodel::FilenameParams::set_run_number_prefix ( const std::string & value)
inline

Set "run_number_prefix" attribute value.

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

Definition at line 163 of file FilenameParams.hpp.

164 {
165 std::lock_guard scoped_lock(m_mutex);
166 check();
167 clear();
169 }

◆ set_trigger_number_prefix() [1/2]

void dunedaq::appmodel::FilenameParams::set_trigger_number_prefix ( const std::string & value)
inline

Set "trigger_number_prefix" attribute value.

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

Definition at line 287 of file FilenameParams.hpp.

288 {
289 std::lock_guard scoped_lock(m_mutex);
290 check();
291 clear();
293 }

◆ set_trigger_number_prefix() [2/2]

void dunedaq::appmodel::FilenameParams::set_trigger_number_prefix ( const std::string & value)
inline

Set "trigger_number_prefix" attribute value.

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

Definition at line 287 of file FilenameParams.hpp.

288 {
289 std::lock_guard scoped_lock(m_mutex);
290 check();
291 clear();
293 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 22 of file FilenameParams.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 24 of file FilenameParams.hpp.

◆ conffwk::DalObject

Definition at line 23 of file FilenameParams.hpp.

◆ conffwk::DalRegistry

Definition at line 25 of file FilenameParams.hpp.

Member Data Documentation

◆ m_digits_for_file_index

int32_t dunedaq::appmodel::FilenameParams::m_digits_for_file_index
private

Definition at line 75 of file FilenameParams.hpp.

◆ m_digits_for_run_number

int32_t dunedaq::appmodel::FilenameParams::m_digits_for_run_number
private

Definition at line 73 of file FilenameParams.hpp.

◆ m_digits_for_trigger_number

int32_t dunedaq::appmodel::FilenameParams::m_digits_for_trigger_number
private

Definition at line 77 of file FilenameParams.hpp.

◆ m_file_index_prefix

std::string dunedaq::appmodel::FilenameParams::m_file_index_prefix
private

Definition at line 74 of file FilenameParams.hpp.

◆ m_file_type_prefix

std::string dunedaq::appmodel::FilenameParams::m_file_type_prefix
private

Definition at line 71 of file FilenameParams.hpp.

◆ m_run_number_prefix

std::string dunedaq::appmodel::FilenameParams::m_run_number_prefix
private

Definition at line 72 of file FilenameParams.hpp.

◆ m_trigger_number_prefix

std::string dunedaq::appmodel::FilenameParams::m_trigger_number_prefix
private

Definition at line 76 of file FilenameParams.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 37 of file FilenameParams.hpp.

◆ s_digits_for_file_index

static const std::string dunedaq::appmodel::FilenameParams::s_digits_for_file_index = "digits_for_file_index"
inlinestatic

Definition at line 88 of file FilenameParams.hpp.

◆ s_digits_for_run_number

static const std::string dunedaq::appmodel::FilenameParams::s_digits_for_run_number = "digits_for_run_number"
inlinestatic

Definition at line 86 of file FilenameParams.hpp.

◆ s_digits_for_trigger_number

static const std::string dunedaq::appmodel::FilenameParams::s_digits_for_trigger_number = "digits_for_trigger_number"
inlinestatic

Definition at line 90 of file FilenameParams.hpp.

◆ s_file_index_prefix

static const std::string dunedaq::appmodel::FilenameParams::s_file_index_prefix = "file_index_prefix"
inlinestatic

Definition at line 87 of file FilenameParams.hpp.

◆ s_file_type_prefix

static const std::string dunedaq::appmodel::FilenameParams::s_file_type_prefix = "file_type_prefix"
inlinestatic

Definition at line 84 of file FilenameParams.hpp.

◆ s_run_number_prefix

static const std::string dunedaq::appmodel::FilenameParams::s_run_number_prefix = "run_number_prefix"
inlinestatic

Definition at line 85 of file FilenameParams.hpp.

◆ s_trigger_number_prefix

static const std::string dunedaq::appmodel::FilenameParams::s_trigger_number_prefix = "trigger_number_prefix"
inlinestatic

Definition at line 89 of file FilenameParams.hpp.


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