00001 #ifndef __J2K__ErrorCode_HPP__ 00002 00003 #define __J2K__ErrorCode_HPP__ 00004 00005 00006 00007 #include <j2k/Fred/Basic.hpp> 00008 00009 #include <j2k/Fred/Boolean.hpp> 00010 00011 00012 00013 enum ErrorCodeValue { 00014 00015 Success, 00016 00017 MyError1, 00018 00019 MyError2, 00020 00021 MyError3 00022 00023 }; 00024 00025 00026 00027 class ErrorCode 00028 00029 { 00030 00031 public: 00032 00033 ErrorCode(); 00034 00035 ErrorCode(const ErrorCode& src); 00036 00037 ErrorCode(const ErrorCodeValue val); 00038 00039 virtual ~ErrorCode(); 00040 00041 00042 00043 ErrorCode& operator= (const ErrorCode& right); 00044 00045 00046 00047 BOOL operator!= (const ErrorCode& right) const; 00048 00049 BOOL operator== (const ErrorCode& right) const { 00050 00051 return !(*this != right); 00052 00053 }; 00054 00055 00056 00057 private: 00058 00059 ErrorCodeValue err; 00060 00061 BOOL* PboResp; 00062 00063 }; 00064 00065 00066 00067 #endif 00068