3 #include <fwk/CentralConfig.h>
5 #include <sdet/Station.h>
9 #include <sevt/SEvent.h>
10 #include <sevt/Header.h>
12 #include <utl/Vector.h>
13 #include <utl/ErrorLogger.h>
14 #include <utl/String.h>
15 #include <utl/Reader.h>
16 #include <utl/TabularStream.h>
26 using namespace SdAreaSelectorWG;
31 namespace SdAreaSelectorWG {
34 template<
typename Iterator>
43 template<
typename Container>
45 typename Container::iterator
46 erase(Container&
c,
const typename Container::iterator it)
48 const typename Container::iterator nextIt =
next(it);
66 vector<int>::iterator its=fTankSelection.begin();
68 INFO(
"TankSelection enabled!");
80 SEvent& sEvent =
event.GetSEvent();
83 vector<int>::iterator its=fTankSelection.begin();
88 int cand = sCand->GetId();
90 for (vector<int>::iterator it=fTankSelection.begin(); it < fTankSelection.end(); ++it) {
100 yesid << selected <<
" requested station takes part in this event.";
102 yesid << selected <<
" requested stations take part in this event.";
108 noid <<
"None of the requested stations takes part in this event";
110 return eContinueLoop;
118 SdAreaSelector::Finish()
bool HasStation(const int stationId) const
Check whether station exists.
Interface class to access to the SD part of an event.
#define INFO(message)
Macro for logging informational messages.
boost::filter_iterator< CandidateStationFilter, StationIterator > CandidateStationIterator
Iterator over candidate stations.
void Init()
Initialise the registry.
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
CandidateStationIterator CandidateStationsBegin()
Iterator next(Iterator it)
Class representing a document branch.
void GetData(bool &b) const
Overloads of the GetData member template function.
ResultFlag
Flag returned by module methods to the RunController.
static CentralConfig * GetInstance()
Use this the first time you get an instance of central configuration.
Main configuration utility.
CandidateStationIterator CandidateStationsEnd()
Container::iterator erase(Container &c, const typename Container::iterator it)
utl::Branch GetTopBranch(const std::string &id)
Get top branch for moduleConfigLink with given id (XML files)