Sampa::LuaInterpreter Class Reference

#include <lua_interpreter.h>

List of all members.

Public Member Functions

 LuaInterpreter (const std::string &init_script)
 ~LuaInterpreter ()
int get_int (const std::string &key, int &value) const
int get_string (const std::string &key, std::string &value) const
int get_bool (const std::string &key, bool &value) const
int get_time (const std::string &key, Time &value) const
int get_double (const std::string &key, double &value) const
int get_size (const std::string &key, int &value) const
int get_hex (const std::string &key, unsigned long long &value) const
bool set_int (const std::string &key, const int &value) const
bool set_string (const std::string &key, const std::string &value) const
bool set_bool (const std::string &key, const bool &value) const
bool set_double (const std::string &key, const double &value) const
bool set_time (const std::string &key, const Time value) const
bool do_file (const std::string &key)
lua_State * get_interpreter ()

Protected Member Functions

bool reach (const std::string &key, bool create_when_absent) const

Protected Attributes

lua_State * L


Detailed Description

Definition at line 28 of file lua_interpreter.h.


Constructor & Destructor Documentation

Sampa::LuaInterpreter::LuaInterpreter ( const std::string &  init_script  ) 

Sampa::LuaInterpreter::~LuaInterpreter (  ) 


Member Function Documentation

int Sampa::LuaInterpreter::get_int ( const std::string &  key,
int &  value 
) const

int Sampa::LuaInterpreter::get_string ( const std::string &  key,
std::string &  value 
) const

Referenced by Sampa::EnumeratedParameterInitializer< Enumerated >::retrieve().

int Sampa::LuaInterpreter::get_bool ( const std::string &  key,
bool &  value 
) const

int Sampa::LuaInterpreter::get_time ( const std::string &  key,
Time value 
) const

int Sampa::LuaInterpreter::get_double ( const std::string &  key,
double &  value 
) const

int Sampa::LuaInterpreter::get_size ( const std::string &  key,
int &  value 
) const

int Sampa::LuaInterpreter::get_hex ( const std::string &  key,
unsigned long long &  value 
) const

bool Sampa::LuaInterpreter::set_int ( const std::string &  key,
const int &  value 
) const

bool Sampa::LuaInterpreter::set_string ( const std::string &  key,
const std::string &  value 
) const

bool Sampa::LuaInterpreter::set_bool ( const std::string &  key,
const bool &  value 
) const

bool Sampa::LuaInterpreter::set_double ( const std::string &  key,
const double &  value 
) const

bool Sampa::LuaInterpreter::set_time ( const std::string &  key,
const Time  value 
) const

bool Sampa::LuaInterpreter::do_file ( const std::string &  key  ) 

lua_State* Sampa::LuaInterpreter::get_interpreter (  )  [inline]

Definition at line 45 of file lua_interpreter.h.

References L.

bool Sampa::LuaInterpreter::reach ( const std::string &  key,
bool  create_when_absent 
) const [protected]


Member Data Documentation

lua_State* Sampa::LuaInterpreter::L [protected]

Definition at line 48 of file lua_interpreter.h.

Referenced by get_interpreter().


The documentation for this class was generated from the following file:
Generated on Sat Feb 16 16:23:20 2008 for Sampa by  doxygen 1.5.3