Main Page | Modules | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members

AdsoLua Class Reference
[General]

#include <adsolua.h>

List of all members.

Public Member Functions

void declareFunction (char *name)
 Declare a Lua C-function name.

void declareTable (char *name)
 Declare a Lua C-table name.

void setVariable (char *name, int val)
 Set a global Lua variable.

void setVariable (char *name, char *str)
 Set a global Lua variable.

int callFunction (char *name, int val)
 Call a Lua function.

void addInterface (AdsoLuaInterface *intf)
 Add a Lua interface.

int doFile (char *filename)
 Execute a Lua file.

 AdsoLua ()
 ~AdsoLua ()

Friends

int globalCallback (lua_State *L)
 Global Lua callback for functions defined through AdsoLuaInterface.


Constructor & Destructor Documentation

AdsoLua::AdsoLua  ) 
 

AdsoLua::~AdsoLua  ) 
 


Member Function Documentation

void AdsoLua::addInterface AdsoLuaInterface intf  ) 
 

Add a Lua interface.

int AdsoLua::callFunction char *  name,
int  val
 

Call a Lua function.

void AdsoLua::declareFunction char *  name  ) 
 

Declare a Lua C-function name.

An interface that contains the definition of the function must be added with addInterface().

void AdsoLua::declareTable char *  name  ) 
 

Declare a Lua C-table name.

This function may be used to declare Lua tables for which indexing will cause a call to the and AdsoLuaInterface callback. This may be used to create a link between a normal C struct and the Lua table. An interface that handles the callback must be added with addInterface().

int AdsoLua::doFile char *  filename  ) 
 

Execute a Lua file.

void AdsoLua::setVariable char *  name,
char *  str
 

Set a global Lua variable.

void AdsoLua::setVariable char *  name,
int  val
 

Set a global Lua variable.


Friends And Related Function Documentation

int globalCallback lua_State *  L  )  [friend]
 

Global Lua callback for functions defined through AdsoLuaInterface.

The function will dispatch the function call to the appropriate AdsoLua object.


The documentation for this class was generated from the following files:
Generated on Mon Jul 21 10:44:48 2003 for Rover by doxygen 1.3.2