00001 /* omerrorhandler.h 00002 * 00003 * ----START-LICENCE---- 00004 * Copyright 1999,2000,2001 BrightStation PLC 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License as 00008 * published by the Free Software Foundation; either version 2 of the 00009 * License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00019 * USA 00020 * -----END-LICENCE----- 00021 */ 00022 00023 #ifndef OM_HGUARD_OMERRORHANDLER_H 00024 #define OM_HGUARD_OMERRORHANDLER_H 00025 00026 #include "om/omerror.h" 00027 00029 class OmErrorHandler { 00030 private: 00032 void operator=(const OmErrorHandler ©me); 00033 00035 OmErrorHandler(const OmErrorHandler ©me); 00036 00053 virtual bool handle_error(OmError & error) = 0; 00054 00055 public: 00058 OmErrorHandler() {} 00059 00062 virtual ~OmErrorHandler() {}; 00063 00071 void operator() (OmError & error); 00072 }; 00073 00074 #endif /* OM_HGUARD_OMERRORHANDLER_H */