Earth Observation Mission CFI Software EECommon Software User Manual |
00001 //-------------------------------------------------------- 00002 // Earth Observation Mission CFI Software. Version 4.20 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 00035 CfiError(const CfiError& ce); 00036 00038 ~CfiError() NOEXCEPT; 00039 00041 long status() const; 00042 00044 void getCodes(std::vector<long>& codes, long& libCode, long& funCode) const; 00045 00047 std::vector<std::string>& getMsg(std::vector<std::string>& messages) const; 00048 00050 void addMsg(const std::string& msg); 00051 00052 protected: 00053 private: 00054 InternalError* p; 00055 std::vector<std::string> extraMsgs; 00056 00058 CfiError const& operator=(CfiError const& ce); 00059 00061 long library; 00062 }; 00063 00064 } // namespace EECFI 00065 #endif