Ginga  0.13.6.1771-df200
The iTV middleware.
Switch Class Reference

#include <Switch.h>

Inheritance diagram for Switch:
Collaboration diagram for Switch:

Public Member Functions

 Switch (const string &)
 
 ~Switch ()
 
string getObjectTypeAsString () override
 
bool startTransition (Event *, Event::Transition) override
 
void endTransition (Event *, Event::Transition) override
 
const list< pair< Object *, Predicate * > > * getRules ()
 
void addRule (Object *, Predicate *)
 
const set< Object * > * getChildren ()
 
ObjectgetChildById (const string &)
 
ObjectgetChildByIdOrAlias (const string &)
 
void addChild (Object *)
 
string getId ()
 
DocumentgetDocument ()
 
void initDocument (Document *)
 
CompositiongetParent ()
 
void initParent (Composition *)
 
virtual string toString ()
 
const list< string > * getAliases ()
 
bool hasAlias (const string &)
 
void addAlias (const string &)
 
const set< Event * > * getEvents ()
 
EventgetEvent (Event::Type, const string &)
 
EventgetAttributionEvent (const string &)
 
void addAttributionEvent (const string &)
 
EventgetPresentationEvent (const string &)
 
void addPresentationEvent (const string &, Time, Time)
 
EventgetSelectionEvent (const string &)
 
void addSelectionEvent (const string &)
 
EventgetLambda ()
 
bool isOccurring ()
 
bool isPaused ()
 
bool isSleeping ()
 
virtual string getProperty (const string &)
 
virtual void setProperty (const string &, const string &, Time dur=0)
 
list< pair< Action, Time > > * getDelayedActions ()
 
void addDelayedAction (Event *, Event::Transition, const string &value="", Time delay=0)
 
virtual void sendKeyEvent (const string &, bool)
 
virtual void sendTickEvent (Time, Time, Time)
 
bool getData (const string &, void **)
 
bool setData (const string &, void *, UserDataCleanFunc fn=nullptr)
 

Protected Member Functions

virtual void doStart ()
 
virtual void doStop ()
 

Protected Attributes

set< Object * > _children
 
string _id
 
Document_doc
 
Composition_parent
 
list< string > _aliases
 
Time _time
 
map< string, string > _properties
 
Event_lambda
 
set< Event * > _events
 
list< pair< Action, Time > > _delayed
 
UserData _udata
 

Private Attributes

list< pair< Object *, Predicate * > > _rules
 
Object_selected
 

Constructor & Destructor Documentation

GINGA_NAMESPACE_BEGIN Switch::Switch ( const string &  id)

References _selected.

Switch::~Switch ( )

References _rules.

Member Function Documentation

void Object::addAlias ( const string &  alias)
inherited
void Object::addAttributionEvent ( const string &  propName)
inherited
void Object::addDelayedAction ( Event event,
Event::Transition  transition,
const string &  value = "",
Time  delay = 0 
)
inherited
void Object::addPresentationEvent ( const string &  id,
Time  begin,
Time  end 
)
inherited
void Switch::addRule ( Object obj,
Predicate pred 
)
void Object::addSelectionEvent ( const string &  key)
inherited
void Object::doStart ( )
protectedvirtualinherited
void Object::doStop ( )
protectedvirtualinherited
const list< string > * Object::getAliases ( )
inherited

References Object::_aliases.

Event * Object::getAttributionEvent ( const string &  propName)
inherited
Object * Composition::getChildById ( const string &  id)
inherited
Object * Composition::getChildByIdOrAlias ( const string &  id)
inherited
const set< Object * > * Composition::getChildren ( )
inherited
bool Object::getData ( const string &  key,
void **  value 
)
inherited
list< pair< Action, Time > > * Object::getDelayedActions ( )
inherited

References Object::_delayed.

Document * Object::getDocument ( )
inherited

References Object::_doc.

Event * Object::getEvent ( Event::Type  type,
const string &  id 
)
inherited
const set< Event * > * Object::getEvents ( )
inherited

References Object::_events.

string Switch::getObjectTypeAsString ( )
overridevirtual

Implements Object.

Composition * Object::getParent ( )
inherited

References Object::_parent.

Referenced by Document::evalAction().

Event * Object::getPresentationEvent ( const string &  id)
inherited
string Object::getProperty ( const string &  name)
virtualinherited
const list< pair< Object *, Predicate * > > * Switch::getRules ( )

References _rules.

Event * Object::getSelectionEvent ( const string &  key)
inherited
bool Object::hasAlias ( const string &  alias)
inherited
void Object::initDocument ( Document doc)
inherited

References Object::_doc, and g_assert_nonnull().

Referenced by Document::addObject().

void Object::initParent ( Composition parent)
inherited
bool Object::isPaused ( )
inherited
bool Object::isSleeping ( )
inherited
void Object::sendKeyEvent ( const string &  ,
bool   
)
virtualinherited

Reimplemented in Context, and Media.

void Object::sendTickEvent ( Time  ,
Time  ,
Time   
)
virtualinherited
bool Object::setData ( const string &  key,
void *  value,
UserDataCleanFunc  fn = nullptr 
)
inherited
void Object::setProperty ( const string &  name,
const string &  value,
Time  dur = 0 
)
virtualinherited

Member Data Documentation

list<string> Object::_aliases
protectedinherited
list<pair<Action, Time> > Object::_delayed
protectedinherited
string Object::_id
protectedinherited
Event* Object::_lambda
protectedinherited
Composition* Object::_parent
protectedinherited
map<string, string> Object::_properties
protectedinherited
list<pair<Object *, Predicate *> > Switch::_rules
private
Object* Switch::_selected
private
UserData Object::_udata
protectedinherited

Referenced by Object::getData(), and Object::setData().


The documentation for this class was generated from the following files: