1 #include "otsdaq/ConfigurationInterface/DatabaseConfigurationInterface.h"
6 #include "otsdaq/ConfigurationInterface/ConfigurationInterface.h"
9 #include "artdaq-database/ConfigurationDB/configurationdbifc.h"
11 #include "artdaq-database/BasicTypes/basictypes.h"
12 using artdaq::database::basictypes::FhiclData;
13 using artdaq::database::basictypes::JsonData;
19 namespace configuration
25 bool MakeSerializable<TableBase const*>::writeDocumentImpl<JsonData>(JsonData& data)
const
29 _conf->getView().printJSON(ss);
31 data.json_buffer = ss.str();
37 std::string MakeSerializable<TableBase const*>::configurationNameImpl()
const
39 return _conf->getTableName();
44 bool MakeSerializable<TableBase*>::readDocumentImpl<JsonData>(JsonData
const& data)
46 int retVal = _conf->getViewP()->fillFromJSON(data.json_buffer);
52 std::string MakeSerializable<TableBase*>::configurationNameImpl()
const
54 return _conf->getTableName();