Ginga  0.13.6.1771-df200
The iTV middleware.
Context Class Reference

#include <Context.h>

Inheritance diagram for Context:
Collaboration diagram for Context:

Public Member Functions

 Context (const string &)
 
virtual ~Context ()
 
string getObjectTypeAsString () override
 
string toString () override
 
string getProperty (const string &) override
 
void setProperty (const string &, const string &, Time dur=0) override
 
void sendKeyEvent (const string &, bool) override
 
void sendTickEvent (Time, Time, Time) override
 
bool startTransition (Event *, Event::Transition) override
 
void endTransition (Event *, Event::Transition) override
 
const list< Event * > * getPorts ()
 
void addPort (Event *)
 
const list< pair< list< Action >, list< Action > > > * getLinks ()
 
void addLink (list< Action >, list< Action >)
 
bool getLinksStatus ()
 
void setLinksStatus (bool)
 
const set< Object * > * getChildren ()
 
ObjectgetChildById (const string &)
 
ObjectgetChildByIdOrAlias (const string &)
 
void addChild (Object *)
 
string getId ()
 
DocumentgetDocument ()
 
void initDocument (Document *)
 
CompositiongetParent ()
 
void initParent (Composition *)
 
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 ()
 
list< pair< Action, Time > > * getDelayedActions ()
 
void addDelayedAction (Event *, Event::Transition, const string &value="", Time delay=0)
 
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< Event * > _ports
 
list< pair< list< Action >, list< Action > > > _links
 
bool _status
 

Constructor & Destructor Documentation

GINGA_NAMESPACE_BEGIN Context::Context ( const string &  id)

References _status.

Context::~Context ( )
virtual

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 Context::addLink ( list< Action conds,
list< Action acts 
)

References _links, and g_assert().

Referenced by ParserState::popNcl().

void Context::addPort ( Event event)
void Object::addPresentationEvent ( const string &  id,
Time  begin,
Time  end 
)
inherited
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.

const list< pair< list< Action >, list< Action > > > * Context::getLinks ( )

References _links.

Referenced by Document::evalAction().

bool Context::getLinksStatus ( )

References _status.

Referenced by Document::evalAction().

string Context::getObjectTypeAsString ( )
overridevirtual

Implements Object.

Composition * Object::getParent ( )
inherited

References Object::_parent.

Referenced by Document::evalAction().

const list< Event * > * Context::getPorts ( )

References _ports.

Event * Object::getPresentationEvent ( const string &  id)
inherited
string Context::getProperty ( const string &  )
overridevirtual

Reimplemented from Object.

References Object::getProperty().

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 Context::sendKeyEvent ( const string &  ,
bool   
)
overridevirtual

Reimplemented from Object.

void Context::sendTickEvent ( Time  total,
Time  diff,
Time  frame 
)
overridevirtual

Reimplemented from Object.

References Object::sendTickEvent().

bool Object::setData ( const string &  key,
void *  value,
UserDataCleanFunc  fn = nullptr 
)
inherited
void Context::setLinksStatus ( bool  status)

References _status, and GINGA_NAMESPACE_END.

void Context::setProperty ( const string &  name,
const string &  value,
Time  dur = 0 
)
overridevirtual

Reimplemented from Object.

References Object::setProperty().

string Context::toString ( )
overridevirtual

Reimplemented from Object.

References _links, _ports, ACT_TOSTRING, COND_TOSTRING, Object::toString(), and xstrbuild().

Member Data Documentation

list<string> Object::_aliases
protectedinherited
list<pair<Action, Time> > Object::_delayed
protectedinherited
string Object::_id
protectedinherited
Event* Object::_lambda
protectedinherited
list<pair<list<Action>,list<Action> > > Context::_links
private

Referenced by addLink(), getLinks(), and toString().

Composition* Object::_parent
protectedinherited
list<Event *> Context::_ports
private
map<string, string> Object::_properties
protectedinherited
bool Context::_status
private
UserData Object::_udata
protectedinherited

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


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