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

#include <FakeDataProdConf.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the FakeDataProdConf 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_system_type () const
 Get "system_type" attribute value. The system type of the link.
 
void set_system_type (const std::string &value)
 Set "system_type" attribute value. The system type of the link.
 
uint32_t get_source_id () const
 Get "source_id" attribute value. The SourceID of this link.
 
void set_source_id (uint32_t value)
 Set "source_id" attribute value. The SourceID of this link.
 
uint32_t get_time_tick_diff () const
 Get "time_tick_diff" attribute value. Time tick difference between frames.
 
void set_time_tick_diff (uint32_t value)
 Set "time_tick_diff" attribute value. Time tick difference between frames.
 
uint32_t get_frame_size () const
 Get "frame_size" attribute value. The size of a fake frame.
 
void set_frame_size (uint32_t value)
 Set "frame_size" attribute value. The size of a fake frame.
 
uint32_t get_response_delay () const
 Get "response_delay" attribute value. Wait for this amount of ns before sending the fragment.
 
void set_response_delay (uint32_t value)
 Set "response_delay" attribute value. Wait for this amount of ns before sending the fragment.
 
const std::string & get_fragment_type () const
 Get "fragment_type" attribute value. Fragment type of the response.
 
void set_fragment_type (const std::string &value)
 Set "fragment_type" attribute value. Fragment type of the response.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the FakeDataProdConf 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_system_type () const
 Get "system_type" attribute value. The system type of the link.
 
void set_system_type (const std::string &value)
 Set "system_type" attribute value. The system type of the link.
 
uint32_t get_source_id () const
 Get "source_id" attribute value. The SourceID of this link.
 
void set_source_id (uint32_t value)
 Set "source_id" attribute value. The SourceID of this link.
 
uint32_t get_time_tick_diff () const
 Get "time_tick_diff" attribute value. Time tick difference between frames.
 
void set_time_tick_diff (uint32_t value)
 Set "time_tick_diff" attribute value. Time tick difference between frames.
 
uint32_t get_frame_size () const
 Get "frame_size" attribute value. The size of a fake frame.
 
void set_frame_size (uint32_t value)
 Set "frame_size" attribute value. The size of a fake frame.
 
uint32_t get_response_delay () const
 Get "response_delay" attribute value. Wait for this amount of ns before sending the fragment.
 
void set_response_delay (uint32_t value)
 Set "response_delay" attribute value. Wait for this amount of ns before sending the fragment.
 
const std::string & get_fragment_type () const
 Get "fragment_type" attribute value. Fragment type of the response.
 
void set_fragment_type (const std::string &value)
 Set "fragment_type" attribute value. Fragment type of the response.
 
- Public Member Functions inherited from dunedaq::confmodel::ResourceBase
- Public Member Functions inherited from dunedaq::confmodel::Component
void get_parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Component * > > &parents) const
 
bool disabled (const dunedaq::confmodel::Session &session) const
 
void get_parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Component * > > &parents) const
 
bool disabled (const dunedaq::confmodel::Session &session) const
 
- Public Member Functions inherited from dunedaq::conffwk::DalObject
const std::string & UID () const noexcept
 
const std::string & class_name () const noexcept
 
bool castable (const std::string &target) const noexcept
 
bool castable (const std::string *target) const noexcept
 
template<class TARGET >
const TARGET * cast () const noexcept
 Casts object to different class.
 
std::string full_name () const noexcept
 
const ConfigObjectconfig_object () const
 
DalRegistryregistry () const noexcept
 
Configurationconfiguration () const noexcept
 
void unread ()
 
void set (const ConfigObject &o) noexcept
 
void move (const std::string &at)
 
void rename (const std::string &new_id)
 
void p_hdr (std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
 print object headers
 
std::ostream & print_object (std::ostream &s) const
 print object details
 
void throw_init_ex (dunedaq::conffwk::Exception &ex)
 throw object initialisation exception (i.e.
 

Static Public Member Functions

static const std::string & __get_system_type_str () noexcept
 
static const std::string & __get_source_id_str () noexcept
 
static const std::string & __get_time_tick_diff_str () noexcept
 
static const std::string & __get_frame_size_str () noexcept
 
static const std::string & __get_response_delay_str () noexcept
 
static const std::string & __get_fragment_type_str () noexcept
 
static const std::string & __get_system_type_str () noexcept
 
static const std::string & __get_source_id_str () noexcept
 
static const std::string & __get_time_tick_diff_str () noexcept
 
static const std::string & __get_frame_size_str () noexcept
 
static const std::string & __get_response_delay_str () noexcept
 
static const std::string & __get_fragment_type_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_system_type = "system_type"
 
static const std::string s_source_id = "source_id"
 
static const std::string s_time_tick_diff = "time_tick_diff"
 
static const std::string s_frame_size = "frame_size"
 
static const std::string s_response_delay = "response_delay"
 
static const std::string s_fragment_type = "fragment_type"
 
- Static Public Attributes inherited from dunedaq::confmodel::ResourceBase
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::Component
static const std::string & s_class_name
 

Protected Member Functions

 FakeDataProdConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~FakeDataProdConf () 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
 
 FakeDataProdConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~FakeDataProdConf () noexcept
 
virtual void init (bool init_children)
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::ResourceBase
 ResourceBase (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceBase () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 ResourceBase (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceBase () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::Component
 Component (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Component () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 Component (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Component () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::conffwk::DalObject
 DalObject (DalRegistry &db, const ConfigObject &o) noexcept
 
virtual ~DalObject ()
 
void clear () noexcept
 
void check () const
 
bool is_deleted () const
 
void increment_created () noexcept
 
void increment_read () noexcept
 
void check_init () const
 Check and initialize object if necessary.
 
template<typename T >
void _set_object (const std::string &name, const T *value)
 Helper method for generated set single-value relationship methods.
 
template<typename T >
void _set_objects (const std::string &name, const std::vector< const T * > &value)
 Helper method for generated set multi-value relationship methods.
 
bool get_rel_objects (const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const
 Read relationship values as DAL objects using DAL factory.
 
bool get_algo_objects (const std::string &name, std::vector< const DalObject * > &objs) const
 Run algorithm and return result as DAL objects using DAL factory.
 

Private Attributes

std::string m_system_type
 
uint32_t m_source_id
 
uint32_t m_time_tick_diff
 
uint32_t m_frame_size
 
uint32_t m_response_delay
 
std::string m_fragment_type
 

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 23 of file FakeDataProdConf.hpp.

Constructor & Destructor Documentation

◆ FakeDataProdConf() [1/2]

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

Definition at line 26 of file FakeDataProdConf.cpp.

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

◆ ~FakeDataProdConf() [1/2]

dunedaq::appmodel::FakeDataProdConf::~FakeDataProdConf ( )
protectedvirtualnoexcept

Definition at line 85 of file FakeDataProdConf.cpp.

86 {
87 }

◆ FakeDataProdConf() [2/2]

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

◆ ~FakeDataProdConf() [2/2]

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

Member Function Documentation

◆ __get_fragment_type_str() [1/2]

static const std::string & dunedaq::appmodel::FakeDataProdConf::__get_fragment_type_str ( )
inlinestaticnoexcept

Definition at line 98 of file FakeDataProdConf.hpp.

98{ return s_fragment_type; }
static const std::string s_fragment_type

◆ __get_fragment_type_str() [2/2]

static const std::string & dunedaq::appmodel::FakeDataProdConf::__get_fragment_type_str ( )
inlinestaticnoexcept

Definition at line 98 of file FakeDataProdConf.hpp.

98{ return s_fragment_type; }

◆ __get_frame_size_str() [1/2]

static const std::string & dunedaq::appmodel::FakeDataProdConf::__get_frame_size_str ( )
inlinestaticnoexcept

Definition at line 96 of file FakeDataProdConf.hpp.

96{ return s_frame_size; }
static const std::string s_frame_size

◆ __get_frame_size_str() [2/2]

static const std::string & dunedaq::appmodel::FakeDataProdConf::__get_frame_size_str ( )
inlinestaticnoexcept

Definition at line 96 of file FakeDataProdConf.hpp.

96{ return s_frame_size; }

◆ __get_response_delay_str() [1/2]

static const std::string & dunedaq::appmodel::FakeDataProdConf::__get_response_delay_str ( )
inlinestaticnoexcept

Definition at line 97 of file FakeDataProdConf.hpp.

97{ return s_response_delay; }
static const std::string s_response_delay

◆ __get_response_delay_str() [2/2]

static const std::string & dunedaq::appmodel::FakeDataProdConf::__get_response_delay_str ( )
inlinestaticnoexcept

Definition at line 97 of file FakeDataProdConf.hpp.

97{ return s_response_delay; }

◆ __get_source_id_str() [1/2]

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

Definition at line 94 of file FakeDataProdConf.hpp.

94{ return s_source_id; }

◆ __get_source_id_str() [2/2]

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

Definition at line 94 of file FakeDataProdConf.hpp.

94{ return s_source_id; }

◆ __get_system_type_str() [1/2]

static const std::string & dunedaq::appmodel::FakeDataProdConf::__get_system_type_str ( )
inlinestaticnoexcept

Definition at line 93 of file FakeDataProdConf.hpp.

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

◆ __get_system_type_str() [2/2]

static const std::string & dunedaq::appmodel::FakeDataProdConf::__get_system_type_str ( )
inlinestaticnoexcept

Definition at line 93 of file FakeDataProdConf.hpp.

93{ return s_system_type; }

◆ __get_time_tick_diff_str() [1/2]

static const std::string & dunedaq::appmodel::FakeDataProdConf::__get_time_tick_diff_str ( )
inlinestaticnoexcept

Definition at line 95 of file FakeDataProdConf.hpp.

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

◆ __get_time_tick_diff_str() [2/2]

static const std::string & dunedaq::appmodel::FakeDataProdConf::__get_time_tick_diff_str ( )
inlinestaticnoexcept

Definition at line 95 of file FakeDataProdConf.hpp.

95{ return s_time_tick_diff; }

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::FakeDataProdConf::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Reimplemented from dunedaq::confmodel::ResourceBase.

Definition at line 89 of file FakeDataProdConf.cpp.

90 {
91 std::vector<const dunedaq::conffwk::DalObject *> vec;
92
93 if (!get(name, vec, upcast_unregistered, true))
94 throw_get_ex(name, s_class_name, this);
95
96 return vec;
97 }
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::FakeDataProdConf::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Reimplemented from dunedaq::confmodel::ResourceBase.

◆ get() [3/4]

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

Definition at line 99 of file FakeDataProdConf.cpp.

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

◆ get_fragment_type() [1/2]

const std::string & dunedaq::appmodel::FakeDataProdConf::get_fragment_type ( ) const
inline

Get "fragment_type" attribute value. Fragment type of the response.

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

Definition at line 274 of file FakeDataProdConf.hpp.

275 {
276 std::lock_guard scoped_lock(m_mutex);
277 check();
278 check_init();
279 return m_fragment_type;
280 }

◆ get_fragment_type() [2/2]

const std::string & dunedaq::appmodel::FakeDataProdConf::get_fragment_type ( ) const
inline

Get "fragment_type" attribute value. Fragment type of the response.

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

Definition at line 274 of file FakeDataProdConf.hpp.

275 {
276 std::lock_guard scoped_lock(m_mutex);
277 check();
278 check_init();
279 return m_fragment_type;
280 }

◆ get_frame_size() [1/2]

uint32_t dunedaq::appmodel::FakeDataProdConf::get_frame_size ( ) const
inline

Get "frame_size" attribute value. The size of a fake frame.

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

Definition at line 208 of file FakeDataProdConf.hpp.

209 {
210 std::lock_guard scoped_lock(m_mutex);
211 check();
212 check_init();
213 return m_frame_size;
214 }

◆ get_frame_size() [2/2]

uint32_t dunedaq::appmodel::FakeDataProdConf::get_frame_size ( ) const
inline

Get "frame_size" attribute value. The size of a fake frame.

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

Definition at line 208 of file FakeDataProdConf.hpp.

209 {
210 std::lock_guard scoped_lock(m_mutex);
211 check();
212 check_init();
213 return m_frame_size;
214 }

◆ get_response_delay() [1/2]

uint32_t dunedaq::appmodel::FakeDataProdConf::get_response_delay ( ) const
inline

Get "response_delay" attribute value. Wait for this amount of ns before sending the fragment.

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

Definition at line 241 of file FakeDataProdConf.hpp.

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

◆ get_response_delay() [2/2]

uint32_t dunedaq::appmodel::FakeDataProdConf::get_response_delay ( ) const
inline

Get "response_delay" attribute value. Wait for this amount of ns before sending the fragment.

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

Definition at line 241 of file FakeDataProdConf.hpp.

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

◆ get_source_id() [1/2]

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

Get "source_id" attribute value. The SourceID of this link.

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

Definition at line 142 of file FakeDataProdConf.hpp.

143 {
144 std::lock_guard scoped_lock(m_mutex);
145 check();
146 check_init();
147 return m_source_id;
148 }

◆ get_source_id() [2/2]

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

Get "source_id" attribute value. The SourceID of this link.

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

Definition at line 142 of file FakeDataProdConf.hpp.

143 {
144 std::lock_guard scoped_lock(m_mutex);
145 check();
146 check_init();
147 return m_source_id;
148 }

◆ get_system_type() [1/2]

const std::string & dunedaq::appmodel::FakeDataProdConf::get_system_type ( ) const
inline

Get "system_type" attribute value. The system type of the link.

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

Definition at line 109 of file FakeDataProdConf.hpp.

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

◆ get_system_type() [2/2]

const std::string & dunedaq::appmodel::FakeDataProdConf::get_system_type ( ) const
inline

Get "system_type" attribute value. The system type of the link.

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

Definition at line 109 of file FakeDataProdConf.hpp.

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

◆ get_time_tick_diff() [1/2]

uint32_t dunedaq::appmodel::FakeDataProdConf::get_time_tick_diff ( ) const
inline

Get "time_tick_diff" attribute value. Time tick difference between frames.

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

Definition at line 175 of file FakeDataProdConf.hpp.

176 {
177 std::lock_guard scoped_lock(m_mutex);
178 check();
179 check_init();
180 return m_time_tick_diff;
181 }

◆ get_time_tick_diff() [2/2]

uint32_t dunedaq::appmodel::FakeDataProdConf::get_time_tick_diff ( ) const
inline

Get "time_tick_diff" attribute value. Time tick difference between frames.

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

Definition at line 175 of file FakeDataProdConf.hpp.

176 {
177 std::lock_guard scoped_lock(m_mutex);
178 check();
179 check_init();
180 return m_time_tick_diff;
181 }

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::confmodel::ResourceBase.

Definition at line 66 of file FakeDataProdConf.cpp.

67 {
68 ResourceBase::init(init_children);
69
70 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
71
72 try {
79 }
80 catch (dunedaq::conffwk::Exception & ex) {
81 throw_init_ex(ex);
82 }
83 }
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
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::FakeDataProdConf::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::confmodel::ResourceBase.

◆ print() [1/2]

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

Print details of the FakeDataProdConf object.

Parameters are:

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

Reimplemented from dunedaq::confmodel::ResourceBase.

Definition at line 35 of file FakeDataProdConf.cpp.

36 {
37 check_init();
38
39 try {
40 const std::string str(indent+2, ' ');
41
42 if (print_header)
43 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
44
45
46 // print direct super-classes
47
49
50
51 // print direct attributes
52
59 }
60 catch (dunedaq::conffwk::Exception & ex) {
62 }
63 }
void p_hdr(std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
print object headers
Definition DalObject.cpp:65
static void p_error(std::ostream &s, dunedaq::conffwk::Exception &ex)
print error text
Definition DalObject.cpp:59
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the ResourceBase object.
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::FakeDataProdConf::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the FakeDataProdConf object.

Parameters are:

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

Reimplemented from dunedaq::confmodel::ResourceBase.

◆ set_fragment_type() [1/2]

void dunedaq::appmodel::FakeDataProdConf::set_fragment_type ( const std::string & value)
inline

Set "fragment_type" attribute value. Fragment type of the response.

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

Definition at line 290 of file FakeDataProdConf.hpp.

291 {
292 std::lock_guard scoped_lock(m_mutex);
293 check();
294 clear();
296 }
void set_by_ref(const std::string &name, T &value)
Set attribute value.

◆ set_fragment_type() [2/2]

void dunedaq::appmodel::FakeDataProdConf::set_fragment_type ( const std::string & value)
inline

Set "fragment_type" attribute value. Fragment type of the response.

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

Definition at line 290 of file FakeDataProdConf.hpp.

291 {
292 std::lock_guard scoped_lock(m_mutex);
293 check();
294 clear();
296 }

◆ set_frame_size() [1/2]

void dunedaq::appmodel::FakeDataProdConf::set_frame_size ( uint32_t value)
inline

Set "frame_size" attribute value. The size of a fake frame.

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

Definition at line 224 of file FakeDataProdConf.hpp.

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

◆ set_frame_size() [2/2]

void dunedaq::appmodel::FakeDataProdConf::set_frame_size ( uint32_t value)
inline

Set "frame_size" attribute value. The size of a fake frame.

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

Definition at line 224 of file FakeDataProdConf.hpp.

225 {
226 std::lock_guard scoped_lock(m_mutex);
227 check();
228 clear();
230 }

◆ set_response_delay() [1/2]

void dunedaq::appmodel::FakeDataProdConf::set_response_delay ( uint32_t value)
inline

Set "response_delay" attribute value. Wait for this amount of ns before sending the fragment.

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

Definition at line 257 of file FakeDataProdConf.hpp.

258 {
259 std::lock_guard scoped_lock(m_mutex);
260 check();
261 clear();
263 }

◆ set_response_delay() [2/2]

void dunedaq::appmodel::FakeDataProdConf::set_response_delay ( uint32_t value)
inline

Set "response_delay" attribute value. Wait for this amount of ns before sending the fragment.

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

Definition at line 257 of file FakeDataProdConf.hpp.

258 {
259 std::lock_guard scoped_lock(m_mutex);
260 check();
261 clear();
263 }

◆ set_source_id() [1/2]

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

Set "source_id" attribute value. The SourceID of this link.

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

Definition at line 158 of file FakeDataProdConf.hpp.

159 {
160 std::lock_guard scoped_lock(m_mutex);
161 check();
162 clear();
164 }

◆ set_source_id() [2/2]

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

Set "source_id" attribute value. The SourceID of this link.

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

Definition at line 158 of file FakeDataProdConf.hpp.

159 {
160 std::lock_guard scoped_lock(m_mutex);
161 check();
162 clear();
164 }

◆ set_system_type() [1/2]

void dunedaq::appmodel::FakeDataProdConf::set_system_type ( const std::string & value)
inline

Set "system_type" attribute value. The system type of the link.

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

Definition at line 125 of file FakeDataProdConf.hpp.

126 {
127 std::lock_guard scoped_lock(m_mutex);
128 check();
129 clear();
131 }

◆ set_system_type() [2/2]

void dunedaq::appmodel::FakeDataProdConf::set_system_type ( const std::string & value)
inline

Set "system_type" attribute value. The system type of the link.

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

Definition at line 125 of file FakeDataProdConf.hpp.

126 {
127 std::lock_guard scoped_lock(m_mutex);
128 check();
129 clear();
131 }

◆ set_time_tick_diff() [1/2]

void dunedaq::appmodel::FakeDataProdConf::set_time_tick_diff ( uint32_t value)
inline

Set "time_tick_diff" attribute value. Time tick difference between frames.

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

Definition at line 191 of file FakeDataProdConf.hpp.

192 {
193 std::lock_guard scoped_lock(m_mutex);
194 check();
195 clear();
197 }

◆ set_time_tick_diff() [2/2]

void dunedaq::appmodel::FakeDataProdConf::set_time_tick_diff ( uint32_t value)
inline

Set "time_tick_diff" attribute value. Time tick difference between frames.

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

Definition at line 191 of file FakeDataProdConf.hpp.

192 {
193 std::lock_guard scoped_lock(m_mutex);
194 check();
195 clear();
197 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 25 of file FakeDataProdConf.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 27 of file FakeDataProdConf.hpp.

◆ conffwk::DalObject

Definition at line 26 of file FakeDataProdConf.hpp.

◆ conffwk::DalRegistry

Definition at line 28 of file FakeDataProdConf.hpp.

Member Data Documentation

◆ m_fragment_type

std::string dunedaq::appmodel::FakeDataProdConf::m_fragment_type
private

Definition at line 79 of file FakeDataProdConf.hpp.

◆ m_frame_size

uint32_t dunedaq::appmodel::FakeDataProdConf::m_frame_size
private

Definition at line 77 of file FakeDataProdConf.hpp.

◆ m_response_delay

uint32_t dunedaq::appmodel::FakeDataProdConf::m_response_delay
private

Definition at line 78 of file FakeDataProdConf.hpp.

◆ m_source_id

uint32_t dunedaq::appmodel::FakeDataProdConf::m_source_id
private

Definition at line 75 of file FakeDataProdConf.hpp.

◆ m_system_type

std::string dunedaq::appmodel::FakeDataProdConf::m_system_type
private

Definition at line 74 of file FakeDataProdConf.hpp.

◆ m_time_tick_diff

uint32_t dunedaq::appmodel::FakeDataProdConf::m_time_tick_diff
private

Definition at line 76 of file FakeDataProdConf.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 40 of file FakeDataProdConf.hpp.

◆ s_fragment_type

static const std::string dunedaq::appmodel::FakeDataProdConf::s_fragment_type = "fragment_type"
inlinestatic

Definition at line 91 of file FakeDataProdConf.hpp.

◆ s_frame_size

static const std::string dunedaq::appmodel::FakeDataProdConf::s_frame_size = "frame_size"
inlinestatic

Definition at line 89 of file FakeDataProdConf.hpp.

◆ s_response_delay

static const std::string dunedaq::appmodel::FakeDataProdConf::s_response_delay = "response_delay"
inlinestatic

Definition at line 90 of file FakeDataProdConf.hpp.

◆ s_source_id

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

Definition at line 87 of file FakeDataProdConf.hpp.

◆ s_system_type

static const std::string dunedaq::appmodel::FakeDataProdConf::s_system_type = "system_type"
inlinestatic

Definition at line 86 of file FakeDataProdConf.hpp.

◆ s_time_tick_diff

static const std::string dunedaq::appmodel::FakeDataProdConf::s_time_tick_diff = "time_tick_diff"
inlinestatic

Definition at line 88 of file FakeDataProdConf.hpp.


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