fawkes::LuaContextWatcher Class Reference

Lua context watcher. More...

#include <lua/context_watcher.h>

Inheritance diagram for fawkes::LuaContextWatcher:

[legend]
List of all members.

Public Member Functions

virtual ~LuaContextWatcher ()
 Virtual empty destructor.
virtual void lua_restarted (LuaContext *context)=0
 Lua restart event.

Detailed Description

Lua context watcher.

This interface allows for notification of LuaContext events.

Author:
Tim Niemueller

Definition at line 33 of file context_watcher.h.


Constructor & Destructor Documentation

fawkes::LuaContextWatcher::~LuaContextWatcher (  )  [virtual]

Virtual empty destructor.

Definition at line 49 of file context_watcher.cpp.


Member Function Documentation

void fawkes::LuaContextWatcher::lua_restarted ( LuaContext context  )  [pure virtual]

Lua restart event.

This is called when the LuaContext has been restarted, for example when file watching is enabled and a file changed. It is executed after all packages have been loaded and variables have been set, but before the start script is run. The implementation may throw an exception if anything prevents it from using the new context properly.

Parameters:
context This is a temporary LuaContext that is valid as long as the method is executed. It is a wrapper context around the new Lua state, just before the start script is run and it the calling context is switched to the new state (if no error occurs).

Implemented in fawkes::LuaInterfaceImporter.


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:32:51 2011 for Fawkes API by  doxygen 1.4.7