Interpreter Class Reference

Command interpreter for scripts in the XML. More...

Inheritance diagram for Interpreter:

Inheritance graph
[legend]
Collaboration diagram for Interpreter:

Collaboration graph
[legend]

Public Member Functions

CmdGenericparseAction (const string &rAction, Theme *pTheme)
 Parse an action tag and returns a pointer on a command (the intepreter takes care of deleting it, don't do it yourself !).
VarBoolgetVarBool (const string &rName, Theme *pTheme)
 Returns the boolean variable corresponding to the given name.
VarPercentgetVarPercent (const string &rName, Theme *pTheme)
 Returns the percent variable corresponding to the given name.
VarListgetVarList (const string &rName, Theme *pTheme)
 Returns the list variable corresponding to the given name.
VarTreegetVarTree (const string &rName, Theme *pTheme)
 Returns the tree variable corresponding to the given name.
string getConstant (const string &rValue)
 Get a constant value.

Static Public Member Functions

static Interpreterinstance (intf_thread_t *pIntf)
 Get the instance of Interpreter.
static void destroy (intf_thread_t *pIntf)
 Delete the instance of Interpreter.

Detailed Description

Command interpreter for scripts in the XML.

Member Function Documentation

Interpreter * Interpreter::instance ( intf_thread_t pIntf  )  [static]

Get the instance of Interpreter.

Referenced by Builder::parseAction(), and Run().

void Interpreter::destroy ( intf_thread_t pIntf  )  [static]

Delete the instance of Interpreter.

References intf_sys_t::p_interpreter, and intf_thread_t::p_sys.

Referenced by Run().

CmdGeneric * Interpreter::parseAction ( const string &  rAction,
Theme pTheme 
)

Parse an action tag and returns a pointer on a command (the intepreter takes care of deleting it, don't do it yourself !).

References config_GetInt, SkinObject::getIntf(), Theme::getLayoutById(), Theme::getPopupById(), GenericLayout::getWindow(), Theme::getWindowById(), Theme::getWindowManager(), Theme::m_commands, msg_Err, and msg_Warn.

Referenced by Builder::parseAction().

VarBool * Interpreter::getVarBool ( const string &  rName,
Theme pTheme 
)

VarPercent * Interpreter::getVarPercent ( const string &  rName,
Theme pTheme 
)

Returns the percent variable corresponding to the given name.

References SkinObject::getIntf(), VarManager::getVar(), and VarManager::instance().

VarList * Interpreter::getVarList ( const string &  rName,
Theme pTheme 
)

Returns the list variable corresponding to the given name.

References SkinObject::getIntf(), VarManager::getVar(), and VarManager::instance().

VarTree * Interpreter::getVarTree ( const string &  rName,
Theme pTheme 
)

Returns the tree variable corresponding to the given name.

References SkinObject::getIntf(), VarManager::getVar(), and VarManager::instance().

string Interpreter::getConstant ( const string &  rValue  ) 

Get a constant value.

References VarManager::getConst(), SkinObject::getIntf(), and VarManager::instance().


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

Generated on Fri Nov 20 08:06:12 2009 for VLC by  doxygen 1.5.6