Fawkes API  Fawkes Development Version
context_watcher.cpp
1 
2 /***************************************************************************
3  * context_watcher.cpp - Fawkes Lua Context Watcher
4  *
5  * Created: Thu Jan 01 15:18:14 2009
6  * Copyright 2006-2009 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Library General Public License for more details.
19  *
20  * Read the full text in the LICENSE.GPL file in the doc directory.
21  */
22 
23 #include <lua/context_watcher.h>
24 
25 namespace fawkes {
26 
27 /** @class LuaContextWatcher <lua/context_watcher.h>
28  * Lua context watcher.
29  * This interface allows for notification of LuaContext events.
30  * @author Tim Niemueller
31  *
32  * @fn void LuaContextWatcher::lua_restarted(LuaContext *context) = 0
33  * Lua restart event.
34  * This is called when the LuaContext has been restarted, for example when file
35  * watching is enabled and a file changed. It is executed after all packages have
36  * been loaded and variables have been set, but before the start script is run.
37  * The implementation may throw an exception if anything prevents it from using
38  * the new context properly.
39  * @param context This is a temporary LuaContext that is valid as long as the
40  * method is executed. It is a wrapper context around the new Lua state, just before
41  * the start script is run and it the calling context is switched to the new state
42  * (if no error occurs).
43  */
44 
45 /** Virtual empty destructor. */
47 {
48 }
49 
50 } // end of namespace fawkes
fawkes
fawkes::LuaContextWatcher::~LuaContextWatcher
virtual ~LuaContextWatcher()
Virtual empty destructor.
Definition: context_watcher.cpp:52