DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dbe::dbaccessor Class Reference

#include <dbaccessor.hpp>

Private Types

typedef dbholder::t_mutex t_mutex
 
typedef dbholder::t_lock t_lock
 

Static Private Member Functions

static cptr< dunedaq::conffwk::Configurationdbptr ()
 
static bool is_loaded ()
 

Friends

class confaccessor
 
class dbe::config::api::rwdacc
 
class dbe::config::api::get::file
 
class dbe::config::api::info::onclass
 

Detailed Description

Definition at line 54 of file dbaccessor.hpp.

Member Typedef Documentation

◆ t_lock

Definition at line 57 of file dbaccessor.hpp.

◆ t_mutex

Definition at line 56 of file dbaccessor.hpp.

Member Function Documentation

◆ dbptr()

cptr< Configuration > dbe::dbaccessor::dbptr ( )
staticprivate

Get a thread safe pointer to the configuration database

Returns

Definition at line 18 of file dbaccessor.cpp.

19{
22}
dbholder::t_lock t_lock
static cptr< dunedaq::conffwk::Configuration > database_concurrent_ptr
static dbe::types::common::type_mutex database_lock

◆ is_loaded()

bool dbe::dbaccessor::is_loaded ( )
staticprivate

Definition at line 26 of file dbaccessor.cpp.

27{
28return dbaccessor::dbptr().get() != nullptr;
29}
T * get()
Definition cptr.hpp:83
static cptr< dunedaq::conffwk::Configuration > dbptr()

Friends And Related Symbol Documentation

◆ confaccessor

friend class confaccessor
friend

Definition at line 67 of file dbaccessor.hpp.

◆ dbe::config::api::get::file

friend class dbe::config::api::get::file
friend

Definition at line 71 of file dbaccessor.hpp.

◆ dbe::config::api::info::onclass

friend class dbe::config::api::info::onclass
friend

Definition at line 73 of file dbaccessor.hpp.

◆ dbe::config::api::rwdacc

friend class dbe::config::api::rwdacc
friend

Definition at line 69 of file dbaccessor.hpp.


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