00001 /*************************************************************************** 00002 Errors.h - description 00003 ------------------- 00004 begin : Son Nov 17 2002 00005 copyright : (C) 2002 by Christian Tusche 00006 email : christian.tusche@stud.uni-goettingen.de 00007 ***************************************************************************/ 00008 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 ***************************************************************************/ 00017 00018 #ifndef ERRORS_H 00019 #define ERRORS_H 00020 00021 00026 class Errors { 00027 public: 00028 Errors(); 00029 00030 ~Errors(); 00031 00032 typedef enum{ NoError, FileType, IO_Mode, Open, Read, Write, Unkown } Error_Type; 00033 00034 Errors &operator = ( Error_Type type ); 00035 bool operator == ( Error_Type type ); 00036 bool operator != ( Error_Type type ); 00037 00038 private: 00039 Error_Type err_type; 00040 }; 00041 00042 #endif