DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
ECp Class Reference

#include <ecp.h>

Public Member Functions

 ECp ()
 
virtual ~ECp ()
 
long GetDefaultCheckOutBusStopTripOrder (short requestedTariffAreaCount=0, EM::Strojcek::VstupneUdaje::TarifnySystem::ECennik *pricelist=NULL) const
 returns default check out bus stop (used with auto issue) More...
 
bool CheckIDSonTG (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tg, unsigned short ids)
 method which check if tariff group and tg suplements is on defined ids to get zone on bus stop which belong to ids More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka *busStop, unsigned short ids)
 method to get zone on bus stop which belong to ids More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStop, unsigned short ids) const
 calls GetZoneByBusStop with parameter forCheckOut with value false More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStop, unsigned short ids, bool forCheckOut) const
 method to get zone on bus stop which belongs to specified ids More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStopTripOrder (unsigned int busStopTripOrder, unsigned short ids) const
 calls GetZoneByBusStop with parameter forCheckOut with value false More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStopTripOrder (unsigned int busStopTripOrder, unsigned short ids, bool forCheckOut) const
 method to get zone on bus stop which belongs to specified ids More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStopLineOrder (const unsigned long busStopLineOrder, const unsigned short ids, const bool forCheckOut) const
 method to get zone on bus stop which belongs to specified ids More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByPlatform (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ENastupiste *platform, unsigned short ids) const
 method to get zone from platform which belongs to specified ids More...
 
unsigned short GetSubZoneNumberByBusStopTripOrder (unsigned int busStopTripOrder)
 GetSubZoneNumberByBusStopTripOrder. More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ENastupisteGetPlatformByBusStopLineOrder (const unsigned long busStopLineOrder) const
 GetPlatformByBusStopLineOrder. More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaGetBusStopByBusStopLineOrder (const unsigned long busStopLineOrder) const
 GetBusStopByBusStopLineOrder. More...
 
unsigned short GetTariffAreaNumberByBusStopTripOrder (unsigned long busStopTripOrder, bool forCheckOut=false) const
 method to get tariffArea of bus stop which belongs to specified ids More...
 
long GetUrbanTransportIDForBusstop (unsigned int busStopTripOrder, unsigned short &urbanTransportID) const
 method to to get urban transport ID of busstop More...
 
long GetUrbanTransportIDForBusstop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *tripBusstop, unsigned short &urbanTransportID) const
 method to to get urban transport ID of busstop More...
 
long GetUrbanTransportIDByBusStopLineOrder (const unsigned long busStopLineOrder, unsigned short &urbanTransportID)
 method to to get urban transport ID by bus stop line order More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaGetLineBusStopByLineOrder (long lineOrderBusStop)
 get instance of ELinkaZastavka by line bus stop order "lineOrderBusStop - see param" More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaGetLineBusStop (long lineOrderBusStop) const
 same as GetLineBusStopByLineOrder but const More...
 
bool GetNumberOfZonesBetweenBusStops (const long boardingBusStopOrderOnLine, const long landingBusStopOrderOnLine, unsigned char &zoneCount) const
 method for getting number of zones between two bus stops on currently selected trip More...
 
bool CheckZoneOnBusStopDefinedByLineOrder (const unsigned long zone, const unsigned long busStopLineOrder, const unsigned short ids, const bool forCheckOut, bool &isZoneValid) const
 method check if zone is valid on bus stop More...
 
bool IsAtLeastOneZoneOnBusstop (const unsigned long busStopLineOrder, const unsigned short ids, const bool forCheckOut, bool &isAtLeastOneZoneOnBusstop) const
 IsAtLeastOneZoneOnBusstop - checks if busstop has at least one zone of specified IDS (so the network wide ticket can be applied) More...
 
bool CheckTariffAreaOnBusStopDefinedByLineOrder (const unsigned long tariffAreaFrom, const unsigned long tariffAreaTo, const unsigned long busStopLineOrder, const bool forCheckOut, bool &isValid) const
 Checks if tariffArea is valid on bus stop. More...
 
void EraseBusStopCollection (unsigned short tripBusStopFrom, int tripBusStopTo=-1)
 erase trip bus stops from begin of collection to tripBusStopFrom and from tripBusStopTo to end of trip bus stop collection More...
 
long GetTripBusStopCollectionSize ()
 returns actual trip bus stop collection size More...
 
void ClearTripBusStopCollection ()
 clear collecion of actual trip bus stops More...
 
long GetActualTripBusStopIndex () const
 returns trip order from actual trip bus stop More...
 
long SetActualTripBusStopIndex (const long actualTripBusStopIndex)
 sets actual bus stop trip order More...
 
long GetCheckOutTripBusStopIndex () const
 returns trip order from checkout trip bus stop More...
 
long SetCheckOutTripBusStopIndex (const long actualTripBusStopIndex)
 sets checkout bus stop trip order More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypisGetTripBusStopByIndex (long tripOrder)
 makes available bus stop specified by index tripOrder More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypisGetActualTripBusStop () const
 retruns an instance of actual trip bus More...
 
unsigned short GetActualIDS () const
 Get number of IDS from actual tariff group. More...
 
long GetPlatformByTripBusStopIndex (long tripBusStopIndex, EM::Strojcek::VstupneUdaje::CestovnePoriadky::ENastupiste *&platform)
 return instance of ENastupiste platform by trip bus stop index More...
 
long GetPlatformNumberByTripBusStopIndex (const long tripBusStopIndex, long &platform)
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaFindLinkaByNum (long lLinkacislo) const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaGetActualLinkaPtr () const
 
void SetActualLinkaPtr (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinka *pLinka)
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaGetActualZastavka () const
 
long GetActualLinkaCisloN () const
 
const char * GetActualLinkaCisloText () const
 
char * GetActualLinkaName () const
 
void SetActualSpojPtr (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip)
 
long GetActualSpojCislo () const
 
long SetNextSpojZastavka1 (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka **spojZast)
 
long SetFirstSpojZastavka ()
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavkaGetActualSpojZastavkaPtr () const
 
char * GetActualZastavkaNazov () const
 
unsigned short GetActualZastavkaTime () const
 
long SetActualZastavkaData (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka *SpojZast, EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka **Zastavka)
 
long GetActualZastavkaId () const
 
long GetNextZastavkaId () const
 
long GetCurrentBusStopPlatformNumber () const
 
long SetActualPrikaz (char *pcPrikaz)
 
long SetActualCommand (EM::Strojcek::VstupneUdaje::Turnusy::EPrikaz *prikaz)
 
EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurzColGetActualPrikazKurzyPtr () const
 
long GetActualUsekPrikazuIdx () const
 
long SetStartUsekPrikazuIdx (unsigned long IdxUsek)
 
long SetLastSpojZastavka ()
 
EM::Strojcek::VstupneUdaje::Turnusy::EPrikazGetActualPrikazPtr () const
 
char GetVydajStatus () const
 
void SetVydajStatus (char cVydajStatus)
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaColGetActualLinkaZastavkyPtr () const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojGetActualTrip () const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaGetActualLinkaZastavka () const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaGetZastavkaBySpojZastavka (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka *pSpojZast) const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavkaColGetActualSpojZastavkyPtr () const
 
char * GetFileName () const
 
void Init ()
 
void SetActualSpojZastavkaPtr (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka *pSpojZast)
 
char * GetActualZastavkaNazovKratky () const
 
char * GetActualZastavkaNazovDlhy () const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypisGetNextEZastavkaVypis () const
 
unsigned short GetActualZastavkaLinkaPoradie () const
 
char * GetMenoByZastVypisPor (unsigned short por, bool dlhe=false) const
 
long LoadLS (unsigned long linka, unsigned short spoj)
 Metoda nastavy aktualnu linka a spoj. More...
 
unsigned short GetActualZone () const
 
bool IsActualZoneUrbanZone () const
 IsActualZoneUrbanZone - checks if actual zone is in urban zones defined in input data. More...
 
unsigned char GetActualTarifSkup () const
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina::TariffGroupType GetActualTariffGroupType () const
 
void SetActualTarifSkup (unsigned char actTarifSkup)
 
bool IsKonecna () const
 
bool IsKonecna_Continues_Lines () const
 
EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurzGetActualPrikazKurz () const
 
void SetActualEPrikazKurz (EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurz *pPrikazKurz)
 
unsigned short GetNextZone () const
 
long GetBusStopIDByOrderOnTrip (long orderOnTrip, unsigned long &busStopID) const
 
long LoadLS (char *strLineNumber, char *strTripNumber)
 
void LoadBusStopsOfActualTrip ()
 
long FindKeyStop (std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *pVecStops) const
 
bool IsNextTripContinuous_MHD () const
 ----------------------— UZ SA NEPOUZIVA More...
 
bool IsActualTripContinuous_MHD () const
 
void SetOdchylkovy (long first, long last)
 
void GetOdchylkovy (long &first, long &last) const
 
bool IsBorderBusStop (unsigned long paPoradie) const
 
bool IsFirstBusStopOnZone (unsigned long busStopOrderOnTrip) const
 
bool IsLastBusStopOnZone (unsigned long busStopOrderOnTrip) const
 
bool IsLastBusStopOnTrip (unsigned long paPoradie) const
 
long GetPocetPasiemDoKonecnej (char &tariffZonesCount, unsigned short *tariffZones, char maxTariffZonesCount) const
 
long TarifyLoad (unsigned char tarifSkup, long vodicPredajCl)
 
void AddTariff (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupinaTarifa *tariffGroup, long vodicPredajCl, unsigned long offset)
 
const std::vector
< EOfferedTariff * > * 
GetOfferedTariffs () const
 
void ClearOfferedTariffsVector ()
 
void SetDZVICV (unsigned long dzv, unsigned long icv)
 
unsigned long GetDZV () const
 
unsigned long GetICV () const
 
bool IsUrbanSection ()
 Function checks urban section on bus stops. More...
 
long GetJourneyTimetableTimeByBusStopsLineOrder (unsigned short lineOrderCheckInBusStop, unsigned short lineOrderCheckOutBusStop, unsigned long &diffTime) const
 Function calculates timetable time difference between check in and check out bus stop. More...
 
long GetJourneyTimetableTimeByBusStopsTripOrder (unsigned short tripOrderCheckInBusStop, unsigned short tripOrderCheckOutBusStop, unsigned long &diffTime) const
 Function calculates timetable time difference between check in and check out bus stop. More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojGetTripByNumber (int lineNumber, int tripNumber) const
 ======= data wrapping functions ===== More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojGetTripFromBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStop) const
 
bool FillTripTransfersTripStopsFlagIsForWait (const unsigned short currentBusStopLineOrder, std::list< EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransferTripStop * > *tripTransferTripStopList)
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavkaGetTripBusStopFromBusStopListing (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStopListing) const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavkaGetTripBusStopByTripBusStopIndex (const long tripBusStopIndex)
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransferColGetTripTransfersFromBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip, long busStopOrderOnTrip) const
 
void GetTripTransfersFromBusStop (std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransfer * > &transfers, EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip, long busStopOrderOnTrip, bool validTodayOnly, bool withSignificantBusStopsOnly) const
 
int OrderOnLineToOrderOnTrip (int orderOnLine, const std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *busStopList=NULL) const
 
int OrderOnTripToOrderOnLine (unsigned long orderOnTrip, const std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *busStopList=NULL) const
 
int GetCommandSegmentBusStopOrderOnTrip (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip, EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurz *commandSegment, bool wantedFirstBusStop) const
 Function finds index of first or last bus stop on trip. More...
 
long GetTripIdFromBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStop) const
 
const char * LineNumberToLineNumberText (unsigned long lineNumber) const
 
const char * GetBusStopName (int lineNumber, int tripNumber, int orderOnLine) const
 
long IsLineBusStopMarkEnabled (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavka *linebusStop, const EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaZnacka::LineBusStopMark busStopMark, bool &enabled) const
 
long SearchNearestBusStopByCheckoutBusStopTariffNumber (const long &checkinBusStopTripOrder, const long &checkoutBusStopTripOrder)
 SearchNearestBusStopByCheckoutBusStopTariffNumber - tries to find bus stop with same tariff number as checkoutBusStop specified by parameter, but smaller trip order. Used for circle lines - if checkout bus stop is used multiple times on a single trip (with same busStopTariffNumber), ticket should be issued to nearest bus stop (stop with smallest trip order). More...
 
std::set< unsigned short > GetZonesOnBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStopListing) const
 GetZonesOnBusStop finds all bus stop zones. More...
 
 ECp ()
 
virtual ~ECp ()
 
long GetDefaultCheckOutBusStopTripOrder (short requestedTariffAreaCount=0, EM::Strojcek::VstupneUdaje::TarifnySystem::ECennik *pricelist=NULL) const
 returns default check out bus stop (used with auto issue) More...
 
bool CheckIDSonTG (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tg, unsigned short ids)
 method which check if tariff group and tg suplements is on defined ids to get zone on bus stop which belong to ids More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka *busStop, unsigned short ids)
 method to get zone on bus stop which belong to ids More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStop, unsigned short ids) const
 calls GetZoneByBusStop with parameter forCheckOut with value false More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStop, unsigned short ids, bool forCheckOut) const
 method to get zone on bus stop which belongs to specified ids More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStopTripOrder (unsigned int busStopTripOrder, unsigned short ids) const
 calls GetZoneByBusStop with parameter forCheckOut with value false More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStopTripOrder (unsigned int busStopTripOrder, unsigned short ids, bool forCheckOut) const
 method to get zone on bus stop which belongs to specified ids More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByBusStopLineOrder (const unsigned long busStopLineOrder, const unsigned short ids, const bool forCheckOut) const
 method to get zone on bus stop which belongs to specified ids More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZonaGetZoneByPlatform (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ENastupiste *platform, unsigned short ids) const
 method to get zone from platform which belongs to specified ids More...
 
unsigned short GetSubZoneNumberByBusStopTripOrder (unsigned int busStopTripOrder)
 GetSubZoneNumberByBusStopTripOrder. More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ENastupisteGetPlatformByBusStopLineOrder (const unsigned long busStopLineOrder) const
 GetPlatformByBusStopLineOrder. More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaGetBusStopByBusStopLineOrder (const unsigned long busStopLineOrder) const
 GetBusStopByBusStopLineOrder. More...
 
unsigned short GetTariffAreaNumberByBusStopTripOrder (unsigned long busStopTripOrder, bool forCheckOut=false) const
 method to get tariffArea of bus stop which belongs to specified ids More...
 
long GetUrbanTransportIDForBusstop (unsigned int busStopTripOrder, unsigned short &urbanTransportID) const
 method to to get urban transport ID of busstop More...
 
long GetUrbanTransportIDForBusstop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *tripBusstop, unsigned short &urbanTransportID) const
 method to to get urban transport ID of busstop More...
 
long GetUrbanTransportIDByBusStopLineOrder (const unsigned long busStopLineOrder, unsigned short &urbanTransportID)
 method to to get urban transport ID by bus stop line order More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaGetLineBusStopByLineOrder (long lineOrderBusStop)
 get instance of ELinkaZastavka by line bus stop order "lineOrderBusStop - see param" More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaGetLineBusStop (long lineOrderBusStop) const
 same as GetLineBusStopByLineOrder but const More...
 
bool GetNumberOfZonesBetweenBusStops (const long boardingBusStopOrderOnLine, const long landingBusStopOrderOnLine, unsigned char &zoneCount) const
 method for getting number of zones between two bus stops on currently selected trip More...
 
bool CheckZoneOnBusStopDefinedByLineOrder (const unsigned long zone, const unsigned long busStopLineOrder, const unsigned short ids, const bool forCheckOut, bool &isZoneValid) const
 method check if zone is valid on bus stop More...
 
bool IsAtLeastOneZoneOnBusstop (const unsigned long busStopLineOrder, const unsigned short ids, const bool forCheckOut, bool &isAtLeastOneZoneOnBusstop) const
 IsAtLeastOneZoneOnBusstop - checks if busstop has at least one zone of specified IDS (so the network wide ticket can be applied) More...
 
bool CheckTariffAreaOnBusStopDefinedByLineOrder (const unsigned long tariffAreaFrom, const unsigned long tariffAreaTo, const unsigned long busStopLineOrder, const bool forCheckOut, bool &isValid) const
 Checks if tariffArea is valid on bus stop. More...
 
void EraseBusStopCollection (unsigned short tripBusStopFrom, int tripBusStopTo=-1)
 erase trip bus stops from begin of collection to tripBusStopFrom and from tripBusStopTo to end of trip bus stop collection More...
 
long GetTripBusStopCollectionSize ()
 returns actual trip bus stop collection size More...
 
void ClearTripBusStopCollection ()
 clear collecion of actual trip bus stops More...
 
long GetActualTripBusStopIndex () const
 returns trip order from actual trip bus stop More...
 
long SetActualTripBusStopIndex (const long actualTripBusStopIndex)
 sets actual bus stop trip order More...
 
long GetCheckOutTripBusStopIndex () const
 returns trip order from checkout trip bus stop More...
 
long SetCheckOutTripBusStopIndex (const long actualTripBusStopIndex)
 sets checkout bus stop trip order More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypisGetTripBusStopByIndex (long tripOrder)
 makes available bus stop specified by index tripOrder More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypisGetActualTripBusStop () const
 retruns an instance of actual trip bus More...
 
unsigned short GetActualIDS () const
 Get number of IDS from actual tariff group. More...
 
long GetPlatformByTripBusStopIndex (long tripBusStopIndex, EM::Strojcek::VstupneUdaje::CestovnePoriadky::ENastupiste *&platform)
 return instance of ENastupiste platform by trip bus stop index More...
 
long GetPlatformNumberByTripBusStopIndex (const long tripBusStopIndex, long &platform)
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaFindLinkaByNum (long lLinkacislo) const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaGetActualLinkaPtr () const
 
void SetActualLinkaPtr (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinka *pLinka)
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaGetActualZastavka () const
 
long GetActualLinkaCisloN () const
 
const char * GetActualLinkaCisloText () const
 
char * GetActualLinkaName () const
 
void SetActualSpojPtr (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip)
 
long GetActualSpojCislo () const
 
long SetNextSpojZastavka1 (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka **spojZast)
 
long SetFirstSpojZastavka ()
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavkaGetActualSpojZastavkaPtr () const
 
char * GetActualZastavkaNazov () const
 
unsigned short GetActualZastavkaTime () const
 
long SetActualZastavkaData (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka *SpojZast, EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka **Zastavka)
 
long GetActualZastavkaId () const
 
long GetNextZastavkaId () const
 
long GetCurrentBusStopPlatformNumber () const
 
long SetActualPrikaz (char *pcPrikaz)
 
long SetActualCommand (EM::Strojcek::VstupneUdaje::Turnusy::EPrikaz *prikaz)
 
EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurzColGetActualPrikazKurzyPtr () const
 
long GetActualUsekPrikazuIdx () const
 
long SetStartUsekPrikazuIdx (unsigned long IdxUsek)
 
long SetLastSpojZastavka ()
 
EM::Strojcek::VstupneUdaje::Turnusy::EPrikazGetActualPrikazPtr () const
 
char GetVydajStatus () const
 
void SetVydajStatus (char cVydajStatus)
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaColGetActualLinkaZastavkyPtr () const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojGetActualTrip () const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaGetActualLinkaZastavka () const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaGetZastavkaBySpojZastavka (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka *pSpojZast) const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavkaColGetActualSpojZastavkyPtr () const
 
char * GetFileName () const
 
void Init ()
 
void SetActualSpojZastavkaPtr (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka *pSpojZast)
 
char * GetActualZastavkaNazovKratky () const
 
char * GetActualZastavkaNazovDlhy () const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypisGetNextEZastavkaVypis () const
 
unsigned short GetActualZastavkaLinkaPoradie () const
 
char * GetMenoByZastVypisPor (unsigned short por, bool dlhe=false) const
 
long LoadLS (unsigned long linka, unsigned short spoj)
 
unsigned short GetActualZone () const
 
bool IsActualZoneUrbanZone () const
 IsActualZoneUrbanZone - checks if actual zone is in urban zones defined in input data. More...
 
unsigned char GetActualTarifSkup () const
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina::TariffGroupType GetActualTariffGroupType () const
 
void SetActualTarifSkup (unsigned char actTarifSkup)
 
bool IsKonecna () const
 
bool IsKonecna_Continues_Lines () const
 
EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurzGetActualPrikazKurz () const
 
void SetActualEPrikazKurz (EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurz *pPrikazKurz)
 
unsigned short GetNextZone () const
 
long GetBusStopIDByOrderOnTrip (long orderOnTrip, unsigned long &busStopID) const
 
long LoadLS (char *strLineNumber, char *strTripNumber)
 
void LoadBusStopsOfActualTrip ()
 
long FindKeyStop (std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *pVecStops) const
 
bool IsNextTripContinuous_MHD () const
 
bool IsActualTripContinuous_MHD () const
 
void SetOdchylkovy (long first, long last)
 
void GetOdchylkovy (long &first, long &last) const
 
bool IsBorderBusStop (unsigned long paPoradie) const
 
bool IsFirstBusStopOnZone (unsigned long busStopOrderOnTrip) const
 
bool IsLastBusStopOnZone (unsigned long busStopOrderOnTrip) const
 
bool IsLastBusStopOnTrip (unsigned long paPoradie) const
 
long GetPocetPasiemDoKonecnej (char &tariffZonesCount, unsigned short *tariffZones, char maxTariffZonesCount) const
 
long TarifyLoad (unsigned char tarifSkup, long vodicPredajCl)
 
void AddTariff (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupinaTarifa *tariffGroup, long vodicPredajCl, unsigned long offset)
 
const std::vector
< EOfferedTariff * > * 
GetOfferedTariffs () const
 
void ClearOfferedTariffsVector ()
 
void SetDZVICV (unsigned long dzv, unsigned long icv)
 
unsigned long GetDZV () const
 
unsigned long GetICV () const
 
bool IsUrbanSection ()
 Function checks urban section on bus stops. More...
 
long GetJourneyTimetableTimeByBusStopsLineOrder (unsigned short lineOrderCheckInBusStop, unsigned short lineOrderCheckOutBusStop, unsigned long &diffTime) const
 Function calculates timetable time difference between check in and check out bus stop. More...
 
long GetJourneyTimetableTimeByBusStopsTripOrder (unsigned short tripOrderCheckInBusStop, unsigned short tripOrderCheckOutBusStop, unsigned long &diffTime) const
 Function calculates timetable time difference between check in and check out bus stop. More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojGetTripByNumber (int lineNumber, int tripNumber) const
 ======= data wrapping functions ===== More...
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojGetTripFromBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStop) const
 
bool FillTripTransfersTripStopsFlagIsForWait (const unsigned short currentBusStopLineOrder, std::list< EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransferTripStop * > *tripTransferTripStopList)
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavkaGetTripBusStopFromBusStopListing (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStopListing) const
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavkaGetTripBusStopByTripBusStopIndex (const long tripBusStopIndex)
 
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransferColGetTripTransfersFromBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip, long busStopOrderOnTrip) const
 
void GetTripTransfersFromBusStop (std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransfer * > &transfers, EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip, long busStopOrderOnTrip, bool validTodayOnly, bool withSignificantBusStopsOnly) const
 
int OrderOnLineToOrderOnTrip (int orderOnLine, const std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *busStopList=NULL) const
 
int OrderOnTripToOrderOnLine (unsigned long orderOnTrip, const std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *busStopList=NULL) const
 
int GetCommandSegmentBusStopOrderOnTrip (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip, EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurz *commandSegment, bool wantedFirstBusStop) const
 Function finds index of first or last bus stop on trip. More...
 
long GetTripIdFromBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStop) const
 
const char * LineNumberToLineNumberText (unsigned long lineNumber) const
 
const char * GetBusStopName (int lineNumber, int tripNumber, int orderOnLine) const
 
long IsLineBusStopMarkEnabled (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavka *linebusStop, const EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaZnacka::LineBusStopMark busStopMark, bool &enabled) const
 
long SearchNearestBusStopByCheckoutBusStopTariffNumber (const long &checkinBusStopTripOrder, const long &checkoutBusStopTripOrder)
 SearchNearestBusStopByCheckoutBusStopTariffNumber - tries to find bus stop with same tariff number as checkoutBusStop specified by parameter, but smaller trip order. Used for circle lines - if checkout bus stop is used multiple times on a single trip (with same busStopTariffNumber), ticket should be issued to nearest bus stop (stop with smallest trip order). More...
 
std::set< unsigned short > GetZonesOnBusStop (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStopListing) const
 GetZonesOnBusStop finds all bus stop zones. More...
 

Constructor & Destructor Documentation

ECp::ECp ( )
ECp::~ECp ( )
virtual
ECp::ECp ( )
virtual ECp::~ECp ( )
virtual

Member Function Documentation

void ECp::AddTariff ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupinaTarifa tariffGroup,
long  vodicPredajCl,
unsigned long  offset 
)

Here is the call graph for this function:

void ECp::AddTariff ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupinaTarifa tariffGroup,
long  vodicPredajCl,
unsigned long  offset 
)
bool ECp::CheckIDSonTG ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tg,
unsigned short  ids 
)

method which check if tariff group and tg suplements is on defined ids to get zone on bus stop which belong to ids

Author
Jozef Piecka
Parameters
tg- tarf group to be checket
ids- number of ids to be checked
Returns
true - if id is found, talse if not

Here is the call graph for this function:

bool ECp::CheckIDSonTG ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tg,
unsigned short  ids 
)

method which check if tariff group and tg suplements is on defined ids to get zone on bus stop which belong to ids

Author
Jozef Piecka
Parameters
tg- tarf group to be checket
ids- number of ids to be checked
Returns
true - if id is found, talse if not
bool ECp::CheckTariffAreaOnBusStopDefinedByLineOrder ( const unsigned long  tariffAreaFrom,
const unsigned long  tariffAreaTo,
const unsigned long  busStopLineOrder,
const bool  forCheckOut,
bool &  isValid 
) const

Checks if tariffArea is valid on bus stop.

Author
Andrej Bosik
Parameters
tariffAreaFrom- beginning of interval of valid tariff areas (bus stop's tariff area should be within it)
tariffAreaTo- end of interval of valid tariff areas (bus stop's tariff area should be within it)
busStopLineOrder- bus stop to be used to check zone
forCheckOut- will check zone for checkOut (if checkOut zone is not specified, checks zone for checkIn)
isValid- true, if zone is valid on busStopTripOrder, else false
Returns
true on success, false on failure

Here is the call graph for this function:

bool ECp::CheckTariffAreaOnBusStopDefinedByLineOrder ( const unsigned long  tariffAreaFrom,
const unsigned long  tariffAreaTo,
const unsigned long  busStopLineOrder,
const bool  forCheckOut,
bool &  isValid 
) const

Checks if tariffArea is valid on bus stop.

Author
Andrej Bosik
Parameters
tariffAreaFrom- beginning of interval of valid tariff areas (bus stop's tariff area should be within it)
tariffAreaTo- end of interval of valid tariff areas (bus stop's tariff area should be within it)
busStopLineOrder- bus stop to be used to check zone
forCheckOut- will check zone for checkOut (if checkOut zone is not specified, checks zone for checkIn)
isValid- true, if zone is valid on busStopTripOrder, else false
Returns
true on success, false on failure
bool ECp::CheckZoneOnBusStopDefinedByLineOrder ( const unsigned long  zone,
const unsigned long  busStopLineOrder,
const unsigned short  ids,
const bool  forCheckOut,
bool &  isZoneValid 
) const

method check if zone is valid on bus stop

Author
Andrej Bosik
  • first compares zone with busStop platform zones with corresponding ids
  • then compares zone with checkOut busStop zone - if forCheckOut is true
  • and at last compares zone with checkIn busStop zone
Parameters
zone- zone, that will be checked
busStopLineOrder- bus stop to be used to check zone
ids- number to check zone
forCheckOut- will check zone for checkOut (if checkOut zone is not specified, checks zone for checkIn)
isZoneValid- true, if zone is valid on busStopTripOrder, else false
Returns
true on success, false on failure
bool ECp::CheckZoneOnBusStopDefinedByLineOrder ( const unsigned long  zone,
const unsigned long  busStopLineOrder,
const unsigned short  ids,
const bool  forCheckOut,
bool &  isZoneValid 
) const

method check if zone is valid on bus stop

Author
Andrej Bosik
  • first compares zone with busStop platform zones with corresponding ids
  • then compares zone with checkOut busStop zone - if forCheckOut is true
  • and at last compares zone with checkIn busStop zone
Parameters
zone- zone, that will be checked
busStopLineOrder- bus stop to be used to check zone
ids- number to check zone
forCheckOut- will check zone for checkOut (if checkOut zone is not specified, checks zone for checkIn)
isZoneValid- true, if zone is valid on busStopTripOrder, else false
Returns
true on success, false on failure

Here is the call graph for this function:

void ECp::ClearOfferedTariffsVector ( )
void ECp::ClearOfferedTariffsVector ( )
void ECp::ClearTripBusStopCollection ( )

clear collecion of actual trip bus stops

void ECp::ClearTripBusStopCollection ( )

clear collecion of actual trip bus stops

void ECp::EraseBusStopCollection ( unsigned short  tripBusStopFrom,
int  tripBusStopTo = -1 
)

erase trip bus stops from begin of collection to tripBusStopFrom and from tripBusStopTo to end of trip bus stop collection

Parameters
tripBusStopTo- if value is negative, bus stops are erased only from begin of collection
void ECp::EraseBusStopCollection ( unsigned short  tripBusStopFrom,
int  tripBusStopTo = -1 
)

erase trip bus stops from begin of collection to tripBusStopFrom and from tripBusStopTo to end of trip bus stop collection

Parameters
tripBusStopTo- if value is negative, bus stops are erased only from begin of collection
bool ECp::FillTripTransfersTripStopsFlagIsForWait ( const unsigned short  currentBusStopLineOrder,
std::list< EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransferTripStop * > *  tripTransferTripStopList 
)

Here is the call graph for this function:

bool ECp::FillTripTransfersTripStopsFlagIsForWait ( const unsigned short  currentBusStopLineOrder,
std::list< EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransferTripStop * > *  tripTransferTripStopList 
)
long ECp::FindKeyStop ( std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *  pVecStops) const
long ECp::FindKeyStop ( std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *  pVecStops) const
ELinka * ECp::FindLinkaByNum ( long  lLinkacislo) const

No descriptions

EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinka* ECp::FindLinkaByNum ( long  lLinkacislo) const
unsigned short ECp::GetActualIDS ( ) const

Get number of IDS from actual tariff group.

Returns
Number of IDS
0 when actual tariff group is NULL

Here is the call graph for this function:

unsigned short ECp::GetActualIDS ( ) const

Get number of IDS from actual tariff group.

Returns
Number of IDS
0 when actual tariff group is NULL
long ECp::GetActualLinkaCisloN ( ) const

Vrati cislo linky ako cislo long

long ECp::GetActualLinkaCisloN ( ) const
const char * ECp::GetActualLinkaCisloText ( ) const

Vrati textove cislo linky

const char* ECp::GetActualLinkaCisloText ( ) const
char * ECp::GetActualLinkaName ( ) const

Vrati NazovLinky

char* ECp::GetActualLinkaName ( ) const
ELinka * ECp::GetActualLinkaPtr ( ) const

Here is the caller graph for this function:

EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinka* ECp::GetActualLinkaPtr ( ) const
ELinkaZastavka * ECp::GetActualLinkaZastavka ( ) const

Here is the call graph for this function:

EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavka* ECp::GetActualLinkaZastavka ( ) const
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaCol* ECp::GetActualLinkaZastavkyPtr ( ) const
ELinkaZastavkaCol * ECp::GetActualLinkaZastavkyPtr ( ) const
EPrikazKurz * ECp::GetActualPrikazKurz ( ) const
EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurz* ECp::GetActualPrikazKurz ( ) const
EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurzCol* ECp::GetActualPrikazKurzyPtr ( ) const
EPrikazKurzCol * ECp::GetActualPrikazKurzyPtr ( ) const
EM::Strojcek::VstupneUdaje::Turnusy::EPrikaz* ECp::GetActualPrikazPtr ( ) const
EPrikaz * ECp::GetActualPrikazPtr ( ) const
long ECp::GetActualSpojCislo ( ) const
long ECp::GetActualSpojCislo ( ) const

Vrati cislo spoja

EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka* ECp::GetActualSpojZastavkaPtr ( ) const
ESpojZastavka * ECp::GetActualSpojZastavkaPtr ( ) const

vrati pointer na zastavku na spoji

ESpojZastavkaCol * ECp::GetActualSpojZastavkyPtr ( ) const

pointer na ESpojZastavky

EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavkaCol* ECp::GetActualSpojZastavkyPtr ( ) const

Here is the call graph for this function:

unsigned char ECp::GetActualTarifSkup ( ) const

Here is the caller graph for this function:

unsigned char ECp::GetActualTarifSkup ( ) const
ESpoj * ECp::GetActualTrip ( ) const

Here is the caller graph for this function:

retruns an instance of actual trip bus

EZastavkaVypis * ECp::GetActualTripBusStop ( ) const

retruns an instance of actual trip bus

long ECp::GetActualTripBusStopIndex ( ) const

returns trip order from actual trip bus stop

long ECp::GetActualTripBusStopIndex ( ) const

returns trip order from actual trip bus stop

long ECp::GetActualUsekPrikazuIdx ( ) const
long ECp::GetActualUsekPrikazuIdx ( ) const
EZastavka * ECp::GetActualZastavka ( ) const
long ECp::GetActualZastavkaId ( ) const
long ECp::GetActualZastavkaId ( ) const
unsigned short ECp::GetActualZastavkaLinkaPoradie ( ) const
unsigned short ECp::GetActualZastavkaLinkaPoradie ( ) const
char* ECp::GetActualZastavkaNazov ( ) const
char * ECp::GetActualZastavkaNazov ( ) const

vrati pointer na nazov zastavky

char * ECp::GetActualZastavkaNazovDlhy ( ) const
char* ECp::GetActualZastavkaNazovDlhy ( ) const
char * ECp::GetActualZastavkaNazovKratky ( ) const
char* ECp::GetActualZastavkaNazovKratky ( ) const
unsigned short ECp::GetActualZastavkaTime ( ) const
unsigned short ECp::GetActualZastavkaTime ( ) const

vrati cas odchodu zo zastavky v minutach od polnoci

unsigned short ECp::GetActualZone ( ) const

Here is the call graph for this function:

unsigned short ECp::GetActualZone ( ) const
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka* ECp::GetBusStopByBusStopLineOrder ( const unsigned long  busStopLineOrder) const

GetBusStopByBusStopLineOrder.

Author
Andrej Bosik
Parameters
busStopLineOrder
Returns
bus stop or NULL
EZastavka * ECp::GetBusStopByBusStopLineOrder ( const unsigned long  busStopLineOrder) const

GetBusStopByBusStopLineOrder.

Author
Andrej Bosik
Parameters
busStopLineOrder
Returns
bus stop or NULL

Here is the call graph for this function:

Here is the caller graph for this function:

long ECp::GetBusStopIDByOrderOnTrip ( long  orderOnTrip,
unsigned long &  busStopID 
) const

Here is the call graph for this function:

long ECp::GetBusStopIDByOrderOnTrip ( long  orderOnTrip,
unsigned long &  busStopID 
) const
const char * ECp::GetBusStopName ( int  lineNumber,
int  tripNumber,
int  orderOnLine 
) const

Here is the call graph for this function:

const char* ECp::GetBusStopName ( int  lineNumber,
int  tripNumber,
int  orderOnLine 
) const
long ECp::GetCheckOutTripBusStopIndex ( ) const

returns trip order from checkout trip bus stop

long ECp::GetCheckOutTripBusStopIndex ( ) const

returns trip order from checkout trip bus stop

int ECp::GetCommandSegmentBusStopOrderOnTrip ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj trip,
EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurz commandSegment,
bool  wantedFirstBusStop 
) const

Function finds index of first or last bus stop on trip.

Parameters
trip- pointer to trip
commandSegment- current command segment
wantedFirstBusStop- if true, we look for first bus stop, if false, last bus stop is searched
Returns
trip order or -1 if bus stop not found on trip
Note
only bus stops with flag ESpoj::Ide are considered as trip bus stops (other bus stops aren't taken account)

Here is the call graph for this function:

int ECp::GetCommandSegmentBusStopOrderOnTrip ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj trip,
EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurz commandSegment,
bool  wantedFirstBusStop 
) const

Function finds index of first or last bus stop on trip.

Parameters
trip- pointer to trip
commandSegment- current command segment
wantedFirstBusStop- if true, we look for first bus stop, if false, last bus stop is searched
Returns
trip order or -1 if bus stop not found on trip
Note
only bus stops with flag ESpoj::Ide are considered as trip bus stops (other bus stops aren't taken account)
long ECp::GetCurrentBusStopPlatformNumber ( ) const
long ECp::GetCurrentBusStopPlatformNumber ( ) const

Here is the call graph for this function:

long ECp::GetDefaultCheckOutBusStopTripOrder ( short  requestedTariffAreaCount = 0,
EM::Strojcek::VstupneUdaje::TarifnySystem::ECennik pricelist = NULL 
) const

returns default check out bus stop (used with auto issue)

Author
Jan Benadik
Parameters
requestedTariffAreaCount- is considered when default stop is NOT end of trip - if greater then 1, last bus stop is returned, otherwise last bus stop in tariff area
Returns
trip order of check out bus stop
Note
calls GetDefaultCheckOutBusStopTripOrder()

Here is the call graph for this function:

long ECp::GetDefaultCheckOutBusStopTripOrder ( short  requestedTariffAreaCount = 0,
EM::Strojcek::VstupneUdaje::TarifnySystem::ECennik pricelist = NULL 
) const

returns default check out bus stop (used with auto issue)

Author
Jan Benadik
Parameters
requestedTariffAreaCount- is considered when default stop is NOT end of trip - if greater then 1, last bus stop is returned, otherwise last bus stop in tariff area
Returns
trip order of check out bus stop
Note
calls GetDefaultCheckOutBusStopTripOrder()
unsigned long ECp::GetDZV ( ) const
unsigned long ECp::GetDZV ( ) const
char * ECp::GetFileName ( ) const
char* ECp::GetFileName ( ) const
unsigned long ECp::GetICV ( ) const
unsigned long ECp::GetICV ( ) const
long ECp::GetJourneyTimetableTimeByBusStopsLineOrder ( unsigned short  lineOrderCheckInBusStop,
unsigned short  lineOrderCheckOutBusStop,
unsigned long &  diffTime 
) const

Function calculates timetable time difference between check in and check out bus stop.

Parameters
lineOrderCheckInBusStop- check in bus stop's order on line
lineOrderCheckOutBusStop- check out bus stop's order on line
time- difference in minutes
Returns
see GetJourneyTimetableTimeByBusStopsTripOrder

Here is the call graph for this function:

long ECp::GetJourneyTimetableTimeByBusStopsLineOrder ( unsigned short  lineOrderCheckInBusStop,
unsigned short  lineOrderCheckOutBusStop,
unsigned long &  diffTime 
) const

Function calculates timetable time difference between check in and check out bus stop.

Parameters
lineOrderCheckInBusStop- check in bus stop's order on line
lineOrderCheckOutBusStop- check out bus stop's order on line
time- difference in minutes
Returns
see GetJourneyTimetableTimeByBusStopsTripOrder
long ECp::GetJourneyTimetableTimeByBusStopsTripOrder ( unsigned short  tripOrderCheckInBusStop,
unsigned short  tripOrderCheckOutBusStop,
unsigned long &  diffTime 
) const

Function calculates timetable time difference between check in and check out bus stop.

Parameters
tripOrderCheckInBusStop- check in bus stop's order on trip (index in vector of EZastavkaVypis)
tripOrderCheckOutBusStop- check out bus stop's order on trip (index in vector of EZastavkaVypis)
time- difference in minutes
Returns
EDATA_ERR_INDEX_OUT_OF_RANGE - trip order of check in or check out bus stop is out of range (greeater than size of vector of bus stops) Ok - on success

Here is the call graph for this function:

long ECp::GetJourneyTimetableTimeByBusStopsTripOrder ( unsigned short  tripOrderCheckInBusStop,
unsigned short  tripOrderCheckOutBusStop,
unsigned long &  diffTime 
) const

Function calculates timetable time difference between check in and check out bus stop.

Parameters
tripOrderCheckInBusStop- check in bus stop's order on trip (index in vector of EZastavkaVypis)
tripOrderCheckOutBusStop- check out bus stop's order on trip (index in vector of EZastavkaVypis)
time- difference in minutes
Returns
EDATA_ERR_INDEX_OUT_OF_RANGE - trip order of check in or check out bus stop is out of range (greeater than size of vector of bus stops) Ok - on success
ELinkaZastavka * ECp::GetLineBusStop ( long  lineOrderBusStop) const

same as GetLineBusStopByLineOrder but const

Here is the call graph for this function:

Here is the caller graph for this function:

EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavka* ECp::GetLineBusStop ( long  lineOrderBusStop) const

same as GetLineBusStopByLineOrder but const

EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavka* ECp::GetLineBusStopByLineOrder ( long  lineOrderBusStop)

get instance of ELinkaZastavka by line bus stop order "lineOrderBusStop - see param"

Author
Jan Sipikal && Jan Benadik
Parameters
lineOrderBusStop- bus stop line order

We have two posibillities : a) lineOrderCheckoutBusStop is lower as 100 - get instance ELinkaZastavka from actual instance of ELinka

b) continues trip may be from another line as first line, function finds Line of continues trip and returns instance of ELinkaZastavka by "lineOrderCheckoutBusStop - see param"

ELinkaZastavka * ECp::GetLineBusStopByLineOrder ( long  lineOrderBusStop)

get instance of ELinkaZastavka by line bus stop order "lineOrderBusStop - see param"

Author
Jan Sipikal && Jan Benadik
Parameters
lineOrderBusStop- bus stop line order

We have two posibillities : a) lineOrderCheckoutBusStop is lower as 100 - get instance ELinkaZastavka from actual instance of ELinka

b) continues trip may be from another line as first line, function finds Line of continues trip and returns instance of ELinkaZastavka by "lineOrderCheckoutBusStop - see param"

char * ECp::GetMenoByZastVypisPor ( unsigned short  por,
bool  dlhe = false 
) const

Here is the call graph for this function:

char* ECp::GetMenoByZastVypisPor ( unsigned short  por,
bool  dlhe = false 
) const
EZastavkaVypis * ECp::GetNextEZastavkaVypis ( ) const
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis* ECp::GetNextEZastavkaVypis ( ) const
long ECp::GetNextZastavkaId ( ) const
long ECp::GetNextZastavkaId ( ) const
unsigned short ECp::GetNextZone ( ) const

Here is the call graph for this function:

unsigned short ECp::GetNextZone ( ) const
bool ECp::GetNumberOfZonesBetweenBusStops ( const long  boardingBusStopOrderOnLine,
const long  landingBusStopOrderOnLine,
unsigned char &  zoneCount 
) const

method for getting number of zones between two bus stops on currently selected trip

Author
Jaroslav Brtis
Parameters
boardingBusStopOrderOnLineorder of boarding bus stop on current line
landingBusStopOrderOnLineorder of landing bus stop on current line
zoneCountnumber of zones between the entered bus stops
Returns
true on success, false on failure
bool ECp::GetNumberOfZonesBetweenBusStops ( const long  boardingBusStopOrderOnLine,
const long  landingBusStopOrderOnLine,
unsigned char &  zoneCount 
) const

method for getting number of zones between two bus stops on currently selected trip

Author
Jaroslav Brtis
Parameters
boardingBusStopOrderOnLineorder of boarding bus stop on current line
landingBusStopOrderOnLineorder of landing bus stop on current line
zoneCountnumber of zones between the entered bus stops
Returns
true on success, false on failure

Here is the call graph for this function:

void ECp::GetOdchylkovy ( long &  first,
long &  last 
) const
void ECp::GetOdchylkovy ( long &  first,
long &  last 
) const
const std::vector< EOfferedTariff * > * ECp::GetOfferedTariffs ( ) const
const std::vector<EOfferedTariff *>* ECp::GetOfferedTariffs ( ) const
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ENastupiste* ECp::GetPlatformByBusStopLineOrder ( const unsigned long  busStopLineOrder) const

GetPlatformByBusStopLineOrder.

Author
Andrej Bosik
Parameters
busStopLineOrder
Returns
platform on bus stop or NULL
ENastupiste * ECp::GetPlatformByBusStopLineOrder ( const unsigned long  busStopLineOrder) const

GetPlatformByBusStopLineOrder.

Author
Andrej Bosik
Parameters
busStopLineOrder
Returns
platform on bus stop or NULL

Here is the call graph for this function:

long ECp::GetPlatformByTripBusStopIndex ( long  tripBusStopIndex,
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ENastupiste *&  platform 
)

return instance of ENastupiste platform by trip bus stop index

GetActualTripBusStopIndex

Returns
defines in edataerrdefines.h

Here is the call graph for this function:

long ECp::GetPlatformByTripBusStopIndex ( long  tripBusStopIndex,
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ENastupiste *&  platform 
)

return instance of ENastupiste platform by trip bus stop index

GetActualTripBusStopIndex

Returns
defines in edataerrdefines.h
long ECp::GetPlatformNumberByTripBusStopIndex ( const long  tripBusStopIndex,
long &  platform 
)

Here is the call graph for this function:

long ECp::GetPlatformNumberByTripBusStopIndex ( const long  tripBusStopIndex,
long &  platform 
)
long ECp::GetPocetPasiemDoKonecnej ( char &  tariffZonesCount,
unsigned short *  tariffZones,
char  maxTariffZonesCount 
) const

Here is the call graph for this function:

long ECp::GetPocetPasiemDoKonecnej ( char &  tariffZonesCount,
unsigned short *  tariffZones,
char  maxTariffZonesCount 
) const
unsigned short ECp::GetSubZoneNumberByBusStopTripOrder ( unsigned int  busStopTripOrder)

GetSubZoneNumberByBusStopTripOrder.

Parameters
busStopTripOrder- trip order of bus stop to be used to find subzone
Returns
SubZone number
unsigned short ECp::GetSubZoneNumberByBusStopTripOrder ( unsigned int  busStopTripOrder)

GetSubZoneNumberByBusStopTripOrder.

Parameters
busStopTripOrder- trip order of bus stop to be used to find subzone
Returns
SubZone number

Here is the call graph for this function:

unsigned short ECp::GetTariffAreaNumberByBusStopTripOrder ( unsigned long  busStopTripOrder,
bool  forCheckOut = false 
) const

method to get tariffArea of bus stop which belongs to specified ids

Author
Jan Benadik
Parameters
busStopTripOrder- trip order of bus stop to be used to find zone
forCheckOut- will find zone for checkOut (if checkOut tariffArea is not specified, returns tariffArea for checkIn)
Returns
tariffArea of busStop or NULL if something went wrong
unsigned short ECp::GetTariffAreaNumberByBusStopTripOrder ( unsigned long  busStopTripOrder,
bool  forCheckOut = false 
) const

method to get tariffArea of bus stop which belongs to specified ids

Author
Jan Benadik
Parameters
busStopTripOrder- trip order of bus stop to be used to find zone
forCheckOut- will find zone for checkOut (if checkOut tariffArea is not specified, returns tariffArea for checkIn)
Returns
tariffArea of busStop or NULL if something went wrong

Here is the call graph for this function:

EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis* ECp::GetTripBusStopByIndex ( long  tripOrder)

makes available bus stop specified by index tripOrder

EZastavkaVypis * ECp::GetTripBusStopByIndex ( long  tripOrder)

makes available bus stop specified by index tripOrder

Here is the caller graph for this function:

ESpojZastavka * ECp::GetTripBusStopByTripBusStopIndex ( const long  tripBusStopIndex)
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka* ECp::GetTripBusStopByTripBusStopIndex ( const long  tripBusStopIndex)
long ECp::GetTripBusStopCollectionSize ( )

returns actual trip bus stop collection size

long ECp::GetTripBusStopCollectionSize ( )

returns actual trip bus stop collection size

ESpojZastavka * ECp::GetTripBusStopFromBusStopListing ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis busStopListing) const

Here is the call graph for this function:

Here is the caller graph for this function:

EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj * ECp::GetTripByNumber ( int  lineNumber,
int  tripNumber 
) const

======= data wrapping functions =====

Here is the call graph for this function:

Here is the caller graph for this function:

EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj* ECp::GetTripByNumber ( int  lineNumber,
int  tripNumber 
) const

======= data wrapping functions =====

ESpoj * ECp::GetTripFromBusStop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis busStop) const

Here is the call graph for this function:

long ECp::GetTripIdFromBusStop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis busStop) const

Here is the call graph for this function:

long ECp::GetTripIdFromBusStop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis busStop) const
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransferCol* ECp::GetTripTransfersFromBusStop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj trip,
long  busStopOrderOnTrip 
) const
ETripTransferCol * ECp::GetTripTransfersFromBusStop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj trip,
long  busStopOrderOnTrip 
) const

Here is the call graph for this function:

void ECp::GetTripTransfersFromBusStop ( std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransfer * > &  transfers,
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj trip,
long  busStopOrderOnTrip,
bool  validTodayOnly,
bool  withSignificantBusStopsOnly 
) const
void ECp::GetTripTransfersFromBusStop ( std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::ETripTransfer * > &  transfers,
EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj trip,
long  busStopOrderOnTrip,
bool  validTodayOnly,
bool  withSignificantBusStopsOnly 
) const
long ECp::GetUrbanTransportIDByBusStopLineOrder ( const unsigned long  busStopLineOrder,
unsigned short &  urbanTransportID 
)

method to to get urban transport ID by bus stop line order

Author
Andrej Bosik
Parameters
busStopLineOrder- telling which busstop's urban transport ID will be get
urbanTransportID- output param where ID of urban trasnport of busstop will be saved
Returns
Zero (EDATA_OK) on success, otherwise EDATA_ERR_CP_NULL_POINTER

GetUrbanTransportIDByBusStopLineOrder

Here is the call graph for this function:

long ECp::GetUrbanTransportIDByBusStopLineOrder ( const unsigned long  busStopLineOrder,
unsigned short &  urbanTransportID 
)

method to to get urban transport ID by bus stop line order

Author
Andrej Bosik
Parameters
busStopLineOrder- telling which busstop's urban transport ID will be get
urbanTransportID- output param where ID of urban trasnport of busstop will be saved
Returns
Zero (EDATA_OK) on success, otherwise EDATA_ERR_CP_NULL_POINTER
long ECp::GetUrbanTransportIDForBusstop ( unsigned int  busStopTripOrder,
unsigned short &  urbanTransportID 
) const

method to to get urban transport ID of busstop

Author
Jan Benadik
Parameters
tripBusstop- trip-order of busstop
urbanTransportID- output param where ID of urban trasnport of busstop will be saved
Returns
Zero (EDATA_OK) on success, otherwise EDATA_ERR_CP_NULL_POINTER
long ECp::GetUrbanTransportIDForBusstop ( unsigned int  busStopTripOrder,
unsigned short &  urbanTransportID 
) const

method to to get urban transport ID of busstop

Author
Jan Benadik
Parameters
tripBusstop- trip-order of busstop
urbanTransportID- output param where ID of urban trasnport of busstop will be saved
Returns
Zero (EDATA_OK) on success, otherwise EDATA_ERR_CP_NULL_POINTER
long ECp::GetUrbanTransportIDForBusstop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis tripBusstop,
unsigned short &  urbanTransportID 
) const

method to to get urban transport ID of busstop

Author
Jan Benadik
Parameters
tripBusstop- telling which busstop's urban transport ID will be get
urbanTransportID- output param where ID of urban trasnport of busstop will be saved
Returns
Zero (EDATA_OK) on success, otherwise EDATA_ERR_CP_NULL_POINTER

Here is the call graph for this function:

long ECp::GetUrbanTransportIDForBusstop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis tripBusstop,
unsigned short &  urbanTransportID 
) const

method to to get urban transport ID of busstop

Author
Jan Benadik
Parameters
tripBusstop- telling which busstop's urban transport ID will be get
urbanTransportID- output param where ID of urban trasnport of busstop will be saved
Returns
Zero (EDATA_OK) on success, otherwise EDATA_ERR_CP_NULL_POINTER
char ECp::GetVydajStatus ( ) const
char ECp::GetVydajStatus ( ) const
EZastavka * ECp::GetZastavkaBySpojZastavka ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka pSpojZast) const

Here is the call graph for this function:

EZona * ECp::GetZoneByBusStop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka busStop,
unsigned short  ids 
)

method to get zone on bus stop which belong to ids

Author
Jozef Piecka
Parameters
busStop- actual bus stop to be used to find zone
ids- number to find zone
Returns
zone which belongs to ids or NULL

Here is the call graph for this function:

method to get zone on bus stop which belong to ids

Author
Jozef Piecka
Parameters
busStop- actual bus stop to be used to find zone
ids- number to find zone
Returns
zone which belongs to ids or NULL

calls GetZoneByBusStop with parameter forCheckOut with value false

Author
Jan Benadik
Parameters
busStop- bus stop to be used to find zone
ids- number to find zone
Returns
zone which belongs to ids or NULL
See also
GetZoneByBusStop( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStop, unsigned short ids, bool forCheckOut )
EZona * ECp::GetZoneByBusStop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis busStop,
unsigned short  ids 
) const

calls GetZoneByBusStop with parameter forCheckOut with value false

Author
Jan Benadik
Parameters
busStop- bus stop to be used to find zone
ids- number to find zone
Returns
zone which belongs to ids or NULL
See also
GetZoneByBusStop( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis *busStop, unsigned short ids, bool forCheckOut )
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZona* ECp::GetZoneByBusStop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis busStop,
unsigned short  ids,
bool  forCheckOut 
) const

method to get zone on bus stop which belongs to specified ids

Author
Jan Benadik
Parameters
busStop- bus stop to be used to find zone
ids- number to find zone
forCheckOut- will find zone for checkOut (if checkOut zone is not specified, returns zone for checkIn)
Returns
zone which belongs to ids or NULL
EZona * ECp::GetZoneByBusStop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis busStop,
unsigned short  ids,
bool  forCheckOut 
) const

method to get zone on bus stop which belongs to specified ids

Author
Jan Benadik
Parameters
busStop- bus stop to be used to find zone
ids- number to find zone
forCheckOut- will find zone for checkOut (if checkOut zone is not specified, returns zone for checkIn)
Returns
zone which belongs to ids or NULL

Here is the call graph for this function:

EZona * ECp::GetZoneByBusStopLineOrder ( const unsigned long  busStopLineOrder,
const unsigned short  ids,
const bool  forCheckOut 
) const

method to get zone on bus stop which belongs to specified ids

Author
Andrej Bosik
Parameters
busStopLineOrder- line order of bus stop to be used to find zone
ids- number to find zone
forCheckOut- will find zone for checkOut (if checkOut zone is not specified, returns zone for checkIn)
Returns
zone which belongs to ids or NULL

Here is the call graph for this function:

EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZona* ECp::GetZoneByBusStopLineOrder ( const unsigned long  busStopLineOrder,
const unsigned short  ids,
const bool  forCheckOut 
) const

method to get zone on bus stop which belongs to specified ids

Author
Andrej Bosik
Parameters
busStopLineOrder- line order of bus stop to be used to find zone
ids- number to find zone
forCheckOut- will find zone for checkOut (if checkOut zone is not specified, returns zone for checkIn)
Returns
zone which belongs to ids or NULL
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZona* ECp::GetZoneByBusStopTripOrder ( unsigned int  busStopTripOrder,
unsigned short  ids 
) const

calls GetZoneByBusStop with parameter forCheckOut with value false

Author
Jan Benadik
Parameters
busStop- trip order of bus stop to be used to find zone
ids- number to find zone
Returns
zone which belongs to ids or NULL
EZona * ECp::GetZoneByBusStopTripOrder ( unsigned int  busStopTripOrder,
unsigned short  ids 
) const

calls GetZoneByBusStop with parameter forCheckOut with value false

Author
Jan Benadik
Parameters
busStop- trip order of bus stop to be used to find zone
ids- number to find zone
Returns
zone which belongs to ids or NULL
EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZona* ECp::GetZoneByBusStopTripOrder ( unsigned int  busStopTripOrder,
unsigned short  ids,
bool  forCheckOut 
) const

method to get zone on bus stop which belongs to specified ids

Author
Jan Benadik
Parameters
busStopTripOrder- trip order of bus stop to be used to find zone
ids- number to find zone
forCheckOut- will find zone for checkOut (if checkOut zone is not specified, returns zone for checkIn)
Returns
zone which belongs to ids or NULL
EZona * ECp::GetZoneByBusStopTripOrder ( unsigned int  busStopTripOrder,
unsigned short  ids,
bool  forCheckOut 
) const

method to get zone on bus stop which belongs to specified ids

Author
Jan Benadik
Parameters
busStopTripOrder- trip order of bus stop to be used to find zone
ids- number to find zone
forCheckOut- will find zone for checkOut (if checkOut zone is not specified, returns zone for checkIn)
Returns
zone which belongs to ids or NULL
EZona * ECp::GetZoneByPlatform ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ENastupiste platform,
unsigned short  ids 
) const

method to get zone from platform which belongs to specified ids

Author
Jan Benadik
Parameters
platform- to be used to find zone
ids- number to find zone
Returns
zone which belongs to ids or NULL

Here is the call graph for this function:

EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZona* ECp::GetZoneByPlatform ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ENastupiste platform,
unsigned short  ids 
) const

method to get zone from platform which belongs to specified ids

Author
Jan Benadik
Parameters
platform- to be used to find zone
ids- number to find zone
Returns
zone which belongs to ids or NULL
std::set<unsigned short> ECp::GetZonesOnBusStop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis busStopListing) const

GetZonesOnBusStop finds all bus stop zones.

Parameters
busStopListing- instance of trip bus stop
Returns
set of bus stop zones
std::set< unsigned short > ECp::GetZonesOnBusStop ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis busStopListing) const

GetZonesOnBusStop finds all bus stop zones.

Parameters
busStopListing- instance of trip bus stop
Returns
set of bus stop zones

Here is the call graph for this function:

void ECp::Init ( )
void ECp::Init ( )
bool ECp::IsActualTripContinuous_MHD ( ) const

Here is the call graph for this function:

bool ECp::IsActualTripContinuous_MHD ( ) const
bool ECp::IsActualZoneUrbanZone ( ) const

IsActualZoneUrbanZone - checks if actual zone is in urban zones defined in input data.

Returns
true if actual zone is urban otherwise return false

Here is the call graph for this function:

bool ECp::IsActualZoneUrbanZone ( ) const

IsActualZoneUrbanZone - checks if actual zone is in urban zones defined in input data.

Returns
true if actual zone is urban otherwise return false
bool ECp::IsAtLeastOneZoneOnBusstop ( const unsigned long  busStopLineOrder,
const unsigned short  ids,
const bool  forCheckOut,
bool &  isAtLeastOneZoneOnBusstop 
) const

IsAtLeastOneZoneOnBusstop - checks if busstop has at least one zone of specified IDS (so the network wide ticket can be applied)

Parameters
busStopLineOrder- bus stop to be used to check zone
ids- required ids number
forCheckOut- will check zone for checkOut (if checkOut zone is not specified, checks zone for checkIn)
isAtLeastOneZoneOnBusstop- output parameter
Returns
true on success, false on failure
bool ECp::IsAtLeastOneZoneOnBusstop ( const unsigned long  busStopLineOrder,
const unsigned short  ids,
const bool  forCheckOut,
bool &  isAtLeastOneZoneOnBusstop 
) const

IsAtLeastOneZoneOnBusstop - checks if busstop has at least one zone of specified IDS (so the network wide ticket can be applied)

Parameters
busStopLineOrder- bus stop to be used to check zone
ids- required ids number
forCheckOut- will check zone for checkOut (if checkOut zone is not specified, checks zone for checkIn)
isAtLeastOneZoneOnBusstop- output parameter
Returns
true on success, false on failure

Here is the call graph for this function:

bool ECp::IsBorderBusStop ( unsigned long  paPoradie) const
bool ECp::IsBorderBusStop ( unsigned long  paPoradie) const

Here is the call graph for this function:

bool ECp::IsFirstBusStopOnZone ( unsigned long  busStopOrderOnTrip) const

Here is the call graph for this function:

bool ECp::IsFirstBusStopOnZone ( unsigned long  busStopOrderOnTrip) const
bool ECp::IsKonecna ( ) const
bool ECp::IsKonecna ( ) const
bool ECp::IsKonecna_Continues_Lines ( ) const
bool ECp::IsKonecna_Continues_Lines ( ) const
bool ECp::IsLastBusStopOnTrip ( unsigned long  paPoradie) const
bool ECp::IsLastBusStopOnTrip ( unsigned long  paPoradie) const
bool ECp::IsLastBusStopOnZone ( unsigned long  busStopOrderOnTrip) const
bool ECp::IsLastBusStopOnZone ( unsigned long  busStopOrderOnTrip) const

Here is the call graph for this function:

long ECp::IsLineBusStopMarkEnabled ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavka linebusStop,
const EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaZnacka::LineBusStopMark  busStopMark,
bool &  enabled 
) const
Parameters
linebusStop- line bus stop to check
busStopMark- mark to check
enabled- output param - true - enabled bus stop mark
enabled- output param - false - disabled bus stop mark
Returns
EDATA_OK - all ok
See also
edataerrdefines hearder file
long ECp::IsLineBusStopMarkEnabled ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavka linebusStop,
const EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinkaZastavkaZnacka::LineBusStopMark  busStopMark,
bool &  enabled 
) const
Parameters
linebusStop- line bus stop to check
busStopMark- mark to check
enabled- output param - true - enabled bus stop mark
enabled- output param - false - disabled bus stop mark
Returns
EDATA_OK - all ok
See also
edataerrdefines hearder file

Here is the call graph for this function:

bool ECp::IsNextTripContinuous_MHD ( ) const
bool ECp::IsNextTripContinuous_MHD ( ) const

----------------------— UZ SA NEPOUZIVA

bool ECp::IsUrbanSection ( )

Function checks urban section on bus stops.

Note
Device SLAVE checks only actual and next bus stop
Device OBC checks whole selected trip
Returns
true - currently selected section is urban section
false - currently selected section is suburban section

Here is the call graph for this function:

bool ECp::IsUrbanSection ( )

Function checks urban section on bus stops.

Note
Device SLAVE checks only actual and next bus stop
Device OBC checks whole selected trip
Returns
true - currently selected section is urban section
false - currently selected section is suburban section
const char* ECp::LineNumberToLineNumberText ( unsigned long  lineNumber) const
const char * ECp::LineNumberToLineNumberText ( unsigned long  lineNumber) const

Here is the call graph for this function:

void ECp::LoadBusStopsOfActualTrip ( )
void ECp::LoadBusStopsOfActualTrip ( )

Here is the call graph for this function:

long ECp::LoadLS ( unsigned long  lineNumber,
unsigned short  tripNumber 
)

Metoda nastavy aktualnu linka a spoj.

Parameters
linka
spoj
Returns
ERR_OK,...

Here is the call graph for this function:

long ECp::LoadLS ( unsigned long  linka,
unsigned short  spoj 
)
long ECp::LoadLS ( char *  strLineNumber,
char *  strTripNumber 
)
long ECp::LoadLS ( char *  strLineNumber,
char *  strTripNumber 
)
int ECp::OrderOnLineToOrderOnTrip ( int  orderOnLine,
const std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *  busStopList = NULL 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

int ECp::OrderOnLineToOrderOnTrip ( int  orderOnLine,
const std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *  busStopList = NULL 
) const
int ECp::OrderOnTripToOrderOnLine ( unsigned long  orderOnTrip,
const std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *  busStopList = NULL 
) const
int ECp::OrderOnTripToOrderOnLine ( unsigned long  orderOnTrip,
const std::vector< EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavkaVypis * > *  busStopList = NULL 
) const
long ECp::SearchNearestBusStopByCheckoutBusStopTariffNumber ( const long &  checkinBusStopTripOrder,
const long &  checkoutBusStopTripOrder 
)

SearchNearestBusStopByCheckoutBusStopTariffNumber - tries to find bus stop with same tariff number as checkoutBusStop specified by parameter, but smaller trip order. Used for circle lines - if checkout bus stop is used multiple times on a single trip (with same busStopTariffNumber), ticket should be issued to nearest bus stop (stop with smallest trip order).

Parameters
checkinBusStopTripOrder- trip order of check-in bus stop on current trip. Used for faster searching.
checkoutBusStopTripOrder- trip order of check-out bus stop on current trip
Returns
Trip order of nearest found bus stop. If no bus stop is found, checkoutBusStopTripOrder is returned.

Here is the call graph for this function:

long ECp::SearchNearestBusStopByCheckoutBusStopTariffNumber ( const long &  checkinBusStopTripOrder,
const long &  checkoutBusStopTripOrder 
)

SearchNearestBusStopByCheckoutBusStopTariffNumber - tries to find bus stop with same tariff number as checkoutBusStop specified by parameter, but smaller trip order. Used for circle lines - if checkout bus stop is used multiple times on a single trip (with same busStopTariffNumber), ticket should be issued to nearest bus stop (stop with smallest trip order).

Parameters
checkinBusStopTripOrder- trip order of check-in bus stop on current trip. Used for faster searching.
checkoutBusStopTripOrder- trip order of check-out bus stop on current trip
Returns
Trip order of nearest found bus stop. If no bus stop is found, checkoutBusStopTripOrder is returned.
long ECp::SetActualCommand ( EM::Strojcek::VstupneUdaje::Turnusy::EPrikaz prikaz)
long ECp::SetActualCommand ( EM::Strojcek::VstupneUdaje::Turnusy::EPrikaz prikaz)
void ECp::SetActualEPrikazKurz ( EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurz pPrikazKurz)
void ECp::SetActualEPrikazKurz ( EM::Strojcek::VstupneUdaje::Turnusy::EPrikazKurz pPrikazKurz)
void ECp::SetActualLinkaPtr ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinka pLinka)

vrati pointer na linku

void ECp::SetActualLinkaPtr ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ELinka pLinka)
long ECp::SetActualPrikaz ( char *  pcPrikaz)
long ECp::SetActualPrikaz ( char *  pcPrikaz)

vyhlada prikaz a nastavi ho ako aktualny a nacita kolekciu kurzov prikazu char *pcPrikaz - cislo prikazu ako textovy retazec -

Returns
0 - StatistikaOK ERR_NO_FOUND_PRIKAZ - prikaz nenajdeny
void ECp::SetActualSpojPtr ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj trip)

Nastavi pointer na spoj

void ECp::SetActualSpojPtr ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj trip)
void ECp::SetActualSpojZastavkaPtr ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka pSpojZast)
void ECp::SetActualSpojZastavkaPtr ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka pSpojZast)
void ECp::SetActualTarifSkup ( unsigned char  actTarifSkup)
void ECp::SetActualTarifSkup ( unsigned char  actTarifSkup)
long ECp::SetActualTripBusStopIndex ( const long  actualTripBusStopIndex)

sets actual bus stop trip order

long ECp::SetActualTripBusStopIndex ( const long  actualTripBusStopIndex)

sets actual bus stop trip order

Here is the call graph for this function:

long ECp::SetCheckOutTripBusStopIndex ( const long  actualTripBusStopIndex)

sets checkout bus stop trip order

long ECp::SetCheckOutTripBusStopIndex ( const long  actualTripBusStopIndex)

sets checkout bus stop trip order

void ECp::SetDZVICV ( unsigned long  dzv,
unsigned long  icv 
)
void ECp::SetDZVICV ( unsigned long  dzv,
unsigned long  icv 
)
long ECp::SetFirstSpojZastavka ( )
long ECp::SetFirstSpojZastavka ( )

SetFirstSpojZastavka

rerurn 1 - kelekcia zastavok neobsahuje ziadnu zastavku return 2 - return 3 - nenajdene nasledujuce nastupiste return 4 - nenajdena ziadna zastavka na spoji na od ktorej ide return 5 - nenacitana kolekcia zastavok

return 9 - null pointer na aktualnu linku return 10 - null pointer na aktualny spoj

long ECp::SetLastSpojZastavka ( )

Nastavi poslednu zastavku na spoji !!! podmienene ze vzdy predtym bola nastavena prva zastavka na danom spoji

return 5 - nenacitana kolekcia zastavok

Here is the call graph for this function:

long ECp::SetLastSpojZastavka ( )
long ECp::SetNextSpojZastavka1 ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka **  spojZast)

Nastavi ako aktualnu dalsiu zastavku na linke

Here is the call graph for this function:

long ECp::SetNextSpojZastavka1 ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpojZastavka **  spojZast)
void ECp::SetOdchylkovy ( long  first,
long  last 
)
void ECp::SetOdchylkovy ( long  first,
long  last 
)
long ECp::SetStartUsekPrikazuIdx ( unsigned long  IdxUsek)
long ECp::SetStartUsekPrikazuIdx ( unsigned long  IdxUsek)
void ECp::SetVydajStatus ( char  cVydajStatus)
void ECp::SetVydajStatus ( char  cVydajStatus)
long ECp::TarifyLoad ( unsigned char  tarifSkup,
long  vodicPredajCl 
)

Here is the call graph for this function:

long ECp::TarifyLoad ( unsigned char  tarifSkup,
long  vodicPredajCl 
)

The documentation for this class was generated from the following files: