1 #ifndef _sevt_SEvent_h_
2 #define _sevt_SEvent_h_
4 #include <sevt/SEventSimData.h>
5 #include <utl/LameShadowPtr.h>
6 #include <utl/IteratorRange.h>
7 #include <sevt/Station.h>
8 #include <sevt/Header.h>
10 #include <boost/iterator/indirect_iterator.hpp>
11 #include <boost/iterator/filter_iterator.hpp>
69 typedef boost::filter_iterator<CandidateStationFilter,
85 typedef boost::filter_iterator<SilentStationFilter,
101 typedef boost::filter_iterator<RejectedStationFilter,
171 template<
class OrderingCriterion>
#define OFFLINE_MAKE_BOTH_ITERATOR_RANGES_ARG(_Iterator_, _ConstIterator_, _NamePrefix_, _Arg_)
const Meteo & GetMeteo() const
ConstStationIterator StationsBegin() const
Beginning of all const stations.
StationIterator StationsEnd()
End of all stations.
Interface class to hold simulated data belonging to surface events.
boost::filter_iterator< RejectedStationFilter, StationIterator > RejectedStationIterator
Iterator over rejected stations that match some rejection mask.
SilentStationIterator SilentStationsEnd()
bool HasStation(const int stationId) const
Check whether station exists.
#define OFFLINE_MAKE_BOTH_ITERATOR_RANGES(_Iterator_, _ConstIterator_, _NamePrefix_)
ConstCandidateStationIterator CandidateStationsEnd() const
int GetNumberOfStations() const
Get total number of stations in the event.
Interface class to access to the SD part of an event.
EventTrigger & GetTrigger()
Get the object with central trigger data, throw if n.a.
std::vector< Station * > InternalStationCollection
ConstRejectedStationIterator RejectedStationsEnd(const int rejectionMask=~0) const
boost::filter_iterator< CandidateStationFilter, StationIterator > CandidateStationIterator
Iterator over candidate stations.
SEvent & operator=(const SEvent &sEvent)
unsigned int fNErrorZeroStations
boost::filter_iterator< SilentStationFilter, ConstStationIterator > ConstSilentStationIterator
ConstSilentStationIterator SilentStationsEnd() const
bool HasSimData() const
check whether the SimData object exists
void SortStations(const OrderingCriterion ord) const
Sort the list of stations by the criterion specified in an OrderingCriterion object.
InternalStationCollection::iterator InternalStationIterator
utl::LameShadowPtr< Meteo > fMeteo
CandidateStationIterator CandidateStationsBegin()
boost::filter_iterator< RejectedStationFilter, ConstStationIterator > ConstRejectedStationIterator
class to hold data at Station level
ConstCandidateStationIterator CandidateStationsBegin() const
void SetNErrorZeroStations(const unsigned int n)
Set number of error zero stations.
StationIterator RemoveStation(const StationIterator &it)
remove a station from the list
SilentStationIterator SilentStationsBegin()
ConstRejectedStationIterator RejectedStationsBegin(const int rejectionMask=~0) const
ConstSilentStationIterator SilentStationsBegin() const
Interface class to access the Event Trigger (T3)
void MakeSimData()
Create the SimData object.
#define OFFLINE_CAST_CONST_METHOD(_Method_)
bool HasTrigger() const
check whether the central trigger object exists
void MakeTrigger()
Create the central trigger object.
int GetNErrorZeroStations() const
Get number of error zero stations (mapped over from IoSdEvent)
void MakeStation(const int stationId)
make a station with specifying Id, throw if invalid stationId
SEventSimData & GetSimData()
Get the object with simulated data, throw if n.a.
Weather data from monitoring information.
Station & GetStation(const int stationId)
retrieve station by id throw utl::NonExistentComponentException if n.a.
SEvent(const SEvent &sEvent)
boost::filter_iterator< SilentStationFilter, StationIterator > SilentStationIterator
Iterator over silent stations.
utl::LameShadowPtr< SEventSimData > fSimData
InternalStationCollection fStations
utl::LameShadowPtr< EventTrigger > fTrigger
StationIterator StationsBegin()
Beginning of all stations.
const sevt::Header & GetHeader() const
ConstStationIterator StationsEnd() const
End of all const stations.
const SEventSimData & GetSimData() const
RejectedStationIterator RejectedStationsBegin(const int rejectionMask=~0)
sevt::Header & GetHeader()
boost::indirect_iterator< InternalStationIterator, Station & > StationIterator
Iterator over all stations.
const EventTrigger & GetTrigger() const
CandidateStationIterator CandidateStationsEnd()
boost::indirect_iterator< InternalConstStationIterator, const Station & > ConstStationIterator
boost::filter_iterator< CandidateStationFilter, ConstStationIterator > ConstCandidateStationIterator
RejectedStationIterator RejectedStationsEnd(const int rejectionMask=~0)
InternalStationCollection::const_iterator InternalConstStationIterator