DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::dfmodules Namespace Reference

An ERS Issue for DataStore creation failure. More...

Namespaces

namespace  opmon

Classes

struct  __DataStoreConfTestDeriv_Registrator
class  DataStore
 comment More...
class  DataStoreConfTestDeriv
class  SummaryTextDataWriter
class  TriggerInhibitAgent

Typedefs

typedef std::vector< constDataStoreConfTestDeriv * >::const_iterator DataStoreConfTestDerivIterator

Functions

std::shared_ptr< DataStore > make_data_store (const std::string &type, const std::string &name, std::shared_ptr< dunedaq::appfwk::ConfigurationManager > mcfg, const std::string &writer_identifier)
 Load a DataSrore plugin and return a unique_ptr to the contained DAQModule class.
std::ostream & operator<< (std::ostream &s, const DataStoreConfTestDeriv &obj)

Variables

static struct dunedaq::dfmodules::__DataStoreConfTestDeriv_Registrator registrator

Detailed Description

An ERS Issue for DataStore creation failure.

An ERS Issue for DataStore problems in which it is reasonable to retry the operation.

An ERS Issue for DataStore problems in which it is reasonable to skip any warning or error message.

Typedef Documentation

◆ DataStoreConfTestDerivIterator

typedef std::vector< constDataStoreConfTestDeriv * >::const_iterator dunedaq::dfmodules::DataStoreConfTestDerivIterator

Definition at line 128 of file DataStoreConfTestDeriv.hpp.

Function Documentation

◆ make_data_store()

std::shared_ptr< DataStore > dunedaq::dfmodules::make_data_store ( const std::string & type,
const std::string & name,
std::shared_ptr< dunedaq::appfwk::ConfigurationManager > mcfg,
const std::string & writer_identifier )
inline

Load a DataSrore plugin and return a unique_ptr to the contained DAQModule class.

Parameters
plugin_nameName of the plugin, e.g. HDF5DataStore
jsonconfiguration for the DataStore
Returns
unique_ptr to created DataStore instance

Definition at line 157 of file DataStore.hpp.

161{
162 static cet::BasicPluginFactory bpf("duneDataStore", "make"); // NOLINT
163
164 std::shared_ptr<DataStore> ds;
165 try {
166 ds = bpf.makePlugin<std::shared_ptr<DataStore>>(type, name, mcfg, writer_identifier);
167 } catch (const cet::exception& cexpt) {
168 throw DataStoreCreationFailed(ERS_HERE, type, name, cexpt);
169 }
170
171 return ds;
172}
#define ERS_HERE

◆ operator<<()

std::ostream & dunedaq::dfmodules::operator<< ( std::ostream & s,
const DataStoreConfTestDeriv & obj )
inline

Definition at line 123 of file DataStoreConfTestDeriv.hpp.

124 {
125 return obj.print_object(s);
126 }
msgpack::object obj

Variable Documentation

◆ registrator

struct dunedaq::dfmodules::__DataStoreConfTestDeriv_Registrator dunedaq::dfmodules::registrator
static