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
#if 0
/* just to make Emacs auto-indent happy */
27
}
28
#endif
29
30
/** @class LuaContextWatcher <lua/context_watcher.h>
31
* Lua context watcher.
32
* This interface allows for notification of LuaContext events.
33
* @author Tim Niemueller
34
*
35
* @fn void LuaContextWatcher::lua_restarted(LuaContext *context) = 0
36
* Lua restart event.
37
* This is called when the LuaContext has been restarted, for example when file
38
* watching is enabled and a file changed. It is executed after all packages have
39
* been loaded and variables have been set, but before the start script is run.
40
* The implementation may throw an exception if anything prevents it from using
41
* the new context properly.
42
* @param context This is a temporary LuaContext that is valid as long as the
43
* method is executed. It is a wrapper context around the new Lua state, just before
44
* the start script is run and it the calling context is switched to the new state
45
* (if no error occurs).
46
*/
47
48
/** Virtual empty destructor. */
49
LuaContextWatcher::~LuaContextWatcher
()
50
{
51
}
52
53
54
}
// end of namespace fawkes
fawkes
Fawkes library namespace.
fawkes::LuaContextWatcher::~LuaContextWatcher
virtual ~LuaContextWatcher()
Virtual empty destructor.
Definition:
context_watcher.cpp:49
src
libs
lua
context_watcher.cpp
Generated by
1.8.13