QCErrorManager.hpp

Go to the documentation of this file.
00001 //*****************************************************************************//
00002 //                                                                             //
00003 //   Copyright (c) 2001                                                        //
00004 //      INRIA                                                                  //
00005 //      54600 VILLERS LES NANCY                                                //
00006 //      France                                                                 //
00007 //                                                                             //
00008 //*****************************************************************************//
00009 //                                                                             //
00010 //               *** NOTICE OF PROPRIETARY INFORMATION ***                     //
00011 //                                                                             //
00012 // The information contained in this file is considered proprietary and the    //
00013 // exclusive property of  INRIA. This information may not be disclosed,        //
00014 // duplicated or used, in whole or in part, for  any purpose  whatsoever       //
00015 // without express written authorization from INRIA                            //
00016 //                                                                             //
00017 //*****************************************************************************//
00018 
00019 
00020 #ifndef QC_ERROR_MANAGER_H_
00021 #define QC_ERROR_MANAGER_H_
00022 
00023 
00024 
00025 #include <string>
00026 #include <stdarg.h>
00027 #include <stdio.h>
00028 
00029 
00030 
00036 class QCErrorManager
00037 {
00038   
00040 public:
00041 
00045   QCErrorManager (void) {};
00046 
00050   ~QCErrorManager (void) {};
00051 
00052   
00057   bool  writeMsg (const string& kindOfMsg, char* fmt, ...) const;
00058 
00059 
00060 
00062 protected:
00063 
00064 
00066 private:
00067 
00068 
00070 public:
00071 
00075   static const char*      ERROR;
00076   
00080   static const char*      WARNING;
00081   
00085   static const char*      NONE;
00086   
00090   static const char*      BAD_PARAM;
00091   static const char*      NO_FILE;
00092   static const char*      NO_INFO_READ;
00093   static const char*      NO_INFO_READ2;
00094   static const char*      NO_MARK_CSTR;
00095   static const char*      NO_DIGIT;
00096   static const char*      NO_LINE_OF_FORMAT;
00097   static const char*      PB_ON_PARAM_TYPE_NUMBER;
00098   static const char*      NO_COORD_LINE;
00099   static const char*      NOT_ENOUGH_VALUE;
00100   static const char*      PB_AT_COORD_NUMBER;
00101   static const char*      NUMBER_ALREADY_USED;
00102   static const char*      UNDEFINED_ATOM_TYPE;
00103   static const char*      UNKNOWN_KEYWORD;
00104   static const char*      CALC_NOT_AVAILABLE;
00105   static const char*      DIAGO_FAILS;
00106   static const char*      BAD_ALLOC;
00107   static const char*      LBFGS_INPUT;
00108   static const char*      LBFGS_ABNO;
00109   static const char*      LBFGS_WARN;
00110   static const char*      TOO_MANY_ORBITALS;
00111   static const char*      TMP_MEMORY;
00112   static const char*      UNOPTIMAL_TMP_MEM;
00113   static const char*      OPEN_FILE_FAILS;
00114   static const char*      BAD_ELEC_ENERGY;
00115   static const char*      PARTITIONER_FAILS;
00116   static const char*      READ_PARTITION_FILE_FAILS;
00117   static const char*      RENUMEROTATION_FAILS;
00118   static const char*      TOO_MANY_ATOMS;
00119   static const char*      EMPTY_OR_FULL_SUBDOMAIN;
00120   static const char*      TOO_MANY_SUBDOMAINS;
00121   static const char*      TOO_MANY_SUBDOMAINS_TWO;
00122   static const char*      PURIFICATION_FAILS;
00123   static const char*      SAME_POSITION;
00124 
00125 
00126 
00127 protected:
00128 private:
00129 
00130 };
00131 
00132 #endif // QC_ERROR_MANAGER_H_

Generated on Sat Jan 28 21:07:26 2006 for QC++ by  doxygen 1.4.4