#include <lua_interpreter.h>
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 |
Definition at line 28 of file lua_interpreter.h.
| Sampa::LuaInterpreter::LuaInterpreter | ( | const std::string & | init_script | ) |
| Sampa::LuaInterpreter::~LuaInterpreter | ( | ) |
| 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 |
| 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] |
| bool Sampa::LuaInterpreter::reach | ( | const std::string & | key, | |
| bool | create_when_absent | |||
| ) | const [protected] |
lua_State* Sampa::LuaInterpreter::L [protected] |
1.5.3