FitsError.h

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

Generated on Fri Oct 12 13:39:38 2007 for CCfits by  doxygen 1.4.7