#include <iso_event.h>
Public Member Functions | |
Event () | |
default constructor | |
Event (double pTime, double pDuration, EventTime pTimeMode) | |
create event | |
Event (const Event &pEvent) | |
copy constructor | |
Event (double pTime, const Event &pEvent) | |
copy constructor | |
virtual | ~Event () |
destructor | |
virtual Event * | copy () const=0 |
copy event | |
virtual Event * | copy (double pTime) const =0 |
copy event | |
base::int64 | time () const |
returns absolute time of event (in microsecs) | |
EventTime | timeMode () const |
return event time mode | |
base::int64 | duration () const |
returns event duration (in microsecs) | |
bool | started () const |
check if event has started executing | |
bool | finished () const |
check if event has completely executed | |
void | setTime (double pTime, EventTime pTimeMode) |
set time | |
void | setTime (base::int64 pTime) |
set time | |
virtual void | execute ()=0 throw (EventException) |
execute event | |
virtual base::String | info () const |
obtain textual event information | |
Protected Attributes | |
EventTime | mTimeMode |
base::int64 | mTime |
time mode | |
base::int64 | mDuration |
absolute time (in microsecs), this event is going to happen | |
bool | mStarted |
duration (in microsecs), over which the event takes place | |
bool | mFinished |
event started flag | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const Event &pEvent) |
print event information |
Event::Event | ( | ) |
default constructor
Event::Event | ( | double | pTime, | |
double | pDuration, | |||
EventTime | pTimeMode | |||
) |
create event
pTime | time in milisecs when event will take place | |
pDuration | duration over which the event takes place | |
pTimeMode | whether pTime is relative to current time or absolute (with regard to start of program) |
Event::Event | ( | const Event & | pEvent | ) |
copy constructor
pEvent | event to copy from |
Event::Event | ( | double | pTime, | |
const Event & | pEvent | |||
) |
copy constructor
pTime | time in milisecs when event will take place | |
pEvent | event to copy from |
Event::~Event | ( | ) | [virtual] |
destructor
virtual Event* iso::event::Event::copy | ( | ) | const [pure virtual] |
copy event
virtual Event* iso::event::Event::copy | ( | double | pTime | ) | const [pure virtual] |
copy event
pTime | time in milisecs when event will take place |
base::int64 Event::time | ( | ) | const |
returns absolute time of event (in microsecs)
event::EventTime Event::timeMode | ( | ) | const |
return event time mode
base::int64 Event::duration | ( | ) | const |
returns event duration (in microsecs)
bool Event::started | ( | ) | const |
check if event has started executing
bool Event::finished | ( | ) | const |
check if event has completely executed
void Event::setTime | ( | double | pTime, | |
EventTime | pTimeMode | |||
) |
set time
pTime | time (in milisecs) | |
pTimeMode | whether pTime is relative to current time or absolute (with regard to start of program) |
void Event::setTime | ( | base::int64 | pTime | ) |
set time
pTime | time (in microsecs) |
virtual void iso::event::Event::execute | ( | ) | throw (EventException) [pure virtual] |
execute event
base::String Event::info | ( | ) | const [virtual] |
obtain textual event information
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const Event & | pEvent | |||
) | [friend] |
print event information
pOstream | output stream | |
pEvent | event |
EventTime iso::event::Event::mTimeMode [protected] |
base::int64 iso::event::Event::mTime [protected] |
time mode
base::int64 iso::event::Event::mDuration [protected] |
absolute time (in microsecs), this event is going to happen
bool iso::event::Event::mStarted [protected] |
duration (in microsecs), over which the event takes place
bool iso::event::Event::mFinished [protected] |
event started flag