|
| enum class | CONFIGURATION_MODE { DO_NOT_CREATE
, XML_FILE
, ARTDAQ_DATABASE
} |
| |
|
| virtual std::set< std::string > | getAllTableNames (void) const |
| |
|
virtual std::set< TableVersion > | getVersions (const TableBase *table) const =0 |
| |
| TableVersion | saveNewVersion (TableBase *table, TableVersion temporaryVersion, TableVersion newVersion=TableVersion()) |
| |
|
virtual std::set< std::string > | getAllTableGroupNames (const std::string &="") const |
| | group handling
|
| |
|
virtual std::set< TableGroupKey > | getKeys (const std::string &) const |
| |
|
virtual std::set< std::string > | findGroupsWithTable (std::string const &, TableVersion) const |
| |
| virtual std::map< std::string, TableVersion > | getTableGroupMembers (std::string const &, bool=false) const |
| |
returns the set of table groups that contain the specified table name and version
More...
|
| |
|
virtual void | saveTableGroup (std::map< std::string, TableVersion > const &, std::string const &) const |
| |
|
virtual std::pair< std::string, TableVersion > | saveCustomJSON (const std::string &JSON, const std::string &documentNameToSave) const |
| |
|
virtual std::string | loadCustomJSON (const std::string &documentNameToLoad, TableVersion documentVersionToLoad) const |
| |
|
virtual TableGroupKey | findLatestGroupKey (const std::string &) const |
| | otsdaq_database_migrate and otsdaq_import_system_aliases to compile
|
| |
|
virtual TableVersion | findLatestVersion (const TableBase *table) const =0 |
| | return INVALID if no existing versions
|
| |
|
virtual void | saveActiveVersion (const TableBase *table, bool overwrite=false) const =0 |
| |
|
|
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) |
| |
|
|
ConfigurationHandlerBase * | theConfigurationHandler_ |
| |
Definition at line 22 of file ConfigurationInterface.h.
◆ getAllTableNames()
| virtual std::set<std::string > ots::ConfigurationInterface::getAllTableNames |
( |
void |
| ) |
const |
|
inlinevirtual |
◆ getTableGroupMembers()
| virtual std::map<std::string , TableVersion > ots::ConfigurationInterface::getTableGroupMembers |
( |
std::string const & |
, |
|
|
bool |
= false |
|
) |
| const |
|
inlinevirtual |
returns the set of table groups that contain the specified table name and version
Caution: getTableGroupMembers must be carefully used.. the table versions are as initially defined for table versions aliases, i.e. not converted according to the metadata groupAliases!
Reimplemented in ots::DatabaseConfigurationInterface.
Definition at line 59 of file ConfigurationInterface.h.
◆ saveNewVersion()
saveNewVersion If newVersion is 0, then save the temporaryVersion as the next positive version number, save using the interface, and return the new version number If newVersion is non 0, attempt to save as given newVersion number, else throw exception. return TableVersion::INVALID on failure
Definition at line 79 of file ConfigurationInterface.cc.
The documentation for this class was generated from the following files: