intercode.h 1.6 KB

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