IDSpec.cpp
Go to the documentation of this file.
1 #include <DatabaseUtils/DAQConfig/IDSpec.h>
2 
3 namespace dbutils {
4 namespace daqconfig {
5 
6 /**
7  * Creates an ID-based configuration specification object from the
8  * specified ID. By default, new IDSpec instances are for global
9  * DAQ configurations.
10  *
11  * @param configId The ID of the named configuration of interest.
12  */
13 IDSpec::IDSpec(const int64_t& configId, CONFIG_LEVEL globalOrSubsystem,
14  MAJOR_SYSTEM_TYPE daqOrSlowControls) : _configId(configId)
15 {
16  _isSubsystemConfig = (globalOrSubsystem == SUBSYSTEM);
17  _isSlowControlsConfig = (daqOrSlowControls == SLOWCONTROLS);
18 }
19 
20 } // end of namespace daqconfig
21 } // end of namespace dbutils
IDSpec(const int64_t &configId, CONFIG_LEVEL globalOrSubsytem, MAJOR_SYSTEM_TYPE daqOrSlowControls)
Definition: IDSpec.cpp:13