Earth Observation Mission CFI Software EECommon Software User Manual |
00001 //-------------------------------------------------------- 00002 // Earth Observation Mission CFI Software. Version 4.25 00003 //-------------------------------------------------------- 00004 00005 #ifndef CFIERROR_H 00006 #define CFIERROR_H 00007 00008 // -INCLUDE-------------------------------------------- 00009 #include <CfiClass.h> 00010 #include <InternalError.h> 00011 #include <string> 00012 #include <vector> 00013 00014 // -NAMESPACES----------------------------------------- 00015 00016 namespace EECFI 00017 { 00025 class EE_DECL CfiError 00026 { 00027 public: 00029 CfiError(); 00030 00032 explicit CfiError(InternalError const& ie); 00033 00036 CfiError(const CfiError& other); 00037 00039 ~CfiError() NOEXCEPT; 00040 00043 CfiError& operator=(const CfiError& other); 00044 00046 long status() const; 00047 00049 void getCodes(std::vector<long>& codes, long& libCode, long& funCode) const; 00050 00052 std::vector<std::string>& getMsg(std::vector<std::string>& messages) const; 00053 00055 void addMsg(const std::string& msg); 00056 00057 protected: 00058 private: 00059 InternalError* p; 00060 std::vector<std::string> extraMsgs; 00061 00063 long library; 00064 }; 00065 00066 } // namespace EECFI 00067 #endif