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

#include <CIBoardConf.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the CIBoardConf 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_receiver_host () const
 Get "receiver_host" attribute value.
 
void set_receiver_host (const std::string &value)
 Set "receiver_host" attribute value.
 
uint16_t get_receiver_port () const
 Get "receiver_port" attribute value.
 
void set_receiver_port (uint16_t value)
 Set "receiver_port" attribute value.
 
const dunedaq::confmodel::GeoIdget_geo_id () const
 Get "geo_id" relationship value.
 
void set_geo_id (const dunedaq::confmodel::GeoId *value)
 Set "geo_id" relationship value.
 
nlohmann::json get_cib_json (const dunedaq::confmodel::Session &session, std::optional< std::string > socket_host=std::nullopt, std::optional< uint16_t > socket_port=std::nullopt) const
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the CIBoardConf 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_receiver_host () const
 Get "receiver_host" attribute value.
 
void set_receiver_host (const std::string &value)
 Set "receiver_host" attribute value.
 
uint16_t get_receiver_port () const
 Get "receiver_port" attribute value.
 
void set_receiver_port (uint16_t value)
 Set "receiver_port" attribute value.
 
const dunedaq::confmodel::GeoIdget_geo_id () const
 Get "geo_id" relationship value.
 
void set_geo_id (const dunedaq::confmodel::GeoId *value)
 Set "geo_id" relationship value.
 
nlohmann::json get_cib_json (const dunedaq::confmodel::Session &session, std::optional< std::string > socket_host=std::nullopt, std::optional< uint16_t > socket_port=std::nullopt) const
 
- Public Member Functions inherited from dunedaq::confmodel::Resource
void parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Resource * > > &parents) const
 
bool is_disabled (const dunedaq::confmodel::ResourceTree &session) const
 
virtual bool compute_disabled_state (const std::set< std::string > &) const
 
void parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Resource * > > &parents) const
 
bool is_disabled (const dunedaq::confmodel::ResourceTree &session) const
 
virtual bool compute_disabled_state (const std::set< std::string > &) 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_receiver_host_str () noexcept
 
static const std::string & __get_receiver_port_str () noexcept
 
static const std::string & __get_geo_id_str () noexcept
 
static const std::string & __get_receiver_host_str () noexcept
 
static const std::string & __get_receiver_port_str () noexcept
 
static const std::string & __get_geo_id_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_receiver_host = "receiver_host"
 
static const std::string s_receiver_port = "receiver_port"
 
static const std::string s_geo_id = "geo_id"
 
- Static Public Attributes inherited from dunedaq::confmodel::Resource
static const std::string & s_class_name
 

Protected Member Functions

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

Private Attributes

std::string m_receiver_host
 
uint16_t m_receiver_port
 
const dunedaq::confmodel::GeoIdm_geo_id
 

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

Configuration of the CIB board itself

Definition at line 42 of file CIBoardConf.hpp.

Constructor & Destructor Documentation

◆ CIBoardConf() [1/2]

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

Definition at line 31 of file CIBoardConf.cpp.

31 :
34 m_geo_id (nullptr)
35
36 {
37 ;
38 }
const dunedaq::confmodel::GeoId * m_geo_id
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~CIBoardConf() [1/2]

dunedaq::appmodel::CIBoardConf::~CIBoardConf ( )
protectedvirtualnoexcept

Definition at line 89 of file CIBoardConf.cpp.

90 {
91 }

◆ CIBoardConf() [2/2]

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

◆ ~CIBoardConf() [2/2]

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

Member Function Documentation

◆ __get_geo_id_str() [1/2]

static const std::string & dunedaq::appmodel::CIBoardConf::__get_geo_id_str ( )
inlinestaticnoexcept

Definition at line 175 of file CIBoardConf.hpp.

175{ return s_geo_id; }
static const std::string s_geo_id

◆ __get_geo_id_str() [2/2]

static const std::string & dunedaq::appmodel::CIBoardConf::__get_geo_id_str ( )
inlinestaticnoexcept

Definition at line 175 of file CIBoardConf.hpp.

175{ return s_geo_id; }

◆ __get_receiver_host_str() [1/2]

static const std::string & dunedaq::appmodel::CIBoardConf::__get_receiver_host_str ( )
inlinestaticnoexcept

Definition at line 105 of file CIBoardConf.hpp.

105{ return s_receiver_host; }
static const std::string s_receiver_host

◆ __get_receiver_host_str() [2/2]

static const std::string & dunedaq::appmodel::CIBoardConf::__get_receiver_host_str ( )
inlinestaticnoexcept

Definition at line 105 of file CIBoardConf.hpp.

105{ return s_receiver_host; }

◆ __get_receiver_port_str() [1/2]

