Public Types | Public Member Functions | Private Attributes | List of all members
dbutils::daqconfig::IDSpec Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/DatabaseUtils/cxx/include/DAQConfig/IDSpec.h"

Public Types

enum  CONFIG_LEVEL { GLOBAL, SUBSYSTEM }
 
enum  MAJOR_SYSTEM_TYPE { DAQ, SLOWCONTROLS }
 

Public Member Functions

 IDSpec (const int64_t &configId, CONFIG_LEVEL globalOrSubsytem, MAJOR_SYSTEM_TYPE daqOrSlowControls)
 
int64_t getConfigId () const
 
bool isGlobalConfiguration () const
 
bool isSubsystemConfiguration () const
 
bool isDAQConfiguration () const
 
bool isSlowControlsConfiguration () const
 
void isGlobalConfiguration (bool setting)
 
void isSubsystemConfiguration (bool setting)
 
void isDAQConfiguration (bool setting)
 
void isSlowControlsConfiguration (bool setting)
 

Private Attributes

int64_t _configId
 
bool _isSubsystemConfig
 
bool _isSlowControlsConfig
 

Detailed Description

Simple container class to hold the ID-based parameters that specify a particular configuration.

Author
Kurt Biery
Version
Revision
1.1.24.1
Date
2019/09/27 00:07:03

Definition at line 18 of file IDSpec.h.

Member Enumeration Documentation

Enumerator
GLOBAL 
SUBSYSTEM 

Definition at line 22 of file IDSpec.h.

Enumerator
DAQ 
SLOWCONTROLS 

Definition at line 23 of file IDSpec.h.

Constructor & Destructor Documentation

dbutils::daqconfig::IDSpec::IDSpec ( const int64_t &  configId,
CONFIG_LEVEL  globalOrSubsystem,
MAJOR_SYSTEM_TYPE  daqOrSlowControls 
)
explicit

Creates an ID-based configuration specification object from the specified ID. By default, new IDSpec instances are for global DAQ configurations.

Parameters
configIdThe ID of the named configuration of interest.

Definition at line 13 of file IDSpec.cpp.

References _isSlowControlsConfig, _isSubsystemConfig, SLOWCONTROLS, and SUBSYSTEM.

14  : _configId(configId)
15 {
16  _isSubsystemConfig = (globalOrSubsystem == SUBSYSTEM);
17  _isSlowControlsConfig = (daqOrSlowControls == SLOWCONTROLS);
18 }

Member Function Documentation

int64_t dbutils::daqconfig::IDSpec::getConfigId ( ) const
inline
bool dbutils::daqconfig::IDSpec::isDAQConfiguration ( ) const
inline
void dbutils::daqconfig::IDSpec::isDAQConfiguration ( bool  setting)
inline

Definition at line 55 of file IDSpec.h.

References _isSlowControlsConfig.

55  {
56  _isSlowControlsConfig = (! setting);
57  }
bool dbutils::daqconfig::IDSpec::isGlobalConfiguration ( ) const
inline
void dbutils::daqconfig::IDSpec::isGlobalConfiguration ( bool  setting)
inline

Definition at line 48 of file IDSpec.h.

References _isSubsystemConfig.

48  {
49  _isSubsystemConfig = (! setting);
50  }
bool dbutils::daqconfig::IDSpec::isSlowControlsConfiguration ( ) const
inline
void dbutils::daqconfig::IDSpec::isSlowControlsConfiguration ( bool  setting)
inline

Definition at line 58 of file IDSpec.h.

References _isSlowControlsConfig.

58  {
59  _isSlowControlsConfig = setting;
60  }
bool dbutils::daqconfig::IDSpec::isSubsystemConfiguration ( ) const
inline

Definition at line 39 of file IDSpec.h.

References _isSubsystemConfig.

39 {return _isSubsystemConfig;}
void dbutils::daqconfig::IDSpec::isSubsystemConfiguration ( bool  setting)
inline

Definition at line 51 of file IDSpec.h.

References _isSubsystemConfig.

51  {
52  _isSubsystemConfig = setting;
53  }

Member Data Documentation

int64_t dbutils::daqconfig::IDSpec::_configId
private

Definition at line 64 of file IDSpec.h.

Referenced by getConfigId().

bool dbutils::daqconfig::IDSpec::_isSlowControlsConfig
private

Definition at line 66 of file IDSpec.h.

Referenced by IDSpec(), isDAQConfiguration(), and isSlowControlsConfiguration().

bool dbutils::daqconfig::IDSpec::_isSubsystemConfig
private

Definition at line 65 of file IDSpec.h.

Referenced by IDSpec(), isGlobalConfiguration(), and isSubsystemConfiguration().


The documentation for this class was generated from the following files: