00001
00002
00003 #pragma once
00004 #include "ippdme/ippdme.h"
00005 #include "ippdme/ippErrorNameType.h"
00006
00007
00008 typedef enum ippParserCmdErrorId
00009 {
00010 OK = 0,
00011 ARGUMENT_FIRST_PART_MUST_BE_TOOL_OR_FOUNDTOOL,
00012 ARGUMENT_FOURTH_PART_MUST_BE_ACT,
00013 ARGUMENT_FOURTH_PART_BAD,
00014 ARGUMENT_MUST_BE_A_NUMBER,
00015 ARGUMENT_MUST_BE_EVENT_TAG,
00016 ARGUMENT_MUST_BE_INTEGER,
00017 ARGUMENT_MUST_BE_POSITIVE,
00018 ARGUMENT_MUST_BE_STRING,
00019 ARGUMENT_MUST_END_WITH_EMPTY_PARENTHESES,
00020 ARGUMENT_MUST_END_WITH_NUMBER_IN_PARENTHESES,
00021 ARGUMENT_SECOND_PART_BAD,
00022 ARGUMENT_SECOND_PART_MUST_BE_GOTOPAR_OR_PTMEASPAR,
00023 ARGUMENT_THIRD_PART_BAD,
00024 BAD_ARGUMENTS,
00025 BAD_CHARACTER_AFTER_COMMAND_END,
00026 BAD_CHARACTER_AFTER_KEYWORD,
00027 BAD_COMMAND_ARGUMENTS,
00028 BAD_COMMAND_NAME,
00029 BAD_DOTS,
00030 BAD_E_NUMBER_EXPONENT_MUST_HAVE_ONE_TWO_OR_THREE_DIGITS,
00031 BAD_FIRST_ARGUMENT,
00032 BAD_IJK_NUMBERS,
00033 BAD_KEYWORD,
00034 BAD_NUMBER_MORE_THAN_16_DIGITS,
00035 BAD_NUMBER_NO_DIGITS,
00036 BAD_NUMBER_OF_THROUGHS,
00037 BAD_NUMBER_TWO_DECIMAL_POINTS,
00038 BAD_STRING,
00039 BAD_TAG_CHARACTER,
00040 C_ARGUMENT_USED_TWICE,
00041 DIAMETER_MUST_BE_POSITIVE,
00042 DIS_ARGUMENT_USED_TWICE,
00043 DIS_MUST_BE_FOLLOWED_BY_NUMBER_IN_PARENS,
00044 ER_ARGUMENT_USED_TWICE,
00045 EVENT_COMMAND_MUST_HAVE_EVENT_TAG,
00046 IJK_ARGUMENT_USED_TWICE,
00047 IJK_NOT_FOLLOWED_BY_ARGIJK,
00048 LMN_ARGUMENT_USED_TWICE,
00049 LMN_NOT_FOLLOWED_BY_ARGIJK,
00050 ILLEGAL_SPACE,
00051 MUST_HAVE_NO_ARGUMENTS,
00052 MUST_HAVE_ONE_ARGUMENT,
00053 MUST_HAVE_4_ARGUMENTS,
00054 MUST_HAVE_4_OR_8_ARGUMENTS,
00055 MUST_HAVE_7_ARGUMENTS,
00056 MUST_HAVE_7_OR_14_ARGUMENTS,
00057 NON_EVENT_COMMAND_MUST_NOT_HAVE_EVENT_TAG,
00058 NUMBER_THROUGH_MUST_BE_INTEGER,
00059 NUMBER_THROUGH_MUST_BE_POSITIVE,
00060 PHI_ARGUMENT_USED_TWICE,
00061 Q_ARGUMENT_USED_TWICE,
00062 R_ARGUMENT_USED_TWICE,
00063 SPACE_MISSING_AFTER_TAG,
00064 STEPW_MUST_BE_POSITIVE,
00065 TAG_NUMBER_OUT_OF_RANGE_FOR_EVENT_TAG,
00066 TAG_NUMBER_OUT_OF_RANGE_FOR_COMMAND_TAG,
00067 THETA_OUT_OF_RANGE,
00068 TIME_ARGUMENT_USED_TWICE,
00069 TIME_MUST_BE_FOLLOWED_BY_NUMBER_IN_PARENS,
00070 TOOL_A_ARGUMENT_USED_TWICE,
00071 TOOL_B_ARGUMENT_USED_TWICE,
00072 TOOL_C_ARGUMENT_USED_TWICE,
00073 X_ARGUMENT_USED_TWICE,
00074 X_NOT_FOLLOWED_BY_NUMBER_IN_PARENS,
00075 X_Y_Z_ALL_MISSING,
00076 Y_ARGUMENT_USED_TWICE,
00077 Y_NOT_FOLLOWED_BY_NUMBER_IN_PARENS,
00078 Z_ARGUMENT_USED_TWICE,
00079 Z_NOT_FOLLOWED_BY_NUMBER_IN_PARENS,
00080 TOOL_A_NOT_FOLLOWED_BY_NUMBER_IN_PARENS,
00081 TOOL_B_NOT_FOLLOWED_BY_NUMBER_IN_PARENS,
00082 TOOL_C_NOT_FOLLOWED_BY_NUMBER_IN_PARENS,
00083 IJKACT_ARGUMENT_USED_TWICE,
00084 DENSITY_MUST_BE_POSITIVE,
00085 MINIMUM_RADIUS_OF_CURVATURE_MUST_BE_POSITIVE,
00086 ANGLE_ARGUMENT_USED_TWICE,
00087 ATNOMINALS_ARGUMENT_USED_TWICE,
00088 ANGLE_MUST_BE_FOLLOWED_BY_NUMBER_IN_PARENS,
00089 ATNOMINALS_NOT_FOLLOWED_BY_BOOLEAN_IN_PARENS,
00090 BAD_SYNTAX_FOR_FORMAT_IN_SCANONCURVE,
00091 BAD_NUMBER_OF_ARGUMENT_FOR_DATA_IN_SCANONCURVE,
00092 NOT_IMPLEMENTED_YET,
00093
00094 };
00095
00096 IPPDME_EXT_FUNC const char* toString(ippParserCmdErrorId);
00097 IPPDME_EXT_FUNC ippErrorNameType getIppErr(ippParserCmdErrorId);
00098
00099