|
ginga 1.0
The Ginga iTV middleware
|
#include <Event.h>

Public Types | |
| enum | Type { ATTRIBUTION = 0 , PRESENTATION , SELECTION , LOOKAT } |
| Event type. More... | |
| enum | State { OCCURRING = 0 , PAUSED , SLEEPING } |
| Event state. More... | |
| enum | Transition { ABORT = 0 , PAUSE , RESUME , START , STOP } |
| Event state transitions. More... | |
Public Member Functions | |
| Event (Event::Type, Object *, const string &id) | |
| Event::Type | getType () |
| Object * | getObject () |
| string | getId () |
| string | getFullId () |
| Event::State | getState () |
| string | toString () |
| bool | isLambda () |
| void | getInterval (Time *, Time *) |
| void | setInterval (Time, Time) |
| bool | hasLabel () |
| std::string | getLabel () |
| void | setLabel (const std::string &) |
| bool | getParameter (const string &, string *) |
| bool | setParameter (const string &, const string &) |
| bool | transition (Event::Transition) |
| Transitions event. | |
| void | reset () |
Static Public Member Functions | |
| static string | getEventTypeAsString (Event::Type) |
| static string | getEventStateAsString (Event::State) |
| static string | getEventTransitionAsString (Event::Transition) |
| static Event::Transition | getStringAsTransition (string str) |
Private Attributes | |
| Event::Type | _type |
| Event type. | |
| Object * | _object |
| Target object. | |
| string | _id |
| Event id. | |
| Event::State | _state |
| Event state. | |
| Time | _begin |
| Begin time. | |
| Time | _end |
| End time. | |
| std::string | _label |
| Label. | |
| map< string, string > | _parameters |
| Parameters. | |
Event state machine.
| enum ginga::Event::State |
Event state.
| Enumerator | |
|---|---|
| OCCURRING | Occurring. |
| PAUSED | Paused. |
| SLEEPING | Sleeping. |
Event state transitions.
| Enumerator | |
|---|---|
| ABORT | Abort. |
| PAUSE | Pause. |
| RESUME | Resume. |
| START | Start. |
| STOP | Stop. |
| enum ginga::Event::Type |
Event type.
| bool ginga::Event::transition | ( | Event::Transition | trans | ) |
Transitions event.
| trans | The desired transition. |
true if successful, or false otherwise.