Earth Observation Mission CFI Software EECommon Software User Manual |
00001 //-------------------------------------------------------- 00002 // Earth Observation Mission CFI Software. Version 4.10 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 00015 #include <string> 00016 #include <vector> 00017 00018 // -NAMESPACES----------------------------------------- 00019 using namespace std; 00020 00021 namespace EECFI 00022 { 00023 00031 class CfiError 00032 { 00033 public: 00035 CfiError(); 00036 00038 CfiError(InternalError const &ie); 00039 00041 CfiError(const CfiError &ce); 00042 00044 ~CfiError(); 00045 00047 long status(); 00048 00050 void getCodes(vector<long> & codes, long &libCode, long &funCode); 00051 00053 vector<string> & getMsg(vector<string> &messages); 00054 00056 void addMsg(string msg); 00057 00059 static void setVerbose(long lib); 00060 00062 static void setSilent(long lib); 00063 00064 protected: 00065 00066 private: 00067 InternalError *p; 00068 long library; 00069 vector<string> extraMsgs; 00070 00072 CfiError const &operator=(CfiError const &ce); 00073 00074 }; 00075 00076 } // closing namespace 00077 #endif