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

#include <edata.h>

Classes

class  DataClass
 

Public Types

enum  DeviceType {
  DeviceUndefined = -1, DeviceOBC, DeviceSlave, DeviceUndefined = -1,
  DeviceOBC, DeviceSlave
}
 
enum  DeviceType {
  DeviceUndefined = -1, DeviceOBC, DeviceSlave, DeviceUndefined = -1,
  DeviceOBC, DeviceSlave
}
 

Public Member Functions

 EData ()
 
 ~EData ()
 
long init (char *pathCp)
 
long init (char *pathCp, DeviceType deviceType)
 
ECpGetECp ()
 
DeviceType GetDeviceType ()
 
EAuthorizeDataGetEAuthorizeData ()
 
EM::Strojcek::VstupneUdaje::TarifnySystem::EMenaGetDomacaMena ()
 Metoda vracia zaznam na domacu menu. More...
 
unsigned char GetDomacaMenaID ()
 
float GetDomacaMenaKoef ()
 
long ConvertMoney (long haliere)
 
std::string GetCardStandardTypeName (unsigned char cardStandard, unsigned char cardTypeNumber, unsigned char subCardTypeNumber, unsigned short factoryNumber)
 
long GetHodnotuVlastnostiTarify (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, EM::Strojcek::VstupneUdaje::TarifnySystem::EVlastnostTarifyHodnota::TypVlastnosti vlastnost, long &hodnota)
 
long GetCisloTarifyByTypZlavy (unsigned short &cisloTarify, unsigned char discountType, unsigned char typListkaID=1)
 
long GetCisloTarifyByTypZlavy (unsigned short &tariffNumber, unsigned char tariffGroupNumber, unsigned char discountType, unsigned char ticketTemplateID)
 
bool IsTariffOnTariffGroup (unsigned char tariffTicketNumber)
 
long CheckTariffDayOfWeekValidity (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff)
 
long TarifyLoad (unsigned char tarifSkup)
 
void SetProtectNumber (unsigned short protectNumber)
 
unsigned short GetProtectNumber ()
 
void SetMachineID (const int64_t id)
 
std::string GetMachineID ()
 
bool IsHolidayToday (unsigned long localTime)
 
long GetEncodingSetting ()
 
bool IsCheckinCheckoutSystem ()
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByTariffNumberAndTariffGroup (unsigned short tariffNumber, unsigned char tariffGroup)
 Find tariff on tariff group tariffGroup by tariff number tariffNumber. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByTariffNumberFromActualTariffGroup (unsigned short tariffNumber)
 Find tariff on actual tariff group by tariff number tariffNumber. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByTariffTicketNumber (unsigned short tariffTicketNumber)
 Get tariff from collection of tariffs by tariff ticket. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmoGetTariffArea (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, unsigned char priceListLine)
 returns a line from pricelist on specified tarif More...
 
long GetDiscountTypeByCardType (char cardType, unsigned short &discountType, unsigned char ticketTemplateID, int homeCompany)
 get discount type by card type from input data More...
 
long GetDiscountTypeByCardType (char cardType, unsigned short &discountType, bool timeTicket, int homeCompany)
 get discount type by card type from input data More...
 
long GetCisloTarifyByTypKarty (char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID=1)
 function call EData::GetCisloTarifyByTypKarty( char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, int isHomeCompany, long corporateNumber ) More...
 
long GetCisloTarifyByTypKarty (char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, bool homeCompany)
 function call EData::GetCisloTarifyByTypKarty( char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, int isHomeCompany, long corporateNumber ) More...
 
long GetCisloTarifyByTypKarty (char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, bool isHomeCompany, long corporateNumber)
 Functium return by reference tariffNumber by cardType and corporateNumber. More...
 
long GetCisloTarifyByTypKarty (unsigned char cardTypeID, long corporateNumber, unsigned char tariffGroup, bool timeTicket, bool isHomeCompany, unsigned short &tariffNumber)
 Function return by reference tariffNumber by cardType and corporateNumber. More...
 
long GetTariffNumberByDiscountType (unsigned char discountTypeID, unsigned char tariffGroupID, bool timeTicket, unsigned short &tariffNumber)
 Function return by reference tariffNumber which is searched by discount type. More...
 
long GetTariffByDiscountType (unsigned char discountTypeID, unsigned char tariffGroupID, bool timeTicket, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *&tariff)
 return by reference tarif which is searched by discount type on specified tariff group More...
 
long CalculateVATValue (long price, long vat, double &vatValue, bool priceFromStatistics=false, unsigned char currencyID=0)
 Calculates paid VAT (amount of money paid to the Tax office) More...
 
long CalculateVATByBusStopsAndTariff (long boardingBusStopLineOrder, long landingBusStopLineOrder, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, long &calculatedVAT)
 Caclulate VAT rate by boarding and landing bus stop line order. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByCpTp (unsigned short cardCustomerProfile, unsigned short cardTariffProfile, unsigned short ids)
 Finds tariff with settings corresponding with customer and tariff profile. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByCpTp (unsigned short cardCustomerProfile, unsigned short cardTariffProfile, unsigned long networkID)
 Finds tariff with settings corresponding with customer and tariff profile. More...
 
void IgnoreCheckinCheckoutSystem ()
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByTariffNumberNIDAndUTN (const unsigned short tariffTicketNumber, const unsigned long networkID, const unsigned short urbanTransportNumber)
 GetTariffByTariffNumberNIDAndUTN - find tariff by tariff ticket number, get its priceList and compare priceList NID and UTN with values in parameters. More...
 
long FindTariffGroupByTariff (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&tariffGroup, bool searchOnSubstituteTarifGroupsToo)
 Find tariff group by tariff on base tariff Group. If tariff on base tariff group not exist, find on substitute by setting searchOnSubstituteTarifGroupsToo. More...
 
std::string GetRouteName (unsigned long checkinZone, unsigned long checkoutZone, short routeNumber, unsigned char tariffGroupNumber=0)
 
long ConvertPriceToDataCoeficient (const EMoneyData &price)
 
long ConvertPriceToCurrencyCoeficient (const EMoneyData &price, unsigned char currencyID)
 
long ConvertPriceToCents (const EMoneyData &price)
 
long ConvertPriceToCents (long ticketPrice, unsigned char currencyID)
 
long ConvertPriceInDataCoeficientToCents (long priceInDataCoeficient)
 
void FillMoneyData (EMoneyData &moneyData, const long amount)
 
long GetTariffGroupOnBusStop (long busStopIndex, long checkInBusStopIndex, unsigned char &tariffGroup)
 
long GetTariffGroupOnBusStopDefinedByLineOrder (const long busStopLineOrder, const long checkInBusStopLineOrder, unsigned char &tariffGroup)
 
long GetTariffGroupOnSection (unsigned char &tariffGroup, long firstBusStopIndex, long lastBusStopIndex)
 
long GetTariffGroupOnSectionDefinedByLineOrder (unsigned char &tariffGroup, const long firstBusStopLineOrder, const long lastBusStopLineOrder)
 
long GetTariffGroupOnSectionDefinedByLineOrder (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&tariffGroup, const long firstBusStopLineOrder, const long lastBusStopLineOrder)
 Search instance of tariff group by tariff group number from function. More...
 
long CalculateTravelTime (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip, const unsigned long startBusStopLineOrder, const unsigned long endBusStopLineOrder, long &travelTime)
 
long GetTimeValidity (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, bool isPaymentFromWallet, unsigned short priceListRowNumber, unsigned short &timeValidity)
 Function to get time validity of ticket with specified price list row. More...
 
