33 #ifndef __H__UG__UG_SCRIPT__
34 #define __H__UG__UG_SCRIPT__
41 #include "externals/lua/lua.h"
42 #include "externals/lua/lauxlib.h"
43 #include "externals/lua/lualib.h"
Instances of this class or of derived classes are thrown if errors arise.
Definition: error.h:104
Registry for functions and classes that are exported to scripts and visualizations.
Definition: registry.h:138
Error class thrown if an error occurs during parsing.
Definition: lua_util.h:65
LuaError()
Definition: lua_util.h:68
bool bShowMsg
Definition: lua_util.h:73
bool show_msg() const
Definition: lua_util.h:70
LuaError(const char *msg)
Definition: lua_util.h:67
#define UG_API
Definition: ug_config.h:65
struct lua_State lua_State
Definition: lua_table_handle.h:40
int UGLuaPrintAllProcs(lua_State *L)
UGLuaPrint. Redirects LUA prints to UG_LOG.
Definition: lua_util.cpp:369
bool LoadUGScript_Parallel(const char *filename)
calls LoadUGScript with bDistributed=true
Definition: lua_util.cpp:192
int UGGetMetatable(lua_State *L)
Returns the metatable for the given class.
Definition: lua_util.cpp:433
int UGAlgebraCompiled(lua_State *L)
Returns if dimension is compiled into binary.
Definition: lua_util.cpp:564
void RegisterStdLUAFunctions(lua_State *L)
register functions like print and write directly to LUA (not using the ug registry)
Definition: lua_util.cpp:423
void ReleaseDefaultLuaState()
calls lua_close, which calls delete for all lua objects
Definition: lua_util.cpp:287
int UGIsBaseClass(lua_State *L)
Returns if a class contains a base class.
Definition: lua_util.cpp:489
bool GetAbsoluteUGScriptFilename(const string &filename, string &absoluteFilename)
Definition: lua_util.cpp:111
lua_State * GetDefaultLuaState()
returns the default lua state
Definition: lua_util.cpp:242
bool LoadUGScript(const char *_filename, bool bDistributedLoad, bool bThrowOnError)
Definition: lua_util.cpp:139
void RegisterDefaultLuaBridge(ug::bridge::Registry *reg, std::string grp)
registers lua only functionality at the registry
Definition: lua_util.cpp:214
void SetLuaUGArgs(lua_State *L, int argc, char *argv[])
Definition: lua_util.cpp:528
bool LoadUGScript_Single(const char *filename)
calls LoadUGScript with bDistributed=false . Avoid. (
Definition: lua_util.cpp:196
int UGGetClassName(lua_State *L)
Returns type of a userdata as string.
Definition: lua_util.cpp:444
int UGGetClassGroup(lua_State *L)
Returns classgroup of a userdata as string.
Definition: lua_util.cpp:465
int UGLuaWrite(lua_State *L)
UGLuaWrite. Redirects LUA prints to UG_LOG without adding newline at the end.
Definition: lua_util.cpp:380
bool ParseAndExecuteBuffer(const char *buffer, const char *bufferName)
Definition: lua_util.cpp:308
int UGLuaPrint(lua_State *L)
UGLuaPrint. Redirects LUA prints to UG_LOG.
Definition: lua_util.cpp:359
int UGDimCompiled(lua_State *L)
Returns if dimension is compiled into binary.
Definition: lua_util.cpp:549