static const std::string & dunedaq::appmodel::CIBoardConf::__get_receiver_port_str ( )
inlinestaticnoexcept

Definition at line 106 of file CIBoardConf.hpp.

106{ return s_receiver_port; }
static const std::string s_receiver_port

◆ __get_receiver_port_str() [2/2]

static const std::string & dunedaq::appmodel::CIBoardConf::__get_receiver_port_str ( )
inlinestaticnoexcept

Definition at line 106 of file CIBoardConf.hpp.

106{ return s_receiver_port; }

◆ get() [1/4]

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

Definition at line 93 of file CIBoardConf.cpp.

94 {
95 std::vector<const dunedaq::conffwk::DalObject *> vec;
96
97 if (!get(name, vec, upcast_unregistered, true))
98 throw_get_ex(name, s_class_name, this);
99
100 return vec;
101 }
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::CIBoardConf::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::Resource.

◆ get() [3/4]

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

Definition at line 103 of file CIBoardConf.cpp.

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

◆ get_cib_json() [1/2]

nlohmann::json CIBoardConf::get_cib_json ( const dunedaq::confmodel::Session & session,
std::optional< std::string > socket_host = std::nullopt,
std::optional< uint16_t > socket_port = std::nullopt ) const

create the json configuration for the board

Definition at line 200 of file CIBApplication.cpp.

201{
202
203 // shut up compiler!
204 (void)session; // unused parameter
205 nlohmann::json json;
206 json["sockets"] = nlohmann::json::object();
207 if (socket_host.has_value())
208 {
209 json["sockets"]["receiver"] = nlohmann::json::object();
210 json["sockets"]["receiver"]["host"] = socket_host.value();
211 json["sockets"]["receiver"]["port"] = socket_port.value(); // NOLINT(build/unsigned)
212 }
213 else
214 {
215 json["sockets"]["receiver"] = nlohmann::json::object();
216 json["sockets"]["receiver"]["host"] = get_receiver_host();
217 json["sockets"]["receiver"]["port"] = get_receiver_port(); // NOLINT(build/unsigned)
218 }
219
220 TLOG() << "JSON frag : [" << json.dump() << "] " ;
221
222 return json;
223}
uint16_t get_receiver_port() const
Get "receiver_port" attribute value.
const std::string & get_receiver_host() const
Get "receiver_host" attribute value.
#define TLOG(...)
Definition macro.hpp:22

◆ get_cib_json() [2/2]

nlohmann::json dunedaq::appmodel::CIBoardConf::get_cib_json ( const dunedaq::confmodel::Session & session,
std::optional< std::string > socket_host = std::nullopt,
std::optional< uint16_t > socket_port = std::nullopt ) const

create the json configuration for the board

◆ get_geo_id() [1/2]

const dunedaq::confmodel::GeoId * dunedaq::appmodel::CIBoardConf::get_geo_id ( ) const
inline

Get "geo_id" relationship value.

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

Definition at line 185 of file CIBoardConf.hpp.

186 {
187 std::lock_guard scoped_lock(m_mutex);
188 check();
189 check_init();
190 if (!m_geo_id)
191 {
192 std::ostringstream text;
193 text << "relationship \"" << s_geo_id << "\" of object " << this << " is not set";
194 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
195 }
196 return m_geo_id;
197 }
#define ERS_HERE
Generic configuration exception.

◆ get_geo_id() [2/2]

const dunedaq::confmodel::GeoId * dunedaq::appmodel::CIBoardConf::get_geo_id ( ) const
inline

Get "geo_id" relationship value.

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

Definition at line 185 of file CIBoardConf.hpp.

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

◆ get_receiver_host() [1/2]

const std::string & dunedaq::appmodel::CIBoardConf::get_receiver_host ( ) const
inline

Get "receiver_host" attribute value.

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

Definition at line 116 of file CIBoardConf.hpp.

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

◆ get_receiver_host() [2/2]

const std::string & dunedaq::appmodel::CIBoardConf::get_receiver_host ( ) const
inline

Get "receiver_host" attribute value.

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

Definition at line 116 of file CIBoardConf.hpp.

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

◆ get_receiver_port() [1/2]

uint16_t dunedaq::appmodel::CIBoardConf::get_receiver_port ( ) const
inline

Get "receiver_port" attribute value.

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

Definition at line 147 of file CIBoardConf.hpp.

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

◆ get_receiver_port() [2/2]

uint16_t dunedaq::appmodel::CIBoardConf::get_receiver_port ( ) const
inline

Get "receiver_port" attribute value.

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

Definition at line 147 of file CIBoardConf.hpp.

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

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::confmodel::Resource.

Definition at line 73 of file CIBoardConf.cpp.