long CalculateTimeValidity (std::list< unsigned long > travelledZones, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, long travelTime, bool isPaymentFromWallet, bool usePriceListRowWithLongestTimeValidity, unsigned short &timeValidity)
 Fucntionality for price list ZoneAmountFixedPrices. More...
 
long CalculateTimeValidity (std::list< unsigned long > travelledZones, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, long travelTime, bool isPaymentFromWallet, unsigned short &timeValidity)
 
long CalculatePriceListRowAndTimeValidityByZonesAndTravelTime (std::list< unsigned long > travelledZones, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, long travelTime, bool isPaymentFromWallet, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo *&priceListRow, unsigned short &timeValidity)
 
long CalculatePriceListRowAndTimeValidityByZonesAndTravelTime (std::list< unsigned long > travelledZones, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, long travelTime, bool isPaymentFromWallet, bool usePriceListRowWithLongestTimeValidity, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo *&priceListRow, unsigned short &timeValidity)
 
long GetTariffSystemSetting (EM::Strojcek::VstupneUdaje::TarifnySystem::ENastavenieHodnota::TypNastavenia settingNumber, long &value, const bool logNonexistingTariffSetting=true)
 Function to get value of a tariff system setting. More...
 
long GetGlobalSetting (EM::Strojcek::VstupneUdaje::Nastavenia::ESetNastavenia::GlobalSettings settingNumber, long &value)
 Function to get value of a global setting. More...
 
long RoundVATValue (long &roundedVat, const double decimalVatInCents)
 RoundVATValue - rounds. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::EOdchylkyFindDeviation (DataForCalculationDeviation &inputData)
 
char FindDeviatingPriceListRow (DataForCalculationDeviation &inputData)
 
bool IsOneWayTicketWithTimeValidity (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff)
 Method checks if it is one way ticket with time validity according to tariff or tariff system settings. More...
 
 EData ()
 
 ~EData ()
 
long init (char *pathCp)
 
long init (char *pathCp, DeviceType deviceType)
 
ECpGetECp ()
 
DeviceType GetDeviceType ()
 
EAuthorizeDataGetEAuthorizeData ()
 
EM::Strojcek::VstupneUdaje::TarifnySystem::EMenaGetDomacaMena ()
 
unsigned char GetDomacaMenaID ()
 
float GetDomacaMenaKoef ()
 
long ConvertMoney (long haliere)
 
std::string GetCardStandardTypeName (unsigned char cardStandard, unsigned char cardTypeNumber, unsigned char subCardTypeNumber, unsigned short factoryNumber)
 
long GetHodnotuVlastnostiTarify (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, EM::Strojcek::VstupneUdaje::TarifnySystem::EVlastnostTarifyHodnota::TypVlastnosti vlastnost, long &hodnota)
 
long GetCisloTarifyByTypZlavy (unsigned short &cisloTarify, unsigned char discountType, unsigned char typListkaID=1)
 
long GetCisloTarifyByTypZlavy (unsigned short &tariffNumber, unsigned char tariffGroupNumber, unsigned char discountType, unsigned char ticketTemplateID)
 
bool IsTariffOnTariffGroup (unsigned char tariffTicketNumber)
 
long CheckTariffDayOfWeekValidity (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff)
 
long TarifyLoad (unsigned char tarifSkup)
 
void SetProtectNumber (unsigned short protectNumber)
 
unsigned short GetProtectNumber ()
 
void SetMachineID (const int64_t id)
 
std::string GetMachineID ()
 
bool IsHolidayToday (unsigned long localTime)
 
long GetEncodingSetting ()
 
bool IsCheckinCheckoutSystem ()
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByTariffNumberAndTariffGroup (unsigned short tariffNumber, unsigned char tariffGroup)
 Find tariff on tariff group tariffGroup by tariff number tariffNumber. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByTariffNumberFromActualTariffGroup (unsigned short tariffNumber)
 Find tariff on actual tariff group by tariff number tariffNumber. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByTariffTicketNumber (unsigned short tariffTicketNumber)
 Get tariff from collection of tariffs by tariff ticket. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmoGetTariffArea (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, unsigned char priceListLine)
 returns a line from pricelist on specified tarif More...
 
long GetDiscountTypeByCardType (char cardType, unsigned short &discountType, unsigned char ticketTemplateID, int homeCompany)
 get discount type by card type from input data More...
 
long GetDiscountTypeByCardType (char cardType, unsigned short &discountType, bool timeTicket, int homeCompany)
 get discount type by card type from input data More...
 
long GetCisloTarifyByTypKarty (char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID=1)
 function call EData::GetCisloTarifyByTypKarty( char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, int isHomeCompany, long corporateNumber ) More...
 
long GetCisloTarifyByTypKarty (char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, bool homeCompany)
 function call EData::GetCisloTarifyByTypKarty( char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, int isHomeCompany, long corporateNumber ) More...
 
long GetCisloTarifyByTypKarty (char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, bool isHomeCompany, long corporateNumber)
 Functium return by reference tariffNumber by cardType and corporateNumber. More...
 
long GetCisloTarifyByTypKarty (unsigned char cardTypeID, long corporateNumber, unsigned char tariffGroup, bool timeTicket, bool isHomeCompany, unsigned short &tariffNumber)
 Function return by reference tariffNumber by cardType and corporateNumber. More...
 
long GetTariffNumberByDiscountType (unsigned char discountTypeID, unsigned char tariffGroupID, bool timeTicket, unsigned short &tariffNumber)
 Function return by reference tariffNumber which is searched by discount type. More...
 
long GetTariffByDiscountType (unsigned char discountTypeID, unsigned char tariffGroupID, bool timeTicket, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *&tariff)
 return by reference tarif which is searched by discount type on specified tariff group More...
 
long CalculateVATValue (long price, long vat, double &vatValue, bool priceFromStatistics=false, unsigned char currencyID=0)
 Calculates paid VAT (amount of money paid to the Tax office) More...
 
long CalculateVATByBusStopsAndTariff (long boardingBusStopLineOrder, long landingBusStopLineOrder, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, long &calculatedVAT)
 Caclulate VAT rate by boarding and landing bus stop line order. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByCpTp (unsigned short cardCustomerProfile, unsigned short cardTariffProfile, unsigned short ids)
 Finds tariff with settings corresponding with customer and tariff profile. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByCpTp (unsigned short cardCustomerProfile, unsigned short cardTariffProfile, unsigned long networkID)
 Finds tariff with settings corresponding with customer and tariff profile. More...
 
void IgnoreCheckinCheckoutSystem ()
 
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifaGetTariffByTariffNumberNIDAndUTN (const unsigned short tariffTicketNumber, const unsigned long networkID, const unsigned short urbanTransportNumber)
 GetTariffByTariffNumberNIDAndUTN - find tariff by tariff ticket number, get its priceList and compare priceList NID and UTN with values in parameters. More...
 
long FindTariffGroupByTariff (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&tariffGroup, bool searchOnSubstituteTarifGroupsToo)
 Find tariff group by tariff on base tariff Group. If tariff on base tariff group not exist, find on substitute by setting searchOnSubstituteTarifGroupsToo. More...
 
std::string GetRouteName (unsigned long checkinZone, unsigned long checkoutZone, short routeNumber, unsigned char tariffGroupNumber=0)
 
long ConvertPriceToDataCoeficient (const EMoneyData &price)
 
