ug4
info_commands.h File Reference
#include "externals/lua/lua.h"
#include "registry/registry.h"
#include <string>
#include "common/ug_config.h"

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 
 ug::bridge
 

Functions

bool ug::bridge::ClassInstantiations (const char *classname)
 this function prints all objects which are of a certain class More...
 
string ug::bridge::FunctionInfo (lua_State *L, bool bComplete, const char *functionName=NULL)
 prints out information for a lua function (a function defined in lua script) More...
 
const ClassNameNode * ug::bridge::GetClassNameNode (lua_State *L, int index)
 
const std::vector< const char * > * ug::bridge::GetClassNames (lua_State *L, const char *name)
 
const std::vector< const char * > * ug::bridge::GetClassNames (lua_State *L, int index)
 
std::string ug::bridge::GetLuaFileAndLine (lua_State *L)
 returns the current file and line ( More...
 
std::string ug::bridge::GetLuaFileAndLineNumber (lua_State *L)
 returns the current file and line-number More...
 
std::string ug::bridge::GetLuaLine (lua_State *L)
 returns the current line-content More...
 
UG_API bool ug::bridge::GetLuaNamespace (lua_State *L, std::string name)
 
string ug::bridge::GetLUAScriptFunctionDefined (const char *functionName)
 returns file and line of defined script function More...
 
string ug::bridge::GetLuaTypeString (lua_State *L, int index)
 
string ug::bridge::LuaClassMethodInfo (lua_State *L, int index, const ExportedMethod &thefunc)
 prints out information for a method of a class More...
 
string ug::bridge::LuaCurrentLine (lua_State *L)
 
bool ug::bridge::LuaGetBoolean (lua_State *L, const char *name, bool notAvailable)
 returns a boolean to a lua-variable. More...
 
void ug::bridge::LuaGetLastLine (lua_State *L, lua_Debug entry)
 
double ug::bridge::LuaGetNumber (lua_State *L, const char *name, double notAvailable)
 returns an integer to a lua-variable. More...
 
string ug::bridge::LuaGetScriptFunctionString (lua_State *L, int index=-1)
 prints the source of a lua script function which is on top of the stack More...
 
string ug::bridge::LuaGetString (lua_State *L, const char *name, const char *notAvailable)
 returns the string to a lua-variable. More...
 
void ug::bridge::LuaPrintTable (lua_State *L, size_t iSpace, int index)
 prints the source of a lua script function which is on top of the stack More...
 
void ug::bridge::LuaStackTrace (int fromlevel)
 prints information about lua's call stack (file:line source). More...
 
std::string ug::bridge::LuaStackTraceString ()
 
string ug::bridge::LuaStackTraceString (lua_State *L, int fromLevel=0, int toLevel=-1)
 prints information about lua's call stack (file:line source). More...
 
bool ug::bridge::RegisterInfoCommands (bridge::Registry &reg, const char *grp)
 registers info commands TypeInfo, ClassUsage and others More...
 
int ug::bridge::UGTypeInfo (const char *p)
 Prints info to a lua type. More...