Public Member Functions | |
GlobalNameSpec (const std::string &configName, const std::string &dcmOperatingMode, const std::string &detectorId) | |
GlobalNameSpec (const std::string &configName, const std::string &dcmOperatingMode, const std::string &detectorId, const std::string ×tamp) | |
std::string | getConfigName () const |
std::string | getDCMOpMode () const |
std::string | getDetectorId () const |
std::string | getDetectorName () const |
bool | hasTimestamp () const |
std::string | getTimestamp () const |
bool | skipInvalidStateTest () const |
bool | isSlowControlsConfiguration () const |
bool | isDAQConfiguration () const |
int | getUsageCount () const |
std::string | toString (int overallIndent=0) const |
void | skipInvalidStateTest (bool setting) |
void | isSlowControlsConfiguration (bool setting) |
void | isDAQConfiguration (bool setting) |
void | setUsageCount (int value) |
void | setSortIndex (int value) |
bool | operator< (const GlobalNameSpec &other) const |
Private Member Functions | |
void | _addSpaces (std::string &workString, int count) const |
Private Attributes | |
std::string | _configName |
std::string | _dcmOperatingMode |
std::string | _detectorId |
bool | _hasTimestamp |
std::string | _timestamp |
bool | _skipInvalidStateTest |
bool | _isSlowControlsConfig |
int | _usageCount |
int | _sortIndex |
Simple container class to hold the identifiers that specify a particular named global configuration.
Definition at line 17 of file GlobalNameSpec.h.
dbutils::daqconfig::GlobalNameSpec::GlobalNameSpec | ( | const std::string & | configName, |
const std::string & | dcmOperatingMode, | ||
const std::string & | detectorId | ||
) |
Creates a global name specification object from the specified configuration name DCM operating mode, and detector ID.
configName | The named global configuration of interest. |
dcmOperatingMode | The operating mode of interest (e.g. DCS or DSO). |
detectorId | The detector of interest (e.g. NDOS or FarDet). |
Definition at line 16 of file GlobalNameSpec.cpp.
dbutils::daqconfig::GlobalNameSpec::GlobalNameSpec | ( | const std::string & | configName, |
const std::string & | dcmOperatingMode, | ||
const std::string & | detectorId, | ||
const std::string & | timestamp | ||
) |
Creates a global name specification object from the specified configuration name, DCM operating mode, detector ID, and timestamp.
configName | The named global configuration of interest. |
dcmOperatingMode | The operating mode of interest (e.g. DCS or DSO). |
detectorId | The detector of interest (e.g. NDOS or FarDet). |
timestamp | The date/time string that should be used to determine the time-based validity context for the named configuration. Supported formats include "yyyy-mm-dd HH:MM:SS". |
Definition at line 38 of file GlobalNameSpec.cpp.
|
private |
Adds a specified number of spaces to a string.
Definition at line 126 of file GlobalNameSpec.cpp.
References confusionMatrixTree::count, and compare_h5_caf::idx.
Referenced by setSortIndex(), and toString().
|
inline |
Definition at line 38 of file GlobalNameSpec.h.
References _configName.
Referenced by dbutils::daqconfig::NamedConfigUtils::getGlobalConfigDetailAncestry(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigId(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigIdAncestry(), dbutils::gui::TabbedSetOfTableEditors::saveChanges(), dbutils::gui::TabbedSetOfTreeEditors::saveChanges(), and dbutils::gui::SettingsDisplay::updateNamedConfiguration().
|
inline |
Definition at line 39 of file GlobalNameSpec.h.
References _dcmOperatingMode.
Referenced by dbutils::daqconfig::NamedConfigUtils::getGlobalConfigDetailAncestry(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigId(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigIdAncestry(), dbutils::gui::TabbedSetOfTableEditors::saveChanges(), dbutils::gui::TabbedSetOfTreeEditors::saveChanges(), and dbutils::gui::SettingsDisplay::updateNamedConfiguration().
|
inline |
Definition at line 40 of file GlobalNameSpec.h.
References _detectorId.
Referenced by dbutils::daqconfig::NamedConfigUtils::getGlobalConfigDetailAncestry(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigId(), and dbutils::daqconfig::NamedConfigUtils::getGlobalConfigIdAncestry().
|
inline |
Definition at line 41 of file GlobalNameSpec.h.
References _detectorId.
Referenced by dbutils::gui::SettingsDisplay::updateNamedConfiguration().
|
inline |
Definition at line 44 of file GlobalNameSpec.h.
References _timestamp.
Referenced by dbutils::daqconfig::NamedConfigUtils::getGlobalConfigDetailAncestry(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigId(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigIdAncestry(), and dbutils::gui::SettingsDisplay::updateNamedConfiguration().
|
inline |
|
inline |
Definition at line 43 of file GlobalNameSpec.h.
References _hasTimestamp.
Referenced by dbutils::daqconfig::NamedConfigUtils::getGlobalConfigDetailAncestry(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigId(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigIdAncestry(), and dbutils::gui::SettingsDisplay::updateNamedConfiguration().
|
inline |
Definition at line 48 of file GlobalNameSpec.h.
References _isSlowControlsConfig.
|
inline |
Definition at line 64 of file GlobalNameSpec.h.
References _isSlowControlsConfig.
|
inline |
Definition at line 47 of file GlobalNameSpec.h.
References _isSlowControlsConfig.
Referenced by dbutils::dcs::APDSettings::APDSettings(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigDetailAncestry(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigId(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigIdAncestry(), and dbutils::daqconfig::NamedConfigUtils::getSubsystemConfigIdFromGlobalName().
|
inline |
Definition at line 61 of file GlobalNameSpec.h.
References _isSlowControlsConfig.
bool dbutils::daqconfig::GlobalNameSpec::operator< | ( | const GlobalNameSpec & | other | ) | const |
Tests if this instance is less than the specified one.
Definition at line 94 of file GlobalNameSpec.cpp.
References _configName, _dcmOperatingMode, _detectorId, _sortIndex, _timestamp, and _usageCount.
Referenced by setSortIndex(), and toString().
Definition at line 68 of file GlobalNameSpec.h.
References _addSpaces(), _sortIndex, confusionMatrixTree::count, operator<(), fhicl::other, and string.
Referenced by dbutils::daqconfig::NamedConfigUtils::getAvailableGlobalConfigs().
Definition at line 67 of file GlobalNameSpec.h.
References _usageCount.
Referenced by dbutils::daqconfig::NamedConfigUtils::getAvailableGlobalConfigs().
|
inline |
Definition at line 46 of file GlobalNameSpec.h.
References _skipInvalidStateTest.
Referenced by dbutils::daqconfig::NamedConfigUtils::getGlobalConfigDetailAncestry(), dbutils::daqconfig::NamedConfigUtils::getGlobalConfigId(), and dbutils::daqconfig::NamedConfigUtils::getGlobalConfigIdAncestry().
|
inline |
Definition at line 58 of file GlobalNameSpec.h.
References _skipInvalidStateTest.
std::string dbutils::daqconfig::GlobalNameSpec::toString | ( | int | overallIndent = 0 | ) | const |
Creates a string representation of the name specification.
Definition at line 52 of file GlobalNameSpec.cpp.
References _addSpaces(), _configName, _dcmOperatingMode, _detectorId, _hasTimestamp, _isSlowControlsConfig, _skipInvalidStateTest, _timestamp, _usageCount, operator<(), and string.
Referenced by getUsageCount().
|
private |
Definition at line 80 of file GlobalNameSpec.h.
Referenced by getConfigName(), operator<(), and toString().
|
private |
Definition at line 81 of file GlobalNameSpec.h.
Referenced by getDCMOpMode(), operator<(), and toString().
|
private |
Definition at line 82 of file GlobalNameSpec.h.
Referenced by getDetectorId(), getDetectorName(), operator<(), and toString().
|
private |
Definition at line 84 of file GlobalNameSpec.h.
Referenced by hasTimestamp(), and toString().
|
private |
Definition at line 88 of file GlobalNameSpec.h.
Referenced by isDAQConfiguration(), isSlowControlsConfiguration(), and toString().
|
private |
Definition at line 87 of file GlobalNameSpec.h.
Referenced by skipInvalidStateTest(), and toString().
|
private |
Definition at line 91 of file GlobalNameSpec.h.
Referenced by operator<(), and setSortIndex().
|
private |
Definition at line 85 of file GlobalNameSpec.h.
Referenced by getTimestamp(), operator<(), and toString().
|
private |
Definition at line 90 of file GlobalNameSpec.h.
Referenced by getUsageCount(), operator<(), setUsageCount(), and toString().