27 #ifndef FIFE_EVENTCHANNEL_EVENT_H 28 #define FIFE_EVENTCHANNEL_EVENT_H 89 virtual const std::string&
getName()
const {
90 const static std::string eventName(
"Event");
107 std::stringstream ss;
int32_t m_timestamp
Timestamp of the event.
virtual int32_t getTimeStamp() const
Gets the timestamp of the event.
virtual ~Event()
Destructor.
IEventSource * m_eventSource
The source of the event.
bool m_isConsumed
Indicates if the event is consumed.
virtual IEventSource * getSource() const
Gets the source of the event.
virtual void setSource(IEventSource *source)
Sets the source of the event.
Base class for all events.
virtual const std::string & getName() const
Gets the name of the event.
virtual std::string getAttrStr() const
Gets attribute string of the event.
virtual bool isConsumed() const
Checks if the event is consumed.
virtual std::string getDebugString() const
Gets the debugstring of the event.
virtual void setTimeStamp(int32_t timestamp)
Sets the timestamp of the event.
Representation of event source (a thing sending events)
virtual void consume()
Marks the event as consumed.