xCDSVmsTrafficF.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //---------------------------------------------------------------------------
  2. #ifndef CDSVmsTrafficFH
  3. #define CDSVmsTrafficFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <ADODB.hpp>
  7. #include <DB.hpp>
  8. #include "ITSLibF.h"
  9. #include "ITSDbF.h"
  10. //---------------------------------------------------------------------------
  11. /*
  12. * Link Traffic class
  13. */
  14. class TVmsTraffic
  15. {
  16. public:
  17. TVmsTraffic();
  18. virtual ~TVmsTraffic();
  19. void Clear();
  20. private:
  21. bool FModified;
  22. bool FCompleted;
  23. public:
  24. int LEVL;
  25. String LINKID;
  26. int SPEED;
  27. String CMTR_GRAD_CD;
  28. String TRF_GRADE;
  29. String REGDATE;
  30. int DATACNT;
  31. int TRVTM;
  32. };
  33. //---------------------------------------------------------------------------
  34. /*
  35. * Link Traffic Manager
  36. */
  37. class TVmsTrafficManager
  38. {
  39. public:
  40. TVmsTrafficManager();
  41. virtual ~TVmsTrafficManager();
  42. void Init();
  43. bool IsLoading();
  44. public:
  45. bool FLink;
  46. bool FIfsc;
  47. bool FRoad;
  48. TItsMap<TVmsTraffic> FLists;
  49. public:
  50. bool LoadFromDb(TADOConnection *ADbConn=NULL);
  51. };
  52. //---------------------------------------------------------------------------
  53. extern TVmsTrafficManager *VmsTrafficManager;
  54. //---------------------------------------------------------------------------
  55. #endif