long ConvertPriceToCurrencyCoeficient (const EMoneyData &price, unsigned char currencyID)
 
long ConvertPriceToCents (const EMoneyData &price)
 
long ConvertPriceToCents (long ticketPrice, unsigned char currencyID)
 
long ConvertPriceInDataCoeficientToCents (long priceInDataCoeficient)
 
void FillMoneyData (EMoneyData &moneyData, const long amount)
 
long GetTariffGroupOnBusStop (long busStopIndex, long checkInBusStopIndex, unsigned char &tariffGroup)
 
long GetTariffGroupOnBusStopDefinedByLineOrder (const long busStopLineOrder, const long checkInBusStopLineOrder, unsigned char &tariffGroup)
 
long GetTariffGroupOnSection (unsigned char &tariffGroup, long firstBusStopIndex, long lastBusStopIndex)
 
long GetTariffGroupOnSectionDefinedByLineOrder (unsigned char &tariffGroup, const long firstBusStopLineOrder, const long lastBusStopLineOrder)
 
long GetTariffGroupOnSectionDefinedByLineOrder (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&tariffGroup, const long firstBusStopLineOrder, const long lastBusStopLineOrder)
 Search instance of tariff group by tariff group number from function. More...
 
long CalculateTravelTime (EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip, const unsigned long startBusStopLineOrder, const unsigned long endBusStopLineOrder, long &travelTime)
 
long GetTimeValidity (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, bool isPaymentFromWallet, unsigned short priceListRowNumber, unsigned short &timeValidity)
 Function to get time validity of ticket with specified price list row. More...
 
long CalculateTimeValidity (std::list< unsigned long > travelledZones, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, long travelTime, bool isPaymentFromWallet, bool usePriceListRowWithLongestTimeValidity, unsigned short &timeValidity)
 Fucntionality for price list ZoneAmountFixedPrices. More...
 
long CalculateTimeValidity (std::list< unsigned long > travelledZones, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, long travelTime, bool isPaymentFromWallet, unsigned short &timeValidity)
 
long CalculatePriceListRowAndTimeValidityByZonesAndTravelTime (std::list< unsigned long > travelledZones, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, long travelTime, bool isPaymentFromWallet, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo *&priceListRow, unsigned short &timeValidity)
 
long CalculatePriceListRowAndTimeValidityByZonesAndTravelTime (std::list< unsigned long > travelledZones, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, long travelTime, bool isPaymentFromWallet, bool usePriceListRowWithLongestTimeValidity, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo *&priceListRow, unsigned short &timeValidity)
 
long GetTariffSystemSetting (EM::Strojcek::VstupneUdaje::TarifnySystem::ENastavenieHodnota::TypNastavenia settingNumber, long &value, const bool logNonexistingTariffSetting=true)
 Function to get value of a tariff system setting. More...
 
long GetGlobalSetting (EM::Strojcek::VstupneUdaje::Nastavenia::ESetNastavenia::GlobalSettings settingNumber, long &value)
 Function to get value of a global setting. More...
 
long RoundVATValue (long &roundedVat, const double decimalVatInCents)
 RoundVATValue - rounds. More...
 
EM::Strojcek::VstupneUdaje::TarifnySystem::EOdchylkyFindDeviation (DataForCalculationDeviation &inputData)
 
char FindDeviatingPriceListRow (DataForCalculationDeviation &inputData)
 
bool IsOneWayTicketWithTimeValidity (EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff)
 Method checks if it is one way ticket with time validity according to tariff or tariff system settings. More...
 

Static Public Member Functions

static EDataGetInstance ()
 
static EDataGetInstance ()
 

Member Enumeration Documentation

Enumerator
DeviceUndefined 
DeviceOBC 
DeviceSlave 
DeviceUndefined 
DeviceOBC 
DeviceSlave 
Enumerator
DeviceUndefined 
DeviceOBC 
DeviceSlave 
DeviceUndefined 
DeviceOBC 
DeviceSlave 

Constructor & Destructor Documentation

EData::EData ( )
EData::~EData ( )
EData::EData ( )
EData::~EData ( )

Member Function Documentation

long EData::CalculatePriceListRowAndTimeValidityByZonesAndTravelTime ( std::list< unsigned long >  travelledZones,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tariffGroup,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
long  travelTime,
bool  isPaymentFromWallet,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo *&  priceListRow,
unsigned short &  timeValidity 
)
long EData::CalculatePriceListRowAndTimeValidityByZonesAndTravelTime ( std::list< unsigned long >  travelledZones,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tariffGroup,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
long  travelTime,
bool  isPaymentFromWallet,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo *&  priceListRow,
unsigned short &  timeValidity 
)
long EData::CalculatePriceListRowAndTimeValidityByZonesAndTravelTime ( std::list< unsigned long >  travelledZones,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tariffGroup,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
long  travelTime,
bool  isPaymentFromWallet,
bool  usePriceListRowWithLongestTimeValidity,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo *&  priceListRow,
unsigned short &  timeValidity 
)
long EData::CalculatePriceListRowAndTimeValidityByZonesAndTravelTime ( std::list< unsigned long >  travelledZones,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tariffGroup,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
long  travelTime,
bool  isPaymentFromWallet,
bool  usePriceListRowWithLongestTimeValidity,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo *&  priceListRow,
unsigned short &  timeValidity 
)

Here is the call graph for this function:

long EData::CalculateTimeValidity ( std::list< unsigned long >  travelledZones,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tariffGroup,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
long  travelTime,
bool  isPaymentFromWallet,
bool  usePriceListRowWithLongestTimeValidity,
unsigned short &  timeValidity 
)

Fucntionality for price list ZoneAmountFixedPrices.

Parameters
travelledZones- real travelled zones of whole issued tickets
tariffGroup- actual tariff group
tariff- representative tariff for yourney
travelTime- travel time from start to end bus stup by time table
See also
CalculateTravelTime
Parameters
isPaymentFromWallet-
usePriceListRowWithLongestTimeValidity- hack for Bratislava: 2 pricelist rows for zone count = 2 => unable to buy 30-min ticket when passengers wants to => result in this hack
timeValidity- output parameter - time validity in minutes
Returns
EDATA_ERR_NULL_PRICE_LIST, EDATA_ERR_NULL_TARIFF, EDATA_ERR_NULL_PRICE_LIST_ROW, EDATA_OK
long EData::CalculateTimeValidity ( std::list< unsigned long >  travelledZones,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tariffGroup,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
long  travelTime,
bool  isPaymentFromWallet,
bool  usePriceListRowWithLongestTimeValidity,
unsigned short &  timeValidity 
)

Fucntionality for price list ZoneAmountFixedPrices.

Parameters
travelledZones- real travelled zones of whole issued tickets
tariffGroup- actual tariff group
tariff- representative tariff for yourney
travelTime- travel time from start to end bus stup by time table
See also
CalculateTravelTime
Parameters
isPaymentFromWallet-
usePriceListRowWithLongestTimeValidity- hack for Bratislava: 2 pricelist rows for zone count = 2 => unable to buy 30-min ticket when passengers wants to => result in this hack
timeValidity- output parameter - time validity in minutes
Returns
EDATA_ERR_NULL_PRICE_LIST, EDATA_ERR_NULL_TARIFF, EDATA_ERR_NULL_PRICE_LIST_ROW, EDATA_OK
long EData::CalculateTimeValidity ( std::list< unsigned long >  travelledZones,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tariffGroup,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
long  travelTime,
bool  isPaymentFromWallet,
unsigned short &  timeValidity 
)
long EData::CalculateTimeValidity ( std::list< unsigned long >  travelledZones,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tariffGroup,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
long  travelTime,
bool  isPaymentFromWallet,
unsigned short &  timeValidity 
)
long EData::CalculateTravelTime ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj trip,
const unsigned long  startBusStopLineOrder,
const unsigned long  endBusStopLineOrder,
long &  travelTime 
)
Parameters
travelTime- output param - time table travel time from start to end bud stop
Returns
EDATA_ERR_INVALID_BUS_STOP_LINE_ORDER - invalid order on trip
EDATA_ERR_INVALID_TRIP_BUS_STOP_COLLECTION - invalid collection of trip bus stops on trip
EDATA_ERR_INVALID_TRIP_BUS_STOP - invalid trip bus stops
EDATA_OK - all ok

Here is the call graph for this function:

Here is the caller graph for this function:

long EData::CalculateTravelTime ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj trip,
const unsigned long  startBusStopLineOrder,
const unsigned long  endBusStopLineOrder,
long &  travelTime 
)
Parameters
travelTime- output param - time table travel time from start to end bud stop
Returns
EDATA_ERR_INVALID_BUS_STOP_LINE_ORDER - invalid order on trip
EDATA_ERR_INVALID_TRIP_BUS_STOP_COLLECTION - invalid collection of trip bus stops on trip
EDATA_ERR_INVALID_TRIP_BUS_STOP - invalid trip bus stops
EDATA_OK - all ok
long EData::CalculateVATByBusStopsAndTariff ( long  boardingBusStopLineOrder,
long  landingBusStopLineOrder,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
long &  calculatedVAT 
)

Caclulate VAT rate by boarding and landing bus stop line order.

Parameters
OUTPUTcalculatedVAT > 0 - correct VAT value
OUTPUTcalculatedVAT == 0 - calculation error,
See also
return values
Parameters
OUTPUTcalculatedVAT < 0 - boarding and landing bus stop are in other country == VAT free ticket
Returns
See also
edataerrdefines.h
Returns
EDATA_OK(0) - all ok
long EData::CalculateVATByBusStopsAndTariff ( long  boardingBusStopLineOrder,
long  landingBusStopLineOrder,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
long &  calculatedVAT 
)

Caclulate VAT rate by boarding and landing bus stop line order.

Parameters
OUTPUTcalculatedVAT > 0 - correct VAT value
OUTPUTcalculatedVAT == 0 - calculation error,
See also
return values
Parameters
OUTPUTcalculatedVAT < 0 - boarding and landing bus stop are in other country == VAT free ticket
Returns
See also
edataerrdefines.h
Returns
EDATA_OK(0) - all ok

Here is the call graph for this function:

long EData::CalculateVATValue ( long  price,
long  vat,
double &  vatValue,
bool  priceFromStatistics = false,
unsigned char  currencyID = 0 
)

Calculates paid VAT (amount of money paid to the Tax office)

Parameters
price- price of ticket in currency units (not real price)
vat- VAT gained from TariffSystem
vatValue- paid VAT (amount of money) in cents (e.g. 1600 means 16 € or Kc); has to be double - value may be later multiplied by ticket count, this multiplied value could be rounded incorrectly if it was integral type
priceFromStatistics- if set, VAT will be calculated with currency coefficient in statistics; otherwise domestic currency coefficient will be used
currencyID- if set, VAT will be calculated with coefficient of this currency, priceFromStatistics will be ignored
Returns
always EDATA_OK
long EData::CalculateVATValue ( long  price,
long  vat,
double &  vatValue,
bool  priceFromStatistics = false,
unsigned char  currencyID = 0 
)

Calculates paid VAT (amount of money paid to the Tax office)

Parameters
price- price of ticket in currency units (not real price)
vat- VAT gained from TariffSystem
vatValue- paid VAT (amount of money) in cents (e.g. 1600 means 16 € or Kc); has to be double - value may be later multiplied by ticket count, this multiplied value could be rounded incorrectly if it was integral type
priceFromStatistics- if set, VAT will be calculated with currency coefficient in statistics; otherwise domestic currency coefficient will be used
currencyID- if set, VAT will be calculated with coefficient of this currency, priceFromStatistics will be ignored
Returns
always EDATA_OK
long EData::CheckTariffDayOfWeekValidity ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff)

ak nieje sobota ani nedela

inak je sobota nedela

Here is the caller graph for this function:

long EData::CheckTariffDayOfWeekValidity ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff)
long EData::ConvertMoney ( long  haliere)

Here is the call graph for this function:

long EData::ConvertMoney ( long  haliere)
long EData::ConvertPriceInDataCoeficientToCents ( long  priceInDataCoeficient)

Function for convenience - creates EMoneyData with data coeficient and calls ConvertPriceToCents

long EData::ConvertPriceInDataCoeficientToCents ( long  priceInDataCoeficient)

Function for convenience - creates EMoneyData with data coeficient and calls ConvertPriceToCents

long EData::ConvertPriceToCents ( const EMoneyData &  price)

Converts price read from card (which is in card currency coeficient) to price in cents

Parameters
priceclass containing price and currency coeficient on card. If coeficient is UNDEFINED, function uses dcoeficient of home currency (defined in input data)
Returns
price in cents
long EData::ConvertPriceToCents ( const EMoneyData &  price)

Converts price read from card (which is in card currency coeficient) to price in cents

Parameters
priceclass containing price and currency coeficient on card. If coeficient is UNDEFINED, function uses dcoeficient of home currency (defined in input data)
Returns
price in cents
long EData::ConvertPriceToCents ( long  ticketPrice,
unsigned char  currencyID 
)

Converts price to cents using currency ID as parameter. Provided for convenience - we don't need to create EMoneyData.

Parameters
ticketPrice- price of the ticket
currencyID- ID of used currency
Returns
price in cents in currency specified by currencyID
long EData::ConvertPriceToCents ( long  ticketPrice,
unsigned char  currencyID 
)

Converts price to cents using currency ID as parameter. Provided for convenience - we don't need to create EMoneyData.

Parameters
ticketPrice- price of the ticket
currencyID- ID of used currency
Returns
price in cents in currency specified by currencyID
long EData::ConvertPriceToCurrencyCoeficient ( const EMoneyData &  price,
unsigned char  currencyID 
)

Converts price read from card (which is in card currency coeficient) to price in coeficient by currency currencyID

Parameters
priceclass containing price and currency coeficient on card
currencyID
Returns
price in currency coeficient which is set in input data
long EData::ConvertPriceToCurrencyCoeficient ( const EMoneyData &  price,
unsigned char  currencyID 
)

Converts price read from card (which is in card currency coeficient) to price in coeficient by currency currencyID

Parameters
priceclass containing price and currency coeficient on card
currencyID
Returns
price in currency coeficient which is set in input data
long EData::ConvertPriceToDataCoeficient ( const EMoneyData &  price)

Converts price read from card (which is in card currency coeficient) to price in domestic currency coeficient

Parameters
priceclass containing price and currency coeficient on card
Returns
price in currency coeficient which is set in input data
long EData::ConvertPriceToDataCoeficient ( const EMoneyData &  price)

Converts price read from card (which is in card currency coeficient) to price in domestic currency coeficient

Parameters
priceclass containing price and currency coeficient on card
Returns
price in currency coeficient which is set in input data
void EData::FillMoneyData ( EMoneyData &  moneyData,
const long  amount 
)

Fills the entered money amount into a EMoneyData structure with the current currency coeficient

Parameters
amountamount which will be filled into the structure
moneyDatastructure which will contain the entered amount and the current currency coeficient
Returns
void
void EData::FillMoneyData ( EMoneyData &  moneyData,
const long  amount 
)

Fills the entered money amount into a EMoneyData structure with the current currency coeficient

Parameters
amountamount which will be filled into the structure
moneyDatastructure which will contain the entered amount and the current currency coeficient
Returns
void
char EData::FindDeviatingPriceListRow ( DataForCalculationDeviation inputData)

Here is the call graph for this function:

Here is the caller graph for this function:

char EData::FindDeviatingPriceListRow ( DataForCalculationDeviation inputData)

Here is the call graph for this function:

long EData::FindTariffGroupByTariff ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&  tariffGroup,
bool  searchOnSubstituteTarifGroupsToo 
)

Find tariff group by tariff on base tariff Group. If tariff on base tariff group not exist, find on substitute by setting searchOnSubstituteTarifGroupsToo.

Parameters
tariff- IN param - find tariff group by this tariff( tariff ticket number / tariff number )
tariffGroup- OUT param - founded tariff group
tariffGroup- OUT param - founded tariff group
searchOnSubstituteTarifGroupsToo- true => find on substitute tariff group
searchOnSubstituteTarifGroupsToo- false => dont find on substitute tariff group
Returns
EDATA_OK - all OK, see defines edataerrdefines.h otherwise
EDATA_ERR_NO_FOUND_TARIFNA_SKUPINA - tariff group not found by tariff

Here is the call graph for this function:

long EData::FindTariffGroupByTariff ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&  tariffGroup,
bool  searchOnSubstituteTarifGroupsToo 
)

Find tariff group by tariff on base tariff Group. If tariff on base tariff group not exist, find on substitute by setting searchOnSubstituteTarifGroupsToo.

Parameters
tariff- IN param - find tariff group by this tariff( tariff ticket number / tariff number )
tariffGroup- OUT param - founded tariff group
tariffGroup- OUT param - founded tariff group
searchOnSubstituteTarifGroupsToo- true => find on substitute tariff group
searchOnSubstituteTarifGroupsToo- false => dont find on substitute tariff group
Returns
EDATA_OK - all OK, see defines edataerrdefines.h otherwise
EDATA_ERR_NO_FOUND_TARIFNA_SKUPINA - tariff group not found by tariff
string EData::GetCardStandardTypeName ( unsigned char  cardStandard,
unsigned char  cardTypeNumber,
unsigned char  subCardTypeNumber,
unsigned short  factoryNumber 
)

Here is the call graph for this function:

std::string EData::GetCardStandardTypeName ( unsigned char  cardStandard,
unsigned char  cardTypeNumber,
unsigned char  subCardTypeNumber,
unsigned short  factoryNumber 
)
long EData::GetCisloTarifyByTypKarty ( char  cardType,
unsigned short &  tariffNumber,
unsigned char  ticketTemplateID = 1 
)

function call EData::GetCisloTarifyByTypKarty( char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, int isHomeCompany, long corporateNumber )

long EData::GetCisloTarifyByTypKarty ( char  cardType,
unsigned short &  tariffNumber,
unsigned char  ticketTemplateID = 1 
)

function call EData::GetCisloTarifyByTypKarty( char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, int isHomeCompany, long corporateNumber )

long EData::GetCisloTarifyByTypKarty ( char  cardType,
unsigned short &  tariffNumber,
unsigned char  ticketTemplateID,
bool  homeCompany 
)

function call EData::GetCisloTarifyByTypKarty( char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, int isHomeCompany, long corporateNumber )

long EData::GetCisloTarifyByTypKarty ( char  cardType,
unsigned short &  tariffNumber,
unsigned char  ticketTemplateID,
bool  homeCompany 
)

function call EData::GetCisloTarifyByTypKarty( char cardType, unsigned short &tariffNumber, unsigned char ticketTemplateID, int isHomeCompany, long corporateNumber )

long EData::GetCisloTarifyByTypKarty ( char  cardType,
unsigned short &  tariffNumber,
unsigned char  ticketTemplateID,
bool  isHomeCompany,
long  corporateNumber 
)

Functium return by reference tariffNumber by cardType and corporateNumber.

Parameters
cardType- actual card type
tariffNumber- output param
ticketTemplateID- searching tariff on actuial tariff group by tariff template
isHomeCompany- value 1 - domestic company number
  • value 0 - external company number
corporateNumber- founded corporate number by actual department number
Note
Function search tariff number by selected corporate number and if not found search by corporate number 0
Warning
isHomeCompany - default value is 1 - domestic corporate number

Here is the call graph for this function:

long EData::GetCisloTarifyByTypKarty ( char  cardType,
unsigned short &  tariffNumber,
unsigned char  ticketTemplateID,
bool  isHomeCompany,
long  corporateNumber 
)

Functium return by reference tariffNumber by cardType and corporateNumber.

Parameters
cardType- actual card type
tariffNumber- output param
ticketTemplateID- searching tariff on actuial tariff group by tariff template
isHomeCompany- value 1 - domestic company number
  • value 0 - external company number
corporateNumber- founded corporate number by actual department number
Note
Function search tariff number by selected corporate number and if not found search by corporate number 0
Warning
isHomeCompany - default value is 1 - domestic corporate number
long EData::GetCisloTarifyByTypKarty ( unsigned char  cardTypeID,
long  corporateNumber,
unsigned char  tariffGroup,
bool  timeTicket,
bool  isHomeCompany,
unsigned short &  tariffNumber 
)

Function return by reference tariffNumber by cardType and corporateNumber.

Parameters
cardTypeID- actual card type ID (ID from input data)
corporateNumber- corporate number found by actual department number
tariffGroup- ID of tariff group where tariff number will be searched
timeTicket- flag if looking for time ticket tariff (true) or one way ticket tariff (false)
isHomeCompany- value 1 - domestic company number
  • value 0 - external company number
tariffNumber- output param
Note
Function search tariff number by selected corporate number and if not found search by corporate number 0
Warning
isHomeCompany - default value is 1 - domestic corporate number

Here is the call graph for this function:

long EData::GetCisloTarifyByTypKarty ( unsigned char  cardTypeID,
long  corporateNumber,
unsigned char  tariffGroup,
bool  timeTicket,
bool  isHomeCompany,
unsigned short &  tariffNumber 
)

Function return by reference tariffNumber by cardType and corporateNumber.

Parameters
cardTypeID- actual card type ID (ID from input data)
corporateNumber- corporate number found by actual department number
tariffGroup- ID of tariff group where tariff number will be searched
timeTicket- flag if looking for time ticket tariff (true) or one way ticket tariff (false)
isHomeCompany- value 1 - domestic company number
  • value 0 - external company number
tariffNumber- output param
Note
Function search tariff number by selected corporate number and if not found search by corporate number 0
Warning
isHomeCompany - default value is 1 - domestic corporate number
long EData::GetCisloTarifyByTypZlavy ( unsigned short &  cisloTarify,
unsigned char  discountType,
unsigned char  typListkaID = 1 
)
long EData::GetCisloTarifyByTypZlavy ( unsigned short &  cisloTarify,
unsigned char  discountType,
unsigned char  typListkaID = 1 
)

Here is the call graph for this function:

long EData::GetCisloTarifyByTypZlavy ( unsigned short &  tariffNumber,
unsigned char  tariffGroupNumber,
unsigned char  discountType,
unsigned char  ticketTemplateID 
)
long EData::GetCisloTarifyByTypZlavy ( unsigned short &  tariffNumber,
unsigned char  tariffGroupNumber,
unsigned char  discountType,
unsigned char  ticketTemplateID 
)

Here is the call graph for this function:

DeviceType EData::GetDeviceType ( )
EData::DeviceType EData::GetDeviceType ( )

Here is the caller graph for this function:

long EData::GetDiscountTypeByCardType ( char  cardType,
unsigned short &  discountType,
unsigned char  ticketTemplateID,
int  homeCompany 
)

get discount type by card type from input data

Parameters
cardType- actual card type
discountType- output param, return by reference discount type
ticketTemplateID- ticket template ID
homeCompany- 1 : home company
  • 0 : external company
Returns
EDATA_OK - all ok
EDATA_ERR_IT_IS_TICKET_MARKER - if ticket template ID == 20
EDATA_NO_FOUND_TYPZLAVY_BY_TYPKARTY - error get discount type for actual card type from input data
long EData::GetDiscountTypeByCardType ( char  cardType,
unsigned short &  discountType,
unsigned char  ticketTemplateID,
int  homeCompany 
)

get discount type by card type from input data

Parameters
cardType- actual card type
discountType- output param, return by reference discount type
ticketTemplateID- ticket template ID
homeCompany- 1 : home company
  • 0 : external company
Returns
EDATA_OK - all ok
EDATA_ERR_IT_IS_TICKET_MARKER - if ticket template ID == 20
EDATA_NO_FOUND_TYPZLAVY_BY_TYPKARTY - error get discount type for actual card type from input data

GetDiscountTypeByCardType

long EData::GetDiscountTypeByCardType ( char  cardType,
unsigned short &  discountType,
bool  timeTicket,
int  homeCompany 
)

get discount type by card type from input data

Parameters
cardType- actual card type
discountType- output param, return by reference discount type
timeTicket- if looking for discount type for one time ticket (true), or one way ticket (false)
homeCompany- 1 : home company
  • 0 : external company
Returns
EDATA_OK - all ok
EDATA_ERR_IT_IS_TICKET_MARKER - if ticket template ID == 20
EDATA_NO_FOUND_TYPZLAVY_BY_TYPKARTY - error get discount type for actual card type from input data
long EData::GetDiscountTypeByCardType ( char  cardType,
unsigned short &  discountType,
bool  timeTicket,
int  homeCompany 
)

get discount type by card type from input data

Parameters
cardType- actual card type
discountType- output param, return by reference discount type
timeTicket- if looking for discount type for one time ticket (true), or one way ticket (false)
homeCompany- 1 : home company
  • 0 : external company
Returns
EDATA_OK - all ok
EDATA_ERR_IT_IS_TICKET_MARKER - if ticket template ID == 20
EDATA_NO_FOUND_TYPZLAVY_BY_TYPKARTY - error get discount type for actual card type from input data

Here is the call graph for this function:

EMena * EData::GetDomacaMena ( )

Metoda vracia zaznam na domacu menu.

Returns
unsigned char EData::GetDomacaMenaID ( )
unsigned char EData::GetDomacaMenaID ( )

Here is the call graph for this function:

float EData::GetDomacaMenaKoef ( )
float EData::GetDomacaMenaKoef ( )

Here is the call graph for this function:

EAuthorizeData* EData::GetEAuthorizeData ( )
EAuthorizeData * EData::GetEAuthorizeData ( )
ECp* EData::GetECp ( )
ECp * EData::GetECp ( )

Here is the caller graph for this function:

long EData::GetEncodingSetting ( )
long EData::GetEncodingSetting ( )

Here is the call graph for this function:

long EData::GetGlobalSetting ( EM::Strojcek::VstupneUdaje::Nastavenia::ESetNastavenia::GlobalSettings  settingNumber,
long &  value 
)

Function to get value of a global setting.

Parameters
settingNumber- number of global setting to get the value of
value- output parameter - here will be the value of the global setting
Returns
EDATA_ERR_GLOBAL_SETTING_COLLECTION_NOT_FOUND, EDATA_ERR_GLOBAL_SETTING_NOT_FOUND, EDATA_OK
long EData::GetGlobalSetting ( EM::Strojcek::VstupneUdaje::Nastavenia::ESetNastavenia::GlobalSettings  settingNumber,
long &  value 
)

Function to get value of a global setting.

Parameters
settingNumber- number of global setting to get the value of
value- output parameter - here will be the value of the global setting
Returns
EDATA_ERR_GLOBAL_SETTING_COLLECTION_NOT_FOUND, EDATA_ERR_GLOBAL_SETTING_NOT_FOUND, EDATA_OK

Here is the call graph for this function:

long EData::GetHodnotuVlastnostiTarify ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
EM::Strojcek::VstupneUdaje::TarifnySystem::EVlastnostTarifyHodnota::TypVlastnosti  vlastnost,
long &  hodnota 
)
long EData::GetHodnotuVlastnostiTarify ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
EM::Strojcek::VstupneUdaje::TarifnySystem::EVlastnostTarifyHodnota::TypVlastnosti  vlastnost,
long &  hodnota 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static EData* EData::GetInstance ( )
static
EData * EData::GetInstance ( )
static

Here is the caller graph for this function:

string EData::GetMachineID ( )
std::string EData::GetMachineID ( )
unsigned short EData::GetProtectNumber ( )
unsigned short EData::GetProtectNumber ( )
string EData::GetRouteName ( unsigned long  checkinZone,
unsigned long  checkoutZone,
short  routeNumber,
unsigned char  tariffGroupNumber = 0 
)

GetRouteName Looks for route by route number and return its name

Parameters
checkinZone: unsigned long = checkin zone ID
checkoutZone: unsigned long = checkout zone ID
routeNumber: short = route number
tariffGroupNumber: unsigned char - specific tariff group, if == 0, actual tariff group shall be used
Returns
string : route name

Here is the call graph for this function:

std::string EData::GetRouteName ( unsigned long  checkinZone,
unsigned long  checkoutZone,
short  routeNumber,
unsigned char  tariffGroupNumber = 0 
)

GetRouteName Looks for route by route number and return its name

Parameters
checkinZone: unsigned long = checkin zone ID
checkoutZone: unsigned long = checkout zone ID
routeNumber: short = route number
tariffGroupNumber: unsigned char - specific tariff group, if == 0, actual tariff group shall be used
Returns
string : route name
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo* EData::GetTariffArea ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
unsigned char  priceListLine 
)

returns a line from pricelist on specified tarif

Parameters
priceListLine- line to be accessed
Returns
EDATA_NO_FOUND_TYPZLAVY_BY_TYPKARTY - error get discount type for actual card type from input data
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo * EData::GetTariffArea ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
unsigned char  priceListLine 
)

returns a line from pricelist on specified tarif

Parameters
priceListLine- line to be accessed
Returns
EDATA_NO_FOUND_TYPZLAVY_BY_TYPKARTY - error get discount type for actual card type from input data

Here is the call graph for this function:

ETarifa * EData::GetTariffByCpTp ( unsigned short  cardCustomerProfile,
unsigned short  cardTariffProfile,
unsigned short  ids = 0 
)

Finds tariff with settings corresponding with customer and tariff profile.

Parameters
cardCustomerProfile- customerProfile of wanted tariff
cardTariffProfile- tariffProfile of wanted tariff
ids- ids of wanted tariff has to be equal to this, IDS 0 - do not check IDS on tariff
Returns
found tariff on success, otherwise NULL
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa* EData::GetTariffByCpTp ( unsigned short  cardCustomerProfile,
unsigned short  cardTariffProfile,
unsigned short  ids 
)

