#pragma once #include #include 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 errorMsgs); static void GetErrorMsg(ErrorCode& errorCode, char* errorMsg, const int errorMaxLen); private: static char* _errorMsg; static ErrorCode _errorCode; };