12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //---------------------------------------------------------------------------
- #ifndef CDSDetourFH
- #define CDSDetourFH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <ADODB.hpp>
- #include <DB.hpp>
- #include "ITSLibF.h"
- //---------------------------------------------------------------------------
- #define DAY_HOUR 24
- //---------------------------------------------------------------------------
- typedef struct tagDETOURSPED
- {
- int SPED;
- String GRAD;
- } DETOURSPED;
- //---------------------------------------------------------------------------
- class TDetourTrf
- {
- public:
- TDetourTrf()
- {
- for (int ii = 0; ii < DAY_HOUR; ii++)
- {
- INFO[0][ii].SPED = 0;
- INFO[1][ii].SPED = 0;
- INFO[0][ii].GRAD = "LTC0";
- INFO[1][ii].GRAD = "LTC0";
- }
- };
- virtual ~TDetourTrf()
- {
- };
- public:
- TDateTime dtQry;
- String sQryDay;
- String IFSC_ID;
- DETOURSPED INFO[2][DAY_HOUR];
- };
- //---------------------------------------------------------------------------
- class TDetourTrfManager
- {
- public:
- TDetourTrfManager()
- {
- };
- virtual ~TDetourTrfManager()
- {
- FLists.RemoveAll();
- };
- public:
- TItsMap<String, TDetourTrf*> FLists;
- public:
- };
- //---------------------------------------------------------------------------
- #endif
|