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

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

Public Member Functions

void addSelectionColumn (std::string columnName)
 
void addSelectionColumn (std::string columnName, std::string lowSelectionValue, std::string highSelectionValue)
 
uint32_t getSelectionCount () const
 
std::string getSelectionColumn (uint32_t selectionIndex) const
 
bool hasSelectionValues (uint32_t selectionIndex) const
 
std::string getSelectionLowValue (uint32_t selectionIndex) const
 
std::string getSelectionHighValue (uint32_t selectionIndex) const
 
std::vector< std::stringgetSelectionColumns () const
 

Private Attributes

std::vector< std::string_selectionColumnList
 
std::vector< bool > _selectionValueFlagList
 
std::vector< std::string_selectionLowValueList
 
std::vector< std::string_selectionHighValueList
 

Detailed Description

Simple container class to hold the identifiers that specify a particular named global configuration.

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

Definition at line 19 of file ConfigDataSelector.h.

Member Function Documentation

void dbutils::daqconfig::ConfigDataSelector::addSelectionColumn ( std::string  columnName)

Definition at line 10 of file ConfigDataSelector.cpp.

References _selectionColumnList, _selectionHighValueList, _selectionLowValueList, and _selectionValueFlagList.

Referenced by dbutils::daqconfig::DDTConnectConfig::_fetchAllData(), dbutils::dcs::APDSettings::_fetchAllData(), dbutils::daqconfig::DCMHardwareConfig::_fetchASICRegisterValues(), dbutils::daqconfig::DCMConnectConfig::_fetchDCMApplicationParams(), dbutils::daqconfig::DCMRunConfig::_fetchDCMApplicationParams(), dbutils::daqconfig::DCMHardwareConfig::_fetchDCMApplicationParams(), dbutils::daqconfig::DCMRunConfig::_fetchDCMDataDevValues(), dbutils::daqconfig::DCMHardwareConfig::_fetchDCMDataDevValues(), dbutils::daqconfig::DCMHardwareConfig::_fetchDCMFirmwareLocations(), dbutils::daqconfig::DCMHardwareConfig::_fetchDCMFPGAParams(), dbutils::daqconfig::DCMHardwareConfig::_fetchDSODataRegulatorValues(), dbutils::daqconfig::DCMHardwareConfig::_fetchFEBEnableMasks(), dbutils::daqconfig::DCMHardwareConfig::_fetchFEBFirmwareLocations(), dbutils::daqconfig::DCMHardwareConfig::_fetchFEBPulserValues(), dbutils::daqconfig::DCMHardwareConfig::_fetchPixelEnableMasks(), dbutils::daqconfig::DCMHardwareConfig::_fetchPixelOffsets(), dbutils::daqconfig::DCMHardwareConfig::_fetchPixelThresholds(), dbutils::daqconfig::DCMHardwareConfig::_fetchTimingSystemValues(), dbutils::daqconfig::ConfigDataTree::ConfigDataTree(), dbutils::daqconfig::PixelEnableMasks::PixelEnableMasks(), and dbutils::daqconfig::PixelThresholds::PixelThresholds().

11 {
12  _selectionColumnList.push_back(columnName);
13  _selectionValueFlagList.push_back(false);
14  _selectionLowValueList.push_back("");
15  _selectionHighValueList.push_back("");
16 }
std::vector< std::string > _selectionHighValueList
std::vector< std::string > _selectionColumnList
std::vector< std::string > _selectionLowValueList
void dbutils::daqconfig::ConfigDataSelector::addSelectionColumn ( std::string  columnName,
std::string  lowSelectionValue,
std::string  highSelectionValue 
)

Definition at line 22 of file ConfigDataSelector.cpp.

References _selectionColumnList, _selectionHighValueList, _selectionLowValueList, _selectionValueFlagList, getSelectionColumn(), and string.

25 {
26  _selectionColumnList.push_back(columnName);
27  _selectionValueFlagList.push_back(true);
28  _selectionLowValueList.push_back(lowSelectionValue);
29  _selectionHighValueList.push_back(highSelectionValue);
30 }
std::vector< std::string > _selectionHighValueList
std::vector< std::string > _selectionColumnList
std::vector< std::string > _selectionLowValueList
std::string dbutils::daqconfig::ConfigDataSelector::getSelectionColumn ( uint32_t  selectionIndex) const

Definition at line 36 of file ConfigDataSelector.cpp.

References _selectionColumnList, and hasSelectionValues().

Referenced by dbutils::daqconfig::ConfigDataTree::_initialize(), addSelectionColumn(), and getSelectionCount().

37 {
38  if (selectionIndex >= _selectionColumnList.size()) {
39  return "";
40  }
41  return _selectionColumnList[selectionIndex];
42 }
std::vector< std::string > _selectionColumnList
std::vector<std::string> dbutils::daqconfig::ConfigDataSelector::getSelectionColumns ( ) const
inline

Definition at line 41 of file ConfigDataSelector.h.

References _selectionColumnList.

Referenced by dbutils::daqconfig::ConfigDataTree::getSelectorColumnNames().

41  {
42  return _selectionColumnList;
43  }
std::vector< std::string > _selectionColumnList
uint32_t dbutils::daqconfig::ConfigDataSelector::getSelectionCount ( ) const
inline
std::string dbutils::daqconfig::ConfigDataSelector::getSelectionHighValue ( uint32_t  selectionIndex) const

Definition at line 72 of file ConfigDataSelector.cpp.

References _selectionHighValueList.

Referenced by dbutils::daqconfig::ConfigDataTree::_initialize(), getSelectionCount(), and getSelectionLowValue().

73 {
74  if (selectionIndex >= _selectionHighValueList.size()) {
75  return "";
76  }
77  return _selectionHighValueList[selectionIndex];
78 }
std::vector< std::string > _selectionHighValueList
std::string dbutils::daqconfig::ConfigDataSelector::getSelectionLowValue ( uint32_t  selectionIndex) const

Definition at line 60 of file ConfigDataSelector.cpp.

References _selectionLowValueList, getSelectionHighValue(), and string.

Referenced by dbutils::daqconfig::ConfigDataTree::_initialize(), getSelectionCount(), and hasSelectionValues().

61 {
62  if (selectionIndex >= _selectionLowValueList.size()) {
63  return "";
64  }
65  return _selectionLowValueList[selectionIndex];
66 }
std::vector< std::string > _selectionLowValueList
bool dbutils::daqconfig::ConfigDataSelector::hasSelectionValues ( uint32_t  selectionIndex) const

Definition at line 48 of file ConfigDataSelector.cpp.

References _selectionValueFlagList, getSelectionLowValue(), and string.

Referenced by dbutils::daqconfig::ConfigDataTree::_initialize(), getSelectionColumn(), and getSelectionCount().

49 {
50  if (selectionIndex >= _selectionValueFlagList.size()) {
51  return false;
52  }
53  return _selectionValueFlagList[selectionIndex];
54 }

Member Data Documentation

std::vector<std::string> dbutils::daqconfig::ConfigDataSelector::_selectionColumnList
private
std::vector<std::string> dbutils::daqconfig::ConfigDataSelector::_selectionHighValueList
private

Definition at line 50 of file ConfigDataSelector.h.

Referenced by addSelectionColumn(), and getSelectionHighValue().

std::vector<std::string> dbutils::daqconfig::ConfigDataSelector::_selectionLowValueList
private

Definition at line 49 of file ConfigDataSelector.h.

Referenced by addSelectionColumn(), and getSelectionLowValue().

std::vector<bool> dbutils::daqconfig::ConfigDataSelector::_selectionValueFlagList
private

Definition at line 48 of file ConfigDataSelector.h.

Referenced by addSelectionColumn(), and hasSelectionValues().


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