IntlMsgAliasID.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. #ifndef __INTL_MSG_ALIAS_ID__
  2. #define __INTL_MSG_ALIAS_ID__
  3. /**
  4. * In [General] section
  5. */
  6. #define CR_OK 0
  7. #define INVALID_ERR_ID 200001
  8. #define WRONG_FIELD_NUM 200002
  9. #define INVALID_PTR 200003
  10. //#define REFERENCE_INVALID 200004
  11. #define OPEN_FILE_FAIL 300004
  12. #define WRITE_FILE_FAIL 300005
  13. #define ALLOCATE_BUFF_FAIL 300006
  14. #define NO_CORRESPONDING_MSG 300007
  15. #define REFERENCE_INVALID_DETECTOR 300008
  16. #define PERMISSION_DENIED 300009
  17. /**
  18. * In [Detector] section
  19. */
  20. //#define FRM_EXP_OVERFLOW 201301
  21. //#define EXP_FRM_OVERFLOW 201302
  22. #define PATCH_BLOCK_INFO_INVALID 201303
  23. #define INVALID_CMD_ID 301001
  24. #define INVALID_PARAM 301002
  25. #define NO_VALUE_INPUT 301003
  26. #define PARAM_MISSED 301004
  27. #define PANORAMA_ROI_INVALID 301005
  28. #define UNDEFINED_ACQ_MODE 301101
  29. #define UNDEFINED_SYNC_MODE 301102
  30. #define UNDEFINED_SPOT_MODE 301103
  31. #define SET_VERSION_ERR 301201
  32. #define SET_DETRTIME_ERR 301202
  33. #define HAVE_UNSENT_FRAME 301203
  34. #define CHANGE_MODE_NOT_ALLOWED 301204
  35. #define ACCESS_FPGA_ERR 301205
  36. #define STOP_ACQ_ERR 301206
  37. #define GET_MACHINE_ID_ERR 301207
  38. #define SET_ACQ_MODE_ERR 301208
  39. #define SET_SYNC_MODE_ERR 301209
  40. #define SET_EXP_TIME_ERR 301210
  41. #define START_ACQ_ERR 301211
  42. #define SET_VCMP_ERR 301212
  43. #define GET_SPOT_ERR_WITHOUT_ACQ 301213
  44. #define SWITCH_SPOT_MODE_ERR 301214
  45. #define SET_SPOT_MODE_ERR 301215
  46. #define GET_REG_VALUE_ERR 301216
  47. #define FRM_RATE_IN_EXT_MODE 301217
  48. #define FRM_EXP_OVERFLOW 301218
  49. #define EXP_FRM_OVERFLOW 301219
  50. #define UNAVAILABLE_PARAM 301220
  51. #define SET_ABC_PARAM_ERR 301221
  52. #define SET_AEC_PARAM_ERR 301223 // add new AEC error
  53. #define GET_AEC_PARAM_ERR 301224 // add new AEC error
  54. #define SET_IFCONF_PARAM_ERR 301225 // add new error
  55. #define INCORRECT_PARAM_FRM 301301
  56. #define EQUAL_OR_SMALLER_VALUE 301302
  57. #define SMALLER_VALUE 301303
  58. #define UNSUPPORTED_POWERMODE 301304
  59. #define INVALID_POWER_MODE 301305
  60. #define EXP_TIME_OVERFLOW 301306
  61. #define FRM_RATE_OVERFLOW 301307
  62. #define UNSUPPORTED_COMMAND 301308
  63. #define EXPOSURE_NOT_READY 301309
  64. #define REGISTER_MODE_DURING_ACQ 301310
  65. #define NO_DETR_FOUND 301901
  66. #define DETR_INIT_ERR 301902
  67. #define DETR_UNINITIALIZED 301903
  68. #define NO_APPLICATION_MODE 301904
  69. #define INVALID_APPLICATION_MODE 301905
  70. #define INVALID_GAIN_LEVEL 301906
  71. #define INVALID_TRIGGER_TYPE 301907
  72. #define DETR_IN_USE 301908
  73. #define INIT_XML_ERR 301909
  74. #define READ_REGISTER_ERR 301910
  75. #define WRITE_REGISTER_ERR 301911
  76. #define OPEN_STREAM_CHANNEL_ERR 301912
  77. #define CLOSE_STREAM_CHANNEL_ERR 301913
  78. #define CLOSE_DETR_ERR 301914
  79. #define GET_EXP_TIME_ERR 301915
  80. #define GET_FRM_RATE_ERR 301916
  81. #define SET_FRM_RATE_ERR 301917
  82. #define RESEND_NOT_SUPPORTED 301918
  83. #define TRANSMITTION_SIZE_ERR 301919
  84. #define IMAGE_SIZE_ERR 301920
  85. #define DAEC_ROI_ORIGINAL_WEIGHTS_ERR 301921
  86. /**
  87. * In [Command] section
  88. */
  89. //#define INVALID_DETR_IDX 302001
  90. /**
  91. * In [Common] section
  92. */
  93. /**
  94. * In [Data] section
  95. */
  96. #define CAL_DATA_LOAD_FAILED 204001
  97. #define REFERENCE_INVALID 204002
  98. #define REFERENCE_NO_EXISTS 204003
  99. #define CAL_DIR_NOT_EXIST 304001
  100. #define CAL_FILE_NOT_EXIST 304002
  101. #define CAL_FILE_SIZE_ERR 304003
  102. #define PARSE_DEFECT_FILE_ERR 304004
  103. /**
  104. * In [Network] section
  105. */
  106. #define NETWORK_SPEED_SLOW 205001
  107. /**
  108. * In [ImageProcessing] section
  109. */
  110. #define CORRECT_OFFSET_FAILED 206001
  111. #define CORRECT_GAIN_FAILED 206002
  112. #define CORRECT_DEFECT_FAILED 206003
  113. #define CORRECT_DEFECT_TOO_LONG 206004
  114. #define SAVE_IMAGE_FAILED 206005
  115. #define DETECT_FRAME_LOST 206006
  116. #define IMAGE_QUEUE_BLOCKED 206007
  117. #define DISCARD_FRAME 206008
  118. /**
  119. * In [CRInterface] section
  120. */
  121. #define EMPTY_CMD_STR 307001
  122. #define RECV_CMD_REP_FAIL 307002
  123. #define DETR_UNREACHABLE 307003
  124. #define SERVER_UNREACHABLE 307004
  125. #define UNSUPPORTED_PROPERTY 307005
  126. #define UNREGISTERED_APPMODEKEY 307006
  127. #define INSUFFICIENT_BUFFER_SIZE 307007
  128. /**
  129. * In [SQLite] section
  130. */
  131. #define OPEN_DB_FAIL 408001
  132. #define OPERATE_DB_FAIL 308001
  133. #define EMPTY_SQL 308002
  134. #define PREPARE_SQL_FAIL 308003
  135. #define EXECUTE_SQL_STATEMENT_FAIL 308004
  136. #define FINALIZE_SQL_STATEMENT_FAIL 308005
  137. #define BEGIN_TRANSACTION_FAIL 308006
  138. #define COMMIT_TRANSACTION_FAIL 308007
  139. #define ROLLBACK_TRANSACTION_FAIL 308008
  140. #define WRONG_PASSWORD 308009
  141. /**
  142. * In [IntlMessage] section
  143. */
  144. #define UNBALANCED_BRACKETS 309001
  145. #define INVALID_NUM_OF_BRACE_PAIR 309002
  146. #define FOUND_WHITE_SPACE 309003
  147. #define MISSING_EQUAL_SIGN 309004
  148. #define MISSING_KEY_NAME 309005
  149. #define INVALID_KEY_NAME 309006
  150. #define INVALID_SPECIFIER 309007
  151. #define DUPLICATED_KEY_NAME 309008
  152. #define UNIDENTIFIED_LINE 309009
  153. #define UNPAIRED_KEY_NAME_TYPE1 309010
  154. #define UNPAIRED_KEY_NAME_TYPE2 309011
  155. /**
  156. * In [Server] section
  157. */
  158. #define CALIBRATION_MANUALLY_TERMINATED 210001
  159. #define DEFECTION_OVER_LIMIT 210002
  160. #define DETR_ALREADY_DISCONNECTED 210003
  161. #define DETECTOR_UNREACHABLE 310001
  162. #define SERVER_IN_CALIBRATION_STATE 310002
  163. #define FILE_PATH_NOT_EXIST 310003
  164. #define FILE_NOT_EXIST 310004
  165. #define FILE_OPEN_ERR 310005
  166. #define API_UNREACHABLE 310006
  167. #define FILE_VERFIED_ERR 310007
  168. #define FILE_IN_SERVER_NEWER 310008
  169. #define DISK_SPACE_USED_UP 310009
  170. #define INVALID_DETR_IDX 310010
  171. #define SWITCH_TO_RAD_DURING_ACQ 310011
  172. #define SWITCH_TO_FLUORO_DURING_RAD_ACQ 310012
  173. #define CALIBRATION_RECV_NO_IMG 310013
  174. //#define USE_MODE_BEFORE_REG_MODE 310014
  175. #define TIME_LEN_FOR_SIMP_CALIB_TOO_SHORT 310015
  176. #define DUPLICATED_MACHINE_ID 410001
  177. /**
  178. * In [CDetr] section
  179. */
  180. #define DETR_IN_CALIBRATION_STATE 311001
  181. #define DETR_OFFLINE 311002
  182. #define DETR_IN_ACQUISITION_STATE 311003
  183. #endif