eis/eqpalg/define/error_code.h
Huamonarch 224c2c45c4 Remove irrelevant comments from eqpalg source files
Cleaned 66 files across all eqpalg subdirectories:
- Removed commented-out dead code
- Removed redundant Chinese inline comments that restate variable/function names
- Removed trailing ///< annotations on self-explanatory fields
- Removed namespace closing comments
- Preserved all file headers, Doxygen documentation, and logic explanations
- No code changes — only comment removal
2026-05-09 13:30:09 +08:00

44 lines
1.2 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <string>
#include <vector>
using std::string;
using std::vector;
enum class ErrorType {
Success = 0,
Empty = 1,
EnCodeError = 2,
EqualError = 3,
NotEqualError = 4,
CalError = 5,
};
enum class ErrorLocation {
Success = 0,
Tags = 1,
ExeCyc = 2,
DataSource = 3,
DataValue = 4,
ActExp = 5,
HoldOn = 6,
FBExp = 7,
ResultExp = 8,
ResultParam = 9,
};
namespace ErrorCode {
const vector<string> ErrorTypeDescription = {"正确",
"为空",
"表达式存在中文等其它字符",
"相等应使用\"==\"而非其他",
"相等应使用\"!=\"而非其他",
"计算错误比如除数是0"};
const vector<string> ErrorLocationDescription = {
"正确", "tag点异常", "执行周期", "数据源", "数据项",
"动作表达式", "动作保持", "反馈表达式", "监控表达式","监控表达式参数"};
}
struct ErrorCodeType {
ErrorType error_type;
ErrorLocation error_location;
};