4 #include "base/SubEvent.h"
6 #include "base/TimeStamp.h"
13 typedef std::map<std::string, base::SubEvent*> EventsMap;
42 for (EventsMap::iterator iter =
fMap.begin(); iter !=
fMap.end(); iter++)
50 for (EventsMap::iterator iter =
fMap.begin(); iter !=
fMap.end(); iter++)
52 iter->second->Clear();
60 EventsMap::iterator iter =
fMap.find(name);
61 if (iter !=
fMap.end())
delete iter->second;
71 EventsMap::const_iterator iter =
fMap.find(name);
72 return (iter !=
fMap.end()) ? iter->second : 0;
Event - collection of several subevents.
Definition: Event.h:17
EventsMap & GetEventsMap()
Return events map.
Definition: Event.h:80
void ResetEvents()
reset events
Definition: Event.h:48
GlobalTime_t GetTriggerTime() const
get trigger time
Definition: Event.h:37
void AddSubEvent(const std::string &name, base::SubEvent *ev)
add subevent
Definition: Event.h:58
unsigned NumSubEvents() const
Return number of subevents.
Definition: Event.h:66
base::SubEvent * GetSubEvent(const std::string &name) const
Return subevent by name.
Definition: Event.h:69
GlobalTime_t fTriggerTm
trigger time
Definition: Event.h:21
EventsMap fMap
subevents map
Definition: Event.h:19
void DestroyEvents()
destroy all events
Definition: Event.h:40
void SetTriggerTime(GlobalTime_t tm)
set trigger time
Definition: Event.h:34
Event()
constructor
Definition: Event.h:25
virtual ~Event()
destructor
Definition: Event.h:28
SubEvent - base class for all event structures Need for: virtual destructor - to be able delete any i...
Definition: base/SubEvent.h:14