#include "CheckErrorCodeDefine.hpp" std::string GetErrorCodeInfo(int nErrorCode) { std::string str = ""; switch (nErrorCode) { case CHECK_OK: str = "OK"; break; case CHECK_ERROR_VERSION: str = "interface version or config version error"; break; case CHECK_ERROR_Config_Null: str = "prt* config is null"; break; case CHECK_ERROR_Config_Value: str = "config value error"; break; case CHECK_ERROR_Path_NULL: str = "file Path is Null"; break; case CHECK_ERROR_Mask_Empty: str = "mask Image is empty"; break; case CHECK_ERROR_Config_cutRoi: str = "config Rect Value error"; break; case CHECK_ERROR_CheckImg_Empty: str = "check image is empty"; break; default: break; } return str; }