74 {
75 Resource::init(init_children);
76
77 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
78
79 try {
83 }
84 catch (dunedaq::conffwk::Exception & ex) {
85 throw_init_ex(ex);
86 }
87 }
void get(const std::string &name, T &value)
Get value of object's attribute or relationship.
void throw_init_ex(dunedaq::conffwk::Exception &ex)
throw object initialisation exception (i.e.
Definition DalObject.cpp:74
DalRegistry & p_registry
Configuration object.
ConfigObject p_obj
Config object used by given template object.
const T * _ref(ConfigObject &obj, const std::string &name, bool read_children)
Get signle value of object's relation and instantiate result with it (multi-thread safe).
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::confmodel::Resource.

◆ print() [1/2]

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

Print details of the CIBoardConf 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::Resource.

Definition at line 41 of file CIBoardConf.cpp.

42 {
43 check_init();
44
45 try {
46 const std::string str(indent+2, ' ');
47
48 if (print_header)
49 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
50
51
52 // print direct super-classes
53
55
56
57 // print direct attributes
58
61
62
63 // print direct relationships
64
66 }
67 catch (dunedaq::conffwk::Exception & ex) {
69 }
70 }
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 Resource object.
Definition Resource.cpp:22
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::CIBoardConf::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the CIBoardConf 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::Resource.

◆ set_geo_id() [1/2]

void dunedaq::appmodel::CIBoardConf::set_geo_id ( const dunedaq::confmodel::GeoId * value)

Set "geo_id" relationship value.

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

Definition at line 124 of file CIBoardConf.cpp.

125 {
126 _set_object(s_geo_id, value);
127 }
void _set_object(const std::string &name, const T *value)
Helper method for generated set single-value relationship methods.

◆ set_geo_id() [2/2]

void dunedaq::appmodel::CIBoardConf::set_geo_id ( const dunedaq::confmodel::GeoId * value)

Set "geo_id" relationship value.

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

◆ set_receiver_host() [1/2]

void dunedaq::appmodel::CIBoardConf::set_receiver_host ( const std::string & value)
inline

Set "receiver_host" attribute value.

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

Definition at line 131 of file CIBoardConf.hpp.

132 {
133 std::lock_guard scoped_lock(m_mutex);
134 check();
135 clear();
137 }
void set_by_ref(const std::string &name, T &value)
Set attribute value.

◆ set_receiver_host() [2/2]

void dunedaq::appmodel::CIBoardConf::set_receiver_host ( const std::string & value)
inline

Set "receiver_host" attribute value.

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

Definition at line 131 of file CIBoardConf.hpp.

132 {
133 std::lock_guard scoped_lock(m_mutex);
134 check();
135 clear();
137 }

◆ set_receiver_port() [1/2]

void dunedaq::appmodel::CIBoardConf::set_receiver_port ( uint16_t value)
inline

Set "receiver_port" attribute value.

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

Definition at line 162 of file CIBoardConf.hpp.

163 {
164 std::lock_guard scoped_lock(m_mutex);
165 check();
166 clear();
168 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_receiver_port() [2/2]

void dunedaq::appmodel::CIBoardConf::set_receiver_port ( uint16_t value)
inline

Set "receiver_port" attribute value.

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

Definition at line 162 of file CIBoardConf.hpp.

163 {
164 std::lock_guard scoped_lock(m_mutex);
165 check();
166 clear();
168 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 44 of file CIBoardConf.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 46 of file CIBoardConf.hpp.

◆ conffwk::DalObject

Definition at line 45 of file CIBoardConf.hpp.

◆ conffwk::DalRegistry

Definition at line 47 of file CIBoardConf.hpp.

Member Data Documentation

◆ m_geo_id

const dunedaq::confmodel::GeoId * dunedaq::appmodel::CIBoardConf::m_geo_id
private

Definition at line 95 of file CIBoardConf.hpp.

◆ m_receiver_host

std::string dunedaq::appmodel::CIBoardConf::m_receiver_host
private

Definition at line 93 of file CIBoardConf.hpp.

◆ m_receiver_port

uint16_t dunedaq::appmodel::CIBoardConf::m_receiver_port
private

Definition at line 94 of file CIBoardConf.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 59 of file CIBoardConf.hpp.

◆ s_geo_id

static const std::string dunedaq::appmodel::CIBoardConf::s_geo_id = "geo_id"
inlinestatic

Definition at line 173 of file CIBoardConf.hpp.

◆ s_receiver_host

static const std::string dunedaq::appmodel::CIBoardConf::s_receiver_host = "receiver_host"
inlinestatic

Definition at line 102 of file CIBoardConf.hpp.

◆ s_receiver_port

static const std::string dunedaq::appmodel::CIBoardConf::s_receiver_port = "receiver_port"
inlinestatic

Definition at line 103 of file CIBoardConf.hpp.


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