Earth Observation Mission CFI Software EECommon Software User Manual |
00001 //-------------------------------------------------------- 00002 // Earth Observation Mission CFI Software. Version 4.18 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 00021 namespace EECFI 00022 { 00023 00031 class EE_DECL CfiError 00032 { 00033 public: 00035 CfiError(); 00036 00038 explicit CfiError(InternalError const &ie); 00039 00041 CfiError(const CfiError &ce); 00042 00044 ~CfiError() NOEXCEPT; 00045 00047 long status() const; 00048 00050 void getCodes(std::vector<long> & codes, long &libCode, long &funCode) const; 00051 00053 std::vector<std::string> & getMsg(std::vector<std::string> &messages) const; 00054 00056 void addMsg(const std::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 std::vector<std::string> extraMsgs; 00070 00072 CfiError const &operator=(CfiError const &ce); 00073 00074 }; 00075 00076 } // closing namespace 00077 #endif