![]() |
Earth Observation Mission CFI Software EECommon Software User Manual |
![]() |
00001 //-------------------------------------------------------- 00002 // Earth Observation Mission CFI Software. Version 4.11 00003 //-------------------------------------------------------- 00004 00005 //--------------------------------------------------------------- 00006 // CVS Info: $Id: CfiError.h,v 1.9 2014-02-20 20:02:25 cavm Exp $ 00007 //--------------------------------------------------------------- 00008 00009 #ifndef _CFIERROR_H 00010 #define _CFIERROR_H 00011 00012 // -INCLUDE-------------------------------------------- 00013 #include "InternalError.h" 00014 #include "CfiClass.h" 00015 00016 #include <string> 00017 #include <vector> 00018 00019 // -NAMESPACES----------------------------------------- 00020 using namespace std; 00021 00022 namespace EECFI 00023 { 00024 00032 class EE_DECL CfiError 00033 { 00034 public: 00036 CfiError(); 00037 00039 CfiError(InternalError const &ie); 00040 00042 CfiError(const CfiError &ce); 00043 00045 ~CfiError(); 00046 00048 long status(); 00049 00051 void getCodes(vector<long> & codes, long &libCode, long &funCode); 00052 00054 vector<string> & getMsg(vector<string> &messages); 00055 00057 void addMsg(string msg); 00058 00060 static void setVerbose(long lib); 00061 00063 static void setSilent(long lib); 00064 00065 protected: 00066 00067 private: 00068 InternalError *p; 00069 long library; 00070 vector<string> extraMsgs; 00071 00073 CfiError const &operator=(CfiError const &ce); 00074 00075 }; 00076 00077 } // closing namespace 00078 #endif