00001 /* 00002 wefts_cleanup.h 00003 Cleanup interface. 00004 00005 $Id: wefts_cleanup.h,v 1.2 2003/08/15 00:43:58 jonnymind Exp $ 00006 --------------------------------------------- 00007 Begin : 2003-08-14 23:45 00008 Author : Giancarlo Niccolai 00009 00010 Last modified because: 00011 00012 */ 00013 00014 /************************************************************************** 00015 * This program is free software; you can redistribute it and/or modify * 00016 * it under the terms of the GNU Library General Public License as * 00017 * published by the Free Software Foundation; either version 2.1 of the * 00018 * License, or (at your option) any later version. * 00019 ***************************************************************************/ 00020 00021 #ifndef WT_CLEANUP_H 00022 #define WT_CLEANUP_H 00023 #include <stack> 00024 00025 namespace Wefts { 00026 00033 class CleanupHandler 00034 { 00035 public: 00041 virtual void handleCleanup( int code )=0; 00042 }; 00043 00044 typedef std::pair<CleanupHandler *, int > CleanupItem; 00045 typedef std::stack< CleanupItem > CleanupList; 00046 00047 } 00048 00049 #endif 00050 /* end of wefts_cleanup.h */