VarManager Class Reference

Inheritance diagram for VarManager:

Inheritance graph
[legend]
Collaboration diagram for VarManager:

Collaboration graph
[legend]

Public Member Functions

void registerVar (const VariablePtr &rcVar, const string &rName)
 Register a named variable in the manager.
void registerVar (const VariablePtr &rcVar)
 Register an anonymous variable in the manager.
VariablegetVar (const string &rName)
 Get a variable by its name (NULL if not found).
VariablegetVar (const string &rName, const string &rType)
 Get a variable by its name and check the type (NULL if not found).
VarTextgetTooltipText ()
 Get the tooltip text variable.
VarTextgetHelpText ()
 Get the help text variable.
void registerConst (const string &rName, const string &rValue)
 Register a constant value.
string getConst (const string &rName)
 Get a constant value by its name.

Static Public Member Functions

static VarManagerinstance (intf_thread_t *pIntf)
 Get the instance of VarManager.
static void destroy (intf_thread_t *pIntf)
 Delete the instance of VarManager.

Member Function Documentation

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

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

Delete the instance of VarManager.

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

Referenced by Run().

void VarManager::registerVar ( const VariablePtr rcVar,
const string &  rName 
)

void VarManager::registerVar ( const VariablePtr rcVar  ) 

Register an anonymous variable in the manager.

Variable * VarManager::getVar ( const string &  rName  ) 

Get a variable by its name (NULL if not found).

Referenced by Interpreter::getVarBool(), Interpreter::getVarList(), Interpreter::getVarPercent(), and Interpreter::getVarTree().

Variable * VarManager::getVar ( const string &  rName,
const string &  rType 
)

Get a variable by its name and check the type (NULL if not found).

References SkinObject::getIntf(), Variable::getType(), and msg_Warn.

VarText& VarManager::getTooltipText (  )  [inline]

VarText& VarManager::getHelpText (  )  [inline]

Get the help text variable.

Referenced by VarText::get(), TopWindow::processEvent(), and VarText::set().

void VarManager::registerConst ( const string &  rName,
const string &  rValue 
)

Register a constant value.

Referenced by IniFile::parseFile().

string VarManager::getConst ( const string &  rName  ) 

Get a constant value by its name.

Referenced by Interpreter::getConstant().


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

Generated on Sat Nov 21 08:06:34 2009 for VLC by  doxygen 1.5.6