1234567891011121314151617181920212223242526 |
- #pragma once
- #include <opencv2/opencv.hpp>
- #include <cstring>
- enum ErrorCode
- {
- None = 0,
- DecodeError = 1,
- ConvertError = 2,
- CannyError = 3,
- ImageDiffError = 4,
- JudgeError = 5,
- };
- class ErrorMsg
- {
- public:
- ~ErrorMsg();
- static void SetErrorMsg(ErrorCode errorCode, std::vector<const char*> errorMsgs);
- static void GetErrorMsg(ErrorCode& errorCode, char* errorMsg, const int errorMaxLen);
- private:
- static char* _errorMsg;
- static ErrorCode _errorCode;
- };
|