intercode.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #include "../calypso_util.h"
  2. #ifndef INTERCODE_STRUCTURES_H
  3. #define INTERCODE_STRUCTURES_H
  4. CalypsoApp* get_intercode_structure_env_holder();
  5. CalypsoApp* get_intercode_structure_contract();
  6. CalypsoApp* get_intercode_structure_event();
  7. CalypsoApp* get_intercode_structure_counter();
  8. const char* get_intercode_string_transition_type(int transition);
  9. const char* get_intercode_string_event_result(int result);
  10. const char* get_intercode_string_version(int version);
  11. int get_intercode_string_subversion(int version);
  12. const char* get_intercode_string_holder_type(int card_status);
  13. bool is_intercode_string_holder_linked(int card_status);
  14. const char* get_intercode_string_contract_status(int status);
  15. typedef enum {
  16. URBAN_BUS = 1,
  17. INTERURBAN_BUS = 2,
  18. METRO = 3,
  19. TRAM = 4,
  20. COMMUTER_TRAIN = 5,
  21. WATERBORNE_VEHICLE = 6,
  22. TOLL = 7,
  23. PARKING = 8,
  24. TAXI = 9,
  25. HIGH_SPEED_TRAIN = 10,
  26. RURAL_BUS = 11,
  27. EXPRESS_COMMUTER_TRAIN = 12,
  28. PARA_TRANSIT = 13,
  29. SELF_DRIVE_VEHICLE = 14,
  30. COACH = 15,
  31. LOCOMOTIVE = 16,
  32. POWERED_MOTOR_VEHICLE = 17,
  33. TRAILER = 18,
  34. REGIONAL_TRAIN = 19,
  35. INTER_CITY = 20,
  36. FUNICULAR = 21,
  37. CABLE_CAR = 22,
  38. SELF_SERVICE_BICYCLE = 23,
  39. CAR_SHARING = 24,
  40. CAR_POOLING = 25,
  41. } INTERCODE_TRANSPORT_TYPE;
  42. typedef enum {
  43. ENTRY = 1,
  44. EXIT = 2,
  45. PASSAGE = 3,
  46. CHECKPOINT_INSPECTION = 4,
  47. AUTONOMOUS = 5,
  48. INTERCHANGE = 6,
  49. VALIDATION = 7,
  50. PRESENCE_DETECTED = 8,
  51. } INTERCODE_USER_ACTION;
  52. #endif // INTERCODE_STRUCTURES_H