You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
#ifndef _CheckError_HPP_
|
|
#define _CheckError_HPP_
|
|
#include <string>
|
|
enum ERRORCODEDEFINE
|
|
{
|
|
CHECK_OK,
|
|
CHECK_ERROR_VERSION, // 参数或接口版本问题
|
|
CHECK_ERROR_Config_Null, // 参数指针为空
|
|
CHECK_ERROR_Config_Load, // 参数加载错误
|
|
CHECK_ERROR_Config_Value, // 参数值错误
|
|
CHECK_ERROR_Config_NodeIdxError, // 参数节点序号参数错误
|
|
CHECK_ERROR_Config_ImgIdxError, // 参数的 图片序号参数错误
|
|
CHECK_ERROR_Path_NULL, // 路径为空
|
|
CHECK_ERROR_Mask_Empty, // mask 图片为空
|
|
CHECK_ERROR_Config_cutRoi, // 参数的 roi 错误
|
|
CHECK_ERROR_CheckImg_Empty, // 检测 图片为空
|
|
CONFIG_ERROR_ConfigType, //缺陷类型 错误
|
|
};
|
|
static const std::string Error_Names[] =
|
|
{
|
|
"OK",
|
|
"interface version or config version error",
|
|
"prt* config is null",
|
|
"Load Config Fail",
|
|
"config value error",
|
|
"config Node idx error",
|
|
"config Images idx error",
|
|
"file Path is Null",
|
|
"mask Image is empty",
|
|
"config Rect Value error",
|
|
"check image is empty"};
|
|
#endif //_CORELOGICFACTORY_HPP_
|