$search
00001 00002 /*************************************************************************** 00003 * context_watcher.h - Fawkes Lua Context Watcher 00004 * 00005 * Created: Thu Jan 01 15:16:40 2009 00006 * Copyright 2006-2010 Tim Niemueller [www.niemueller.de] 00007 * 2010 Carnegie Mellon University 00008 * 2010 Intel Labs Pittsburgh 00009 ****************************************************************************/ 00010 00011 /* This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Library General Public License for more details. 00020 * 00021 * Read the full text in the LICENSE.GPL file in the doc directory. 00022 */ 00023 00024 #ifndef __LUA_CONTEXT_WATCHER_H_ 00025 #define __LUA_CONTEXT_WATCHER_H_ 00026 00027 #ifdef USE_ROS 00028 # include <lua_utils/context.h> 00029 #else 00030 # include <lua/context.h> 00031 #endif 00032 00033 namespace fawkes { 00034 #if 0 /* just to make Emacs auto-indent happy */ 00035 } 00036 #endif 00037 00038 class LuaContextWatcher 00039 { 00040 public: 00041 virtual ~LuaContextWatcher(); 00042 00043 virtual void lua_init(LuaContext *context) = 0; 00044 virtual void lua_finalize(LuaContext *context) = 0; 00045 virtual void lua_restarted(LuaContext *context) = 0; 00046 }; 00047 00048 00049 } // end of namespace fawkes 00050 00051 #endif