PILuaProgram
This commit is contained in:
@@ -1,3 +1,25 @@
|
||||
/*! \file piluaprogram.h
|
||||
* \brief Lua Program
|
||||
*/
|
||||
/*
|
||||
PIP - Platform Independent Primitives
|
||||
PILuaProgram
|
||||
Andrey Bychkov work.a.b@yandex.ru
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef PILUAPROGRAM_H
|
||||
#define PILUAPROGRAM_H
|
||||
|
||||
@@ -6,7 +28,23 @@
|
||||
class PILuaProgram
|
||||
{
|
||||
public:
|
||||
//! Constructs an empty PILuaProgram, initialize Lua context
|
||||
PILuaProgram();
|
||||
|
||||
//! Load Lua script from PIString
|
||||
bool load(const PIString & script);
|
||||
|
||||
//! Execute script
|
||||
bool prepare();
|
||||
|
||||
//! Get Lua Object or Function
|
||||
luabridge::LuaRef getGlobal(const PIString & name);
|
||||
|
||||
//! Return Lua global namespace
|
||||
luabridge::Namespace getGlobalNamespace();
|
||||
|
||||
private:
|
||||
PRIVATE_DECLARATION
|
||||
};
|
||||
|
||||
#endif // PILUAPROGRAM_H
|
||||
|
||||
@@ -1,3 +1,26 @@
|
||||
/*! \file pip_lua.h
|
||||
* \brief PIP Lua bindings
|
||||
*
|
||||
* This file declare conversions for PIP types via LuaBridge
|
||||
*/
|
||||
/*
|
||||
PIP - Platform Independent Primitives
|
||||
PIP Lua bindings
|
||||
Andrey Bychkov work.a.b@yandex.ru
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef PIP_LUA_H
|
||||
#define PIP_LUA_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user