8#include "GaudiKernel/MsgStream.h"
22 from.open(filename.c_str());
24 while (from.getline(buffer, 200)) {
25 std::istringstream line(buffer);
31 for (
const auto& [name, station] : mysql.
stationMap()) {
39 for (
const auto& [name, station] : mysql.
stationMap()) {
41 m_theMap[name] = station.get();
56 for (
unsigned int k = 0; k <
m_selector.size(); k++) {
59 if (
sel.size() <= name.size()) {
61 for (
unsigned int i = 0; i <
sel.size(); i++) {
64 if (
sel[i] != name[i]) {
75 }
else if (selFlag == 2) {
76 for (
unsigned int k = 0; k <
m_selector.size(); k++) {
79 if (
sel.size() != name.size())
83 for (
unsigned int i = 0; i <
sel.size(); i++) {
86 if (
sel[i] != name[i]) {
93 log << MSG::INFO <<
" StationSelector: removing station " << name <<
endmsg;
const StationMap & stationMap() const
static std::atomic< int > m_selectType
std::vector< std::string > m_selector
bool select(const std::string &name)
static void SetSelectionType(int t)
StationMap::const_iterator StationIterator
StationSelector(const MYSQL &mysql, const std::string &filename)
singleton-like access to IMessageSvc via open function and helper
IMessageSvc * getMessageSvc(bool quiet=false)
Ensure that the Athena extensions are properly loaded.