ug4
|
#include <vector>
#include <string>
#include "externals/lua/lua.h"
#include "externals/lua/lauxlib.h"
#include "externals/lua/lualib.h"
#include "common/common.h"
#include "common/util/path_provider.h"
#include "registry/registry.h"
Go to the source code of this file.
Classes | |
class | ug::script::LuaError |
Error class thrown if an error occurs during parsing. More... | |
Namespaces | |
ug | |
the ug namespace | |
ug::script | |
Functions | |
UG_API bool | ug::script::GetAbsoluteUGScriptFilename (const std::string &filename, std::string &absoluteFilename) |
lua_State * | ug::script::GetDefaultLuaState () |
returns the default lua state More... | |
UG_API bool | ug::script::LoadUGScript (const char *filename, bool bDistributed) |
loads and parses a file. Several paths are tried if the file is not found. More... | |
bool | ug::script::LoadUGScript_Parallel (const char *filename) |
calls LoadUGScript with bDistributed=true More... | |
bool | ug::script::LoadUGScript_Single (const char *filename) |
calls LoadUGScript with bDistributed=false . Avoid. ( More... | |
bool | ug::script::ParseAndExecuteBuffer (const char *buffer, const char *bufferName) |
void | ug::script::RegisterDefaultLuaBridge (ug::bridge::Registry *reg, std::string grp="/ug4") |
registers lua only functionality at the registry More... | |
void | ug::script::RegisterStdLUAFunctions (lua_State *L) |
register functions like print and write directly to LUA (not using the ug registry) More... | |
void | ug::script::ReleaseDefaultLuaState () |
calls lua_close, which calls delete for all lua objects More... | |
void | ug::script::SetLuaUGArgs (lua_State *L, int argc, char *argv[]) |
int | ug::script::UGAlgebraCompiled (lua_State *L) |
Returns if dimension is compiled into binary. More... | |
int | ug::script::UGDimCompiled (lua_State *L) |
Returns if dimension is compiled into binary. More... | |
int | ug::script::UGGetClassGroup (lua_State *L) |
Returns classgroup of a userdata as string. More... | |
int | ug::script::UGGetClassName (lua_State *L) |
Returns type of a userdata as string. More... | |
int | ug::script::UGGetMetatable (lua_State *L) |
Returns the metatable for the given class. More... | |
int | ug::script::UGIsBaseClass (lua_State *L) |
Returns if a class contains a base class. More... | |
int | ug::script::UGLuaPrint (lua_State *L) |
UGLuaPrint. Redirects LUA prints to UG_LOG. More... | |
int | ug::script::UGLuaPrintAllProcs (lua_State *L) |
UGLuaPrint. Redirects LUA prints to UG_LOG. More... | |
int | ug::script::UGLuaWrite (lua_State *L) |
UGLuaWrite. Redirects LUA prints to UG_LOG without adding newline at the end. More... | |