![]() |
Earth Observation Mission CFI Software EECommon Software User Manual |
![]() |
00001 //-------------------------------------------------------- 00002 // Earth Observation Mission CFI Software. Version 4.19 00003 //-------------------------------------------------------- 00004 00005 #ifndef _CFIERROR_H 00006 #define _CFIERROR_H 00007 00008 // -INCLUDE-------------------------------------------- 00009 #include "InternalError.h" 00010 #include "CfiClass.h" 00011 00012 #include <string> 00013 #include <vector> 00014 00015 // -NAMESPACES----------------------------------------- 00016 00017 namespace EECFI 00018 { 00019 00027 class EE_DECL CfiError 00028 { 00029 public: 00031 CfiError(); 00032 00034 explicit CfiError(InternalError const &ie); 00035 00037 CfiError(const CfiError &ce); 00038 00040 ~CfiError() NOEXCEPT; 00041 00043 long status() const; 00044 00046 void getCodes(std::vector<long> & codes, long &libCode, long &funCode) const; 00047 00049 std::vector<std::string> & getMsg(std::vector<std::string> &messages) const; 00050 00052 void addMsg(const std::string &msg); 00053 00054 protected: 00055 00056 private: 00057 InternalError *p; 00058 std::vector<std::string> extraMsgs; 00059 00061 CfiError const &operator=(CfiError const &ce); 00062 00064 long library; 00065 00066 }; 00067 00068 } // closing namespace 00069 #endif