#include <luapp_function.hpp>
Public Member Functions | |
data () | |
Default constructor. | |
data (const std::string &sName, type mLuaType, argument *pParent) | |
Main constructor. | |
void | set (state *pLua, int iIndex) |
gets data from Lua | |
const std::string & | get_name () const |
Returns this argument's name. | |
const var & | get_value () const |
Returns this argument's value. | |
lua::type | get_type () const |
Returns this argument's Lua type. | |
Private Attributes | |
std::string | sName_ |
var | mValue_ |
type | mLuaType_ |
argument * | pParent_ |
Lua data.
Definition at line 15 of file luapp_function.hpp.
lua::data::data | ( | ) |
Default constructor.
Definition at line 6 of file luapp_data.cpp.
Main constructor.
sName | The name associated to this data | |
mLuaType | The expected type in Lua | |
pParent | A pointer to the argument that'll be using it |
Definition at line 10 of file luapp_data.cpp.
const std::string & lua::data::get_name | ( | ) | const |
Returns this argument's name.
Definition at line 35 of file luapp_data.cpp.
type lua::data::get_type | ( | ) | const |
Returns this argument's Lua type.
Definition at line 45 of file luapp_data.cpp.
const var & lua::data::get_value | ( | ) | const |
Returns this argument's value.
Definition at line 40 of file luapp_data.cpp.
void lua::data::set | ( | state * | pLua, | |
int | iIndex | |||
) |
gets data from Lua
pLua | The Lua state to use | |
iIndex | The index at which to get the value |
Definition at line 15 of file luapp_data.cpp.
type lua::data::mLuaType_ [private] |
Definition at line 56 of file luapp_function.hpp.
var lua::data::mValue_ [private] |
Definition at line 55 of file luapp_function.hpp.
argument* lua::data::pParent_ [private] |
Definition at line 57 of file luapp_function.hpp.
std::string lua::data::sName_ [private] |
Definition at line 54 of file luapp_function.hpp.