FitsError.h

00001 //   Read the documentation to learn more about C++ code generator
00002 //   versioning.
00003 //      This is version 2.1 release dated Nov 2008
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
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 
00091   //    Base class for exceptions generated by CCfits that don't
00092   //    return FITS error codes (for example, array errors or seek errors).
00093 
00094 
00095 
00096   class FitsException 
00097   {
00098     public:
00099         FitsException (const string& msg, bool& silent);
00100 
00101         const string& message () const;
00102 
00103     protected:
00104         void addToMessage (const string& msgQual);
00105 
00106     private:
00107     private: //## implementation
00108       // Data Members for Class Attributes
00109         string m_message;
00110 
00111   };
00112 
00113 
00114 
00115   class FitsError : public FitsException  //## Inherits: <unnamed>%399170BD017D
00116   {
00117     public:
00118         FitsError (int errornum, bool silent = true);
00119 
00120     protected:
00121     private:
00122         void printMsg (int error);
00123 
00124     private: //## implementation
00125   };
00126 
00127 
00128 
00129   class FitsFatal 
00130   {
00131     public:
00132         FitsFatal (const string& diag);
00133 
00134     protected:
00135     private:
00136     private: //## implementation
00137   };
00138 
00139   // Class CCfits::FitsException 
00140 
00141   inline const string& FitsException::message () const
00142   {
00143      return m_message;
00144   }
00145 
00146   // Class CCfits::FitsError 
00147 
00148   // Class CCfits::FitsFatal 
00149 
00150 } // namespace CCfits
00151 
00152 
00153 #endif

Generated on Thu Nov 6 10:44:38 2008 for CCfits by  doxygen 1.5.4