10 #include "core/common/eplatform.h"
13 #include "dataio/datainput/ETarifnaSkupina.h"
14 #include "dataio/datainput/ELinkaZastavkaZnacka.h"
15 #include "dataio/datainput/ECennik.h"
17 #define VYDAJ_STATUS_NO_VYDAJ 0
18 #define VYDAJ_STATUS_VYDAJ 1
19 #define VYDAJ_STATUS_INFO_WIN 2
20 #define VYDAJ_STATUS_VSTUP 3
21 #define VYDAJ_STATUS_KONECNA 4
22 #define VYDAJ_STATUS_ERR 10
25 #define ECP_LOAD_NEXT 1
27 #define LONGITUDE_INT 2
28 #define LATITUDE_INT 2
34 namespace VstupneUdaje
36 namespace TarifnySystem
38 class ETarifnaSkupinaTarifa;
39 class ETarifnaSkupina;
41 namespace CestovnePoriadky
45 class ELinkaZastavkaCol;
49 class ESpojZastavkaCol;
55 class ETripTransferCol;
56 class ETripTransferTripStop;
167 unsigned short GetSubZoneNumberByBusStopTripOrder(
unsigned int busStopTripOrder );
192 unsigned short GetTariffAreaNumberByBusStopTripOrder(
unsigned long busStopTripOrder,
bool forCheckOut =
false )
const;
201 long GetUrbanTransportIDForBusstop(
unsigned int busStopTripOrder,
unsigned short &urbanTransportID )
const;
219 long GetUrbanTransportIDByBusStopLineOrder(
const unsigned long busStopLineOrder,
unsigned short &urbanTransportID );
244 bool GetNumberOfZonesBetweenBusStops (
const long boardingBusStopOrderOnLine,
const long landingBusStopOrderOnLine,
unsigned char &zoneCount )
const;
259 bool CheckZoneOnBusStopDefinedByLineOrder(
const unsigned long zone,
const unsigned long busStopLineOrder,
const unsigned short ids,
const bool forCheckOut,
bool &isZoneValid )
const;
269 bool IsAtLeastOneZoneOnBusstop(
const unsigned long busStopLineOrder,
const unsigned short ids,
const bool forCheckOut,
bool &isAtLeastOneZoneOnBusstop )
const;
281 bool CheckTariffAreaOnBusStopDefinedByLineOrder(
const unsigned long tariffAreaFrom,
const unsigned long tariffAreaTo,
const unsigned long busStopLineOrder,
const bool forCheckOut,
bool &isValid )
const;
287 void EraseBusStopCollection(
unsigned short tripBusStopFrom,
int tripBusStopTo = -1 );
292 long GetTripBusStopCollectionSize();
297 void ClearTripBusStopCollection();
302 long GetActualTripBusStopIndex()
const;
307 long SetActualTripBusStopIndex(
const long actualTripBusStopIndex );
312 long GetCheckOutTripBusStopIndex()
const;
317 long SetCheckOutTripBusStopIndex(
const long actualTripBusStopIndex );
334 unsigned short GetActualIDS()
const;
344 long GetPlatformNumberByTripBusStopIndex(
const long tripBusStopIndex,
long &platform );
350 long GetActualLinkaCisloN()
const;
351 const char *GetActualLinkaCisloText()
const;
352 char *GetActualLinkaName()
const;
354 long GetActualSpojCislo()
const;
356 long SetFirstSpojZastavka();
358 char *GetActualZastavkaNazov()
const;
359 unsigned short GetActualZastavkaTime()
const;
361 long GetActualZastavkaId()
const;
362 long GetNextZastavkaId()
const;
363 long GetCurrentBusStopPlatformNumber()
const;
365 long SetActualPrikaz(
char *pcPrikaz );
368 long GetActualUsekPrikazuIdx()
const;
369 long SetStartUsekPrikazuIdx(
unsigned long IdxUsek );
370 long SetLastSpojZastavka();
373 char GetVydajStatus()
const;
374 void SetVydajStatus(
char cVydajStatus );
384 char *GetFileName()
const;
388 char *GetActualZastavkaNazovKratky()
const;
389 char *GetActualZastavkaNazovDlhy()
const;
392 unsigned short GetActualZastavkaLinkaPoradie()
const;
393 char *GetMenoByZastVypisPor (
unsigned short por,
bool dlhe =
false )
const;
394 long LoadLS (
unsigned long linka,
unsigned short spoj );
395 unsigned short GetActualZone()
const;
400 bool IsActualZoneUrbanZone()
const;
401 unsigned char GetActualTarifSkup()
const;
404 void SetActualTarifSkup(
unsigned char actTarifSkup );
405 bool IsKonecna()
const;
406 bool IsKonecna_Continues_Lines()
const;
410 unsigned short GetNextZone()
const;
411 long GetBusStopIDByOrderOnTrip(
long orderOnTrip,
unsigned long &busStopID )
const;
412 long LoadLS(
char *strLineNumber,
char *strTripNumber );
413 void LoadBusStopsOfActualTrip();
414 long FindKeyStop( std::vector<EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *> *pVecStops )
const;
415 bool IsNextTripContinuous_MHD()
const;
416 bool IsActualTripContinuous_MHD()
const;
417 void SetOdchylkovy(
long first,
long last );
418 void GetOdchylkovy(
long &first,
long &last )
const;
420 bool IsBorderBusStop(
unsigned long paPoradie )
const;
421 bool IsFirstBusStopOnZone(
unsigned long busStopOrderOnTrip )
const;
422 bool IsLastBusStopOnZone(
unsigned long busStopOrderOnTrip )
const;
423 bool IsLastBusStopOnTrip(
unsigned long paPoradie )
const;
424 long GetPocetPasiemDoKonecnej(
char &tariffZonesCount,
unsigned short *tariffZones,
char maxTariffZonesCount )
const;
425 long TarifyLoad(
unsigned char tarifSkup,
long vodicPredajCl );
427 const std::vector<EOfferedTariff *> *GetOfferedTariffs()
const;
428 void ClearOfferedTariffsVector();
430 void SetDZVICV (
unsigned long dzv,
unsigned long icv );
431 unsigned long GetDZV()
const;
432 unsigned long GetICV()
const;
443 bool IsUrbanSection();
452 long GetJourneyTimetableTimeByBusStopsLineOrder(
unsigned short lineOrderCheckInBusStop,
unsigned short lineOrderCheckOutBusStop,
unsigned long &diffTime )
const;
462 long GetJourneyTimetableTimeByBusStopsTripOrder(
unsigned short tripOrderCheckInBusStop,
unsigned short tripOrderCheckOutBusStop,
unsigned long &diffTime )
const;
469 bool FillTripTransfersTripStopsFlagIsForWait(
const unsigned short currentBusStopLineOrder, std::list<EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransferTripStop *> *tripTransferTripStopList );
475 void GetTripTransfersFromBusStop( std::vector<EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransfer *> &transfers,
477 long busStopOrderOnTrip,
479 bool withSignificantBusStopsOnly )
const;
493 int OrderOnLineToOrderOnTrip(
int orderOnLine,
const std::vector<EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *> *busStopList = NULL )
const;
497 int OrderOnTripToOrderOnLine(
unsigned long orderOnTrip,
const std::vector<EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *> *busStopList = NULL )
const;
511 const char *LineNumberToLineNumberText(
unsigned long lineNumber )
const;
512 const char *GetBusStopName(
int lineNumber,
int tripNumber,
int orderOnLine )
const;
532 long SearchNearestBusStopByCheckoutBusStopTariffNumber(
const long &checkinBusStopTripOrder,
const long &checkoutBusStopTripOrder );
Definition: EZastavka.h:26
Definition: ETripTransferCol.h:20
Definition: EPrikazKurzCol.h:20
Definition: ENastupiste.h:26
Definition: ELinkaZastavka.h:26
TariffGroupType
Definition: ETarifnaSkupina.h:26
Definition: EZastavkaVypis.h:18
Definition: ETarifnaSkupinaTarifa.h:18
Definition: ELinkaZastavkaCol.h:21
Definition: ETarifnaSkupina.h:23
LineBusStopMark
Definition: ELinkaZastavkaZnacka.h:22
Definition: EOfferedTariff.h:22
Class ECol : Objekt je predok pre vsetky nasledujuce kolekcie
Definition: ColReader.h:15
Definition: ESpojZastavkaCol.h:20
Definition: ESpojZastavka.h:28
Definition: EPrikazKurz.h:49
#define DATAIO_API
Definition: DataIODefines.h:10