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
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
#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;
|
||
};
|