![]() |
Earth Observation Mission CFI Software EECommon Software User Manual |
![]() |
00001 //--------------------------------------------------------------- 00002 // CVS Info: $Id: CfiError.h,v 1.3 2009/03/30 07:51:21 expcfi Exp $ 00003 //--------------------------------------------------------------- 00004 00005 #ifndef _CFIERROR_H 00006 #define _CFIERROR_H 00007 00008 // -INCLUDE-------------------------------------------- 00009 #include "InternalError.h" 00010 00011 #include <string> 00012 #include <vector> 00013 00014 // -NAMESPACES----------------------------------------- 00015 using namespace std; 00016 00017 namespace EECFI 00018 { 00019 00027 class CfiError 00028 { 00029 public: 00031 CfiError(); 00032 00034 CfiError(InternalError const &ie); 00035 00037 CfiError(const CfiError &ce); 00038 00040 ~CfiError(); 00041 00043 long status(); 00044 00046 void getCodes(vector<long> & codes, long &libCode, long &funCode); 00047 00049 vector<string> & getMsg(vector<string> &messages); 00050 00052 void addMsg(string msg); 00053 00055 static void setVerbose(long lib); 00056 00058 static void setSilent(long lib); 00059 00060 protected: 00061 00062 private: 00063 InternalError *p; 00064 long library; 00065 vector<string> extraMsgs; 00066 00068 CfiError const &operator=(CfiError const &ce); 00069 00070 }; 00071 00072 } // closing namespace 00073 #endif