FitsError.h

00001 //      This is version 1.6 release dated Nov 2006
00002 //      Astrophysics Science Division,
00003 //      NASA/ Goddard Space Flight Center
00004 //      HEASARC
00005 //      http://heasarc.gsfc.nasa.gov
00006 //      e-mail: ccfits@legacy.gsfc.nasa.gov
00007 //
00008 //      Original author: Ben Dorman, L3-Communications EER Systems Inc.
00009 
00010 #ifndef FITSERROR_H
00011 #define FITSERROR_H 1
00012 #include <exception>
00013 #include <iostream>
00014 //#include <exception>
00015 //#include <iostream>
00016 //#include <stl.h>
00017 #include <string>
00018 using std::string;
00019 
00020 
00021 namespace CCfits {
00022 
00081   //    Base class for exceptions generated by CCfits that don't
00082   //    return FITS error codes (for example, array errors or seek errors).
00083 
00084 
00085 
00086   class FitsException 
00087   {
00088     public:
00089         FitsException (const string& msg, bool& silent);
00090 
00091     protected:
00092     private:
00093     private: //## implementation
00094   };
00095 
00096 
00097 
00098   class FitsError : public FitsException  //## Inherits: <unnamed>%399170BD017D
00099   {
00100     public:
00101         FitsError (int errornum, bool silent = true);
00102 
00103     protected:
00104     private:
00105         void printMsg (int error);
00106 
00107     private: //## implementation
00108   };
00109 
00110 
00111 
00112   class FitsFatal 
00113   {
00114     public:
00115         FitsFatal (const string& diag);
00116 
00117     protected:
00118     private:
00119     private: //## implementation
00120   };
00121 
00122   // Class CCfits::FitsException 
00123 
00124   // Class CCfits::FitsError 
00125 
00126   // Class CCfits::FitsFatal 
00127 
00128 } // namespace CCfits
00129 
00130 
00131 #endif

Generated on Fri Nov 3 17:09:05 2006 for CCfits by  doxygen 1.4.7