Finds tariff with settings corresponding with customer and tariff profile.

Parameters
cardCustomerProfile- customerProfile of wanted tariff
cardTariffProfile- tariffProfile of wanted tariff
ids- ids of wanted tariff has to be equal to this, IDS 0 - do not check IDS on tariff
Returns
found tariff on success, otherwise NULL
ETarifa * EData::GetTariffByCpTp ( unsigned short  cardCustomerProfile,
unsigned short  cardTariffProfile,
unsigned long  networkID 
)

Finds tariff with settings corresponding with customer and tariff profile.

Parameters
cardCustomerProfile- customerProfile of wanted tariff
cardTariffProfile- tariffProfile of wanted tariff
networkID- by NetworkID is determined IDS, which should correspodn with ids of wanted tariff
Returns
found tariff on success, otherwise NULL

Here is the call graph for this function:

EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa* EData::GetTariffByCpTp ( unsigned short  cardCustomerProfile,
unsigned short  cardTariffProfile,
unsigned long  networkID 
)

Finds tariff with settings corresponding with customer and tariff profile.

Parameters
cardCustomerProfile- customerProfile of wanted tariff
cardTariffProfile- tariffProfile of wanted tariff
networkID- by NetworkID is determined IDS, which should correspodn with ids of wanted tariff
Returns
found tariff on success, otherwise NULL
long EData::GetTariffByDiscountType ( unsigned char  discountTypeID,
unsigned char  tariffGroupID,
bool  timeTicket,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *&  tariff 
)

return by reference tarif which is searched by discount type on specified tariff group

Parameters
discountTypeID- ID of desired discount
tariffGroupID- ID of tariff group where tariff number will be searched
timeTicket- flag if looking for time ticket tariff (true) or one way ticket tariff (false). It determines ticket template ID
tariff- output parameter
Returns
EDATA_OK on success

Here is the call graph for this function:

long EData::GetTariffByDiscountType ( unsigned char  discountTypeID,
unsigned char  tariffGroupID,
bool  timeTicket,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *&  tariff 
)

return by reference tarif which is searched by discount type on specified tariff group

Parameters
discountTypeID- ID of desired discount
tariffGroupID- ID of tariff group where tariff number will be searched
timeTicket- flag if looking for time ticket tariff (true) or one way ticket tariff (false). It determines ticket template ID
tariff- output parameter
Returns
EDATA_OK on success
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa* EData::GetTariffByTariffNumberAndTariffGroup ( unsigned short  tariffNumber,
unsigned char  tariffGroup 
)

Find tariff on tariff group tariffGroup by tariff number tariffNumber.

Returns
NULL - tariff not found
instance of ETarifa - tariff found on tariff group tariffGroup
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa * EData::GetTariffByTariffNumberAndTariffGroup ( unsigned short  tariffNumber,
unsigned char  tariffGroup 
)

Find tariff on tariff group tariffGroup by tariff number tariffNumber.

Returns
NULL - tariff not found
instance of ETarifa - tariff found on tariff group tariffGroup

Here is the call graph for this function:

EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa* EData::GetTariffByTariffNumberFromActualTariffGroup ( unsigned short  tariffNumber)

Find tariff on actual tariff group by tariff number tariffNumber.

Returns
NULL - tariff not found
instance of ETarifa - tariff found on actual tariff group
ETarifa * EData::GetTariffByTariffNumberFromActualTariffGroup ( unsigned short  tariffNumber)

Find tariff on actual tariff group by tariff number tariffNumber.

Returns
NULL - tariff not found
instance of ETarifa - tariff found on actual tariff group
ETarifa * EData::GetTariffByTariffNumberNIDAndUTN ( const unsigned short  tariffTicketNumber,
const unsigned long  networkID,
const unsigned short  urbanTransportNumber 
)

GetTariffByTariffNumberNIDAndUTN - find tariff by tariff ticket number, get its priceList and compare priceList NID and UTN with values in parameters.

Note
parameters cardNID and urbanTransportNumber are not checked if they are zero
Parameters
tariffTicketNumber- tariff ticket number of wanted tariff
networkID- network ID used for comparing with priceList NID; comparing will be skipped if networkID is zero
urbanTransportNumber- urban transport number used for comparing with priceList UTN; comparing will be skipped if urbanTransportNumber is zero
Returns
found tariff or NULL pointer if no tariff is found

Here is the call graph for this function:

EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa* EData::GetTariffByTariffNumberNIDAndUTN ( const unsigned short  tariffTicketNumber,
const unsigned long  networkID,
const unsigned short  urbanTransportNumber 
)

GetTariffByTariffNumberNIDAndUTN - find tariff by tariff ticket number, get its priceList and compare priceList NID and UTN with values in parameters.

Note
parameters cardNID and urbanTransportNumber are not checked if they are zero
Parameters
tariffTicketNumber- tariff ticket number of wanted tariff
networkID- network ID used for comparing with priceList NID; comparing will be skipped if networkID is zero
urbanTransportNumber- urban transport number used for comparing with priceList UTN; comparing will be skipped if urbanTransportNumber is zero
Returns
found tariff or NULL pointer if no tariff is found
ETarifa * EData::GetTariffByTariffTicketNumber ( unsigned short  tariffTicketNumber)

Get tariff from collection of tariffs by tariff ticket.

Returns
NULL - tariff not found
instance of ETarifa - tariff found on actual tariff group

Here is the caller graph for this function:

EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa* EData::GetTariffByTariffTicketNumber ( unsigned short  tariffTicketNumber)

Get tariff from collection of tariffs by tariff ticket.

Returns
NULL - tariff not found
instance of ETarifa - tariff found on actual tariff group
long EData::GetTariffGroupOnBusStop ( long  busStopIndex,
long  checkInBusStopIndex,
unsigned char &  tariffGroup 
)
long EData::GetTariffGroupOnBusStop ( long  busStopIndex,
long  checkInBusStopIndex,
unsigned char &  tariffGroup 
)

Here is the call graph for this function:

long EData::GetTariffGroupOnBusStopDefinedByLineOrder ( const long  busStopLineOrder,
const long  checkInBusStopLineOrder,
unsigned char &  tariffGroup 
)
long EData::GetTariffGroupOnBusStopDefinedByLineOrder ( const long  busStopLineOrder,
const long  checkInBusStopLineOrder,
unsigned char &  tariffGroup 
)

Here is the call graph for this function:

long EData::GetTariffGroupOnSection ( unsigned char &  tariffGroup,
long  firstBusStopIndex,
long  lastBusStopIndex 
)

Sets tariff number based on first and last busstop in section

Parameters
tariffGroup- output param. returns tariff group number
firstBusStopIndex- first busstop from section, it is index on actual trip ( could be on continuous line too )
lastBusStopIndex- last busstop from section, it is index on actual trip ( could be on continuous line too )
Returns

Here is the call graph for this function:

long EData::GetTariffGroupOnSection ( unsigned char &  tariffGroup,
long  firstBusStopIndex,
long  lastBusStopIndex 
)

Sets tariff number based on first and last busstop in section

Parameters
tariffGroup- output param. returns tariff group number
firstBusStopIndex- first busstop from section, it is index on actual trip ( could be on continuous line too )
lastBusStopIndex- last busstop from section, it is index on actual trip ( could be on continuous line too )
Returns
long EData::GetTariffGroupOnSectionDefinedByLineOrder ( unsigned char &  tariffGroup,
const long  firstBusStopLineOrder,
const long  lastBusStopLineOrder 
)

Sets tariff number based on first and last busstop in section

Parameters
tariffGroup- output param. returns tariff group number
firstBusStopIndex- first busstop line order from section, it is index on actual trip ( could be on continuous line too )
lastBusStopIndex- last busstop line order from section, it is index on actual trip ( could be on continuous line too )
Returns

Here is the call graph for this function:

long EData::GetTariffGroupOnSectionDefinedByLineOrder ( unsigned char &  tariffGroup,
const long  firstBusStopLineOrder,
const long  lastBusStopLineOrder 
)

Sets tariff number based on first and last busstop in section

Parameters
tariffGroup- output param. returns tariff group number
firstBusStopIndex- first busstop line order from section, it is index on actual trip ( could be on continuous line too )
lastBusStopIndex- last busstop line order from section, it is index on actual trip ( could be on continuous line too )
Returns
long EData::GetTariffGroupOnSectionDefinedByLineOrder ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&  tariffGroup,
const long  firstBusStopLineOrder,
const long  lastBusStopLineOrder 
)

Search instance of tariff group by tariff group number from function.

See also
GetTariffGroupOnSectionDefinedByLineOrder with first output param as number
long EData::GetTariffGroupOnSectionDefinedByLineOrder ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&  tariffGroup,
const long  firstBusStopLineOrder,
const long  lastBusStopLineOrder 
)

Search instance of tariff group by tariff group number from function.

See also
GetTariffGroupOnSectionDefinedByLineOrder with first output param as number
long EData::GetTariffNumberByDiscountType ( unsigned char  discountTypeID,
unsigned char  tariffGroupID,
bool  timeTicket,
unsigned short &  tariffNumber 
)

Function return by reference tariffNumber which is searched by discount type.

Parameters
discountTypeID- ID of desired discount
tariffGroupID- ID of tariff group where tariff number will be searched
timeTicket- flag if looking for time ticket tariff (true) or one way ticket tariff (false). It determines ticket template ID
tariffNumber- output param
Returns
EDATA_OK on success
long EData::GetTariffNumberByDiscountType ( unsigned char  discountTypeID,
unsigned char  tariffGroupID,
bool  timeTicket,
unsigned short &  tariffNumber 
)

Function return by reference tariffNumber which is searched by discount type.

Parameters
discountTypeID- ID of desired discount
tariffGroupID- ID of tariff group where tariff number will be searched
timeTicket- flag if looking for time ticket tariff (true) or one way ticket tariff (false). It determines ticket template ID
tariffNumber- output param
Returns
EDATA_OK on success
long EData::GetTariffSystemSetting ( EM::Strojcek::VstupneUdaje::TarifnySystem::ENastavenieHodnota::TypNastavenia  settingNumber,
long &  value,
const bool  logNonexistingTariffSetting = true 
)

Function to get value of a tariff system setting.

Parameters
settingNumber- number of tariff setting to get the value of
value- output parameter - here will be the value of the tariff setting
logNonexistingTariffSetting- false: if tariff setting with exact number does NOT exist, don't create error in logs (some tariff settings are not mandatory)
  • true: if tariff setting with exact number does NOT exist, write error in logs
Returns
EDATA_ERR_SETTING_NOT_FOUND, EDATA_ERR_SETTING_VALUE_COLLECTION_NOT_FOUND, EDATA_ERR_SETTING_VALUE_NOT_FOUND, EDATA_OK
long EData::GetTariffSystemSetting ( EM::Strojcek::VstupneUdaje::TarifnySystem::ENastavenieHodnota::TypNastavenia  settingNumber,
long &  value,
const bool  logNonexistingTariffSetting = true 
)

Function to get value of a tariff system setting.

Parameters
settingNumber- number of tariff setting to get the value of
value- output parameter - here will be the value of the tariff setting
logNonexistingTariffSetting- false: if tariff setting with exact number does NOT exist, don't create error in logs (some tariff settings are not mandatory)
  • true: if tariff setting with exact number does NOT exist, write error in logs
Returns
EDATA_ERR_SETTING_NOT_FOUND, EDATA_ERR_SETTING_VALUE_COLLECTION_NOT_FOUND, EDATA_ERR_SETTING_VALUE_NOT_FOUND, EDATA_OK

Here is the call graph for this function:

Here is the caller graph for this function:

long EData::GetTimeValidity ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tariffGroup,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
bool  isPaymentFromWallet,
unsigned short  priceListRowNumber,
unsigned short &  timeValidity 
)

Function to get time validity of ticket with specified price list row.

Parameters
tariffGroup- current tariff group
tariff- current tariff (representative tariff for journey)
isPaymentFromWallet- if tariff is paid with chip card
priceListRowNumber- number of pricelist row
timeValidity- output param - time validity in minutes
Returns
long EData::GetTimeValidity ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina tariffGroup,
EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff,
bool  isPaymentFromWallet,
unsigned short  priceListRowNumber,
unsigned short &  timeValidity 
)

Function to get time validity of ticket with specified price list row.

Parameters
tariffGroup- current tariff group
tariff- current tariff (representative tariff for journey)
isPaymentFromWallet- if tariff is paid with chip card
priceListRowNumber- number of pricelist row
timeValidity- output param - time validity in minutes
Returns

Here is the call graph for this function:

void EData::IgnoreCheckinCheckoutSystem ( )

Sets flag telling to ignore setting if CICO system is used, and consider it to be turned OFF

void EData::IgnoreCheckinCheckoutSystem ( )

Sets flag telling to ignore setting if CICO system is used, and consider it to be turned OFF

long EData::init ( char *  pathCp)
long EData::init ( char *  pathCp)
long EData::init ( char *  pathCp,
DeviceType  deviceType 
)
long EData::init ( char *  pathCp,
EData::DeviceType  deviceType 
)
bool EData::IsCheckinCheckoutSystem ( )
bool EData::IsCheckinCheckoutSystem ( )
bool EData::IsHolidayToday ( unsigned long  localTime)
bool EData::IsHolidayToday ( unsigned long  localTime)

ci existuje datum v kalendari

parada dnes je sviatok

Here is the call graph for this function:

bool EData::IsOneWayTicketWithTimeValidity ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff)

Method checks if it is one way ticket with time validity according to tariff or tariff system settings.

Here is the call graph for this function:

bool EData::IsOneWayTicketWithTimeValidity ( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa tariff)

Method checks if it is one way ticket with time validity according to tariff or tariff system settings.

bool EData::IsTariffOnTariffGroup ( unsigned char  tariffTicketNumber)
bool EData::IsTariffOnTariffGroup ( unsigned char  tariffTicketNumber)
long EData::RoundVATValue ( long &  roundedVat,
const double  decimalVatInCents 
)

RoundVATValue - rounds.

Parameters
vatValue
Returns
long EData::RoundVATValue ( long &  roundedVat,
const double  decimalVatInCents 
)

RoundVATValue - rounds.

Parameters
vatValue
Returns

Here is the call graph for this function:

void EData::SetMachineID ( const int64_t  id)
void EData::SetMachineID ( const int64_t  id)
void EData::SetProtectNumber ( unsigned short  protectNumber)
void EData::SetProtectNumber ( unsigned short  protectNumber)
long EData::TarifyLoad ( unsigned char  tarifSkup)
long EData::TarifyLoad ( unsigned char  tarifSkup)

Here is the call graph for this function:


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