tdaq-develop-2025-02-12
|
Public Types | |
using | table_version_map_t = std::map< std::string, TableVersion > |
![]() | |
enum class | CONFIGURATION_MODE { DO_NOT_CREATE , XML_FILE , ARTDAQ_DATABASE } |
Public Member Functions | |
void | fill (TableBase *table, TableVersion version) const override |
read table from database More... | |
void | saveActiveVersion (const TableBase *table, bool overwrite=false) const override |
write table to database | |
TableVersion | findLatestVersion (const TableBase *table) const noexcept override |
find the latest table version by table type More... | |
std::set< std::string > | getAllTableNames (void) const override |
returns a list of all table names More... | |
std::set< TableVersion > | getVersions (const TableBase *table) const noexcept override |
find all table versions by table type More... | |
std::set< std::string > | getAllTableGroupNames (std::string const &filterString="") const override |
find all table groups in database More... | |
std::set< TableGroupKey > | getKeys (const std::string &groupName) const override |
find all configuration groups in database | |
TableGroupKey | findLatestGroupKey (const std::string &groupName) const noexcept override |
table_version_map_t | getTableGroupMembers (std::string const &tableGroup, bool includeMetaDataTable=false) const override |
return the contents of a table group More... | |
void | saveTableGroup (table_version_map_t const &memberMap, std::string const &tableGroup) const override |
create a new table group from the contents map More... | |
std::pair< std::string, TableVersion > | saveCustomJSON (const std::string &JSON, const std::string &documentNameToSave) const override |
std::string | loadCustomJSON (const std::string &documentNameToLoad, TableVersion documentVersionToLoad) const override |
![]() | |
TableVersion | saveNewVersion (TableBase *configuration, TableVersion temporaryVersion, TableVersion newVersion=TableVersion()) |
virtual void | saveTableGroup (std::map< std::string, TableVersion > const &, std::string const &) const |
Public Attributes | |
bool | IS_FILESYSTEM_DB = true |
Additional Inherited Members | |
![]() | |
static ConfigurationInterface * | getInstance (CONFIGURATION_MODE mode=CONFIGURATION_MODE::DO_NOT_CREATE) |
static bool | isVersionTrackingEnabled (void) |
static void | setVersionTrackingEnabled (bool setValue) |
static const CONFIGURATION_MODE & | getMode (void) |
![]() | |
static const std::string | GROUP_METADATA_TABLE_NAME |
![]() | |
ConfigurationInterface (void) | |
Protected constructor. | |
![]() | |
ConfigurationHandlerBase * | theConfigurationHandler_ |
Definition at line 17 of file Database_configInterface.h.
|
overridevirtual |
read table from database
read table from database version = -1 means latest version
Implements ots::ConfigurationInterface.
Definition at line 91 of file Database_configInterface.cc.
|
overridevirtualnoexcept |
find the latest configuration group key by group name if not found, return invalid
Reimplemented from ots::ConfigurationInterface.
Definition at line 301 of file Database_configInterface.cc.
|
overridevirtualnoexcept |
find the latest table version by table type
find the latest configuration version by configuration type
Implements ots::ConfigurationInterface.
Definition at line 161 of file Database_configInterface.cc.
|
overridevirtual |
find all table groups in database
find all configuration groups in database
Reimplemented from ots::ConfigurationInterface.
Definition at line 257 of file Database_configInterface.cc.
|
overridevirtual |
returns a list of all table names
returns a list of all configuration names
Reimplemented from ots::ConfigurationInterface.
Definition at line 224 of file Database_configInterface.cc.
|
overridevirtual |
return the contents of a table group
return the contents of a configuration group
Reimplemented from ots::ConfigurationInterface.
Definition at line 327 of file Database_configInterface.cc.
|
overridevirtualnoexcept |
find all table versions by table type
find all configuration versions by configuration type
Implements ots::ConfigurationInterface.
Definition at line 181 of file Database_configInterface.cc.
|
override |
create a new table group from the contents map
create a new configuration group from the contents map
Definition at line 576 of file Database_configInterface.cc.