|
DataIO
|
#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) |
| ECp * | GetECp () |
| DeviceType | GetDeviceType () |
| EAuthorizeData * | GetEAuthorizeData () |
| EM::Strojcek::VstupneUdaje::TarifnySystem::EMena * | GetDomacaMena () |
| 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::ETarifa * | GetTariffByTariffNumberAndTariffGroup (unsigned short tariffNumber, unsigned char tariffGroup) |
| Find tariff on tariff group tariffGroup by tariff number tariffNumber. More... | |
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa * | GetTariffByTariffNumberFromActualTariffGroup (unsigned short tariffNumber) |
| Find tariff on actual tariff group by tariff number tariffNumber. More... | |
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa * | GetTariffByTariffTicketNumber (unsigned short tariffTicketNumber) |
| Get tariff from collection of tariffs by tariff ticket. More... | |
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo * | GetTariffArea (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::ETarifa * | GetTariffByCpTp (unsigned short cardCustomerProfile, unsigned short cardTariffProfile, unsigned short ids) |
| Finds tariff with settings corresponding with customer and tariff profile. More... | |
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa * | GetTariffByCpTp (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::ETarifa * | 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. 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::EOdchylky * | FindDeviation (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) |
| ECp * | GetECp () |
| DeviceType | GetDeviceType () |
| EAuthorizeData * | GetEAuthorizeData () |
| EM::Strojcek::VstupneUdaje::TarifnySystem::EMena * | GetDomacaMena () |
| 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::ETarifa * | GetTariffByTariffNumberAndTariffGroup (unsigned short tariffNumber, unsigned char tariffGroup) |
| Find tariff on tariff group tariffGroup by tariff number tariffNumber. More... | |
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa * | GetTariffByTariffNumberFromActualTariffGroup (unsigned short tariffNumber) |
| Find tariff on actual tariff group by tariff number tariffNumber. More... | |
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa * | GetTariffByTariffTicketNumber (unsigned short tariffTicketNumber) |
| Get tariff from collection of tariffs by tariff ticket. More... | |
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo * | GetTariffArea (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::ETarifa * | GetTariffByCpTp (unsigned short cardCustomerProfile, unsigned short cardTariffProfile, unsigned short ids) |
| Finds tariff with settings corresponding with customer and tariff profile. More... | |
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa * | GetTariffByCpTp (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::ETarifa * | 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. 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::EOdchylky * | FindDeviation (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 EData * | GetInstance () |
| static EData * | GetInstance () |
| enum EData::DeviceType |
| enum EData::DeviceType |
| EData::EData | ( | ) |
| EData::~EData | ( | ) |
| EData::EData | ( | ) |
| EData::~EData | ( | ) |
| 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 | ||
| ) |

| 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.
| 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 |
| 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 |
| 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.
| 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 |
| 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 |
| 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 | ||
| ) |
| travelTime | - output param - time table travel time from start to end bud stop |


| long EData::CalculateTravelTime | ( | EM::Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj * | trip, |
| const unsigned long | startBusStopLineOrder, | ||
| const unsigned long | endBusStopLineOrder, | ||
| long & | travelTime | ||
| ) |
| travelTime | - output param - time table travel time from start to end bud stop |
| 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.
| OUTPUT | calculatedVAT > 0 - correct VAT value |
| OUTPUT | calculatedVAT == 0 - calculation error, |
| OUTPUT | calculatedVAT < 0 - boarding and landing bus stop are in other country == VAT free ticket |
| 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.
| OUTPUT | calculatedVAT > 0 - correct VAT value |
| OUTPUT | calculatedVAT == 0 - calculation error, |
| OUTPUT | calculatedVAT < 0 - boarding and landing bus stop are in other country == VAT free ticket |

| 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)
| 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 |
| 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)
| 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 |
| long EData::CheckTariffDayOfWeekValidity | ( | EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa * | tariff | ) |
ak nieje sobota ani nedela
inak je sobota nedela

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

| 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
| price | class containing price and currency coeficient on card. If coeficient is UNDEFINED, function uses dcoeficient of home currency (defined in input data) |
| long EData::ConvertPriceToCents | ( | const EMoneyData & | price | ) |
Converts price read from card (which is in card currency coeficient) to price in cents
| price | class containing price and currency coeficient on card. If coeficient is UNDEFINED, function uses dcoeficient of home currency (defined in input data) |
| 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.
| ticketPrice | - price of the ticket |
| currencyID | - ID of used currency |
| 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.
| ticketPrice | - price of the ticket |
| currencyID | - ID of used currency |
| 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
| price | class containing price and currency coeficient on card |
| 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
| price | class containing price and currency coeficient on card |
| currencyID |
| long EData::ConvertPriceToDataCoeficient | ( | const EMoneyData & | price | ) |
Converts price read from card (which is in card currency coeficient) to price in domestic currency coeficient
| price | class containing price and currency coeficient on card |
| long EData::ConvertPriceToDataCoeficient | ( | const EMoneyData & | price | ) |
Converts price read from card (which is in card currency coeficient) to price in domestic currency coeficient
| price | class containing price and currency coeficient on card |
| void EData::FillMoneyData | ( | EMoneyData & | moneyData, |
| const long | amount | ||
| ) |
Fills the entered money amount into a EMoneyData structure with the current currency coeficient
| amount | amount which will be filled into the structure |
| moneyData | structure which will contain the entered amount and the current currency coeficient |
| void EData::FillMoneyData | ( | EMoneyData & | moneyData, |
| const long | amount | ||
| ) |
Fills the entered money amount into a EMoneyData structure with the current currency coeficient
| amount | amount which will be filled into the structure |
| moneyData | structure which will contain the entered amount and the current currency coeficient |
| char EData::FindDeviatingPriceListRow | ( | DataForCalculationDeviation & | inputData | ) |


| char EData::FindDeviatingPriceListRow | ( | DataForCalculationDeviation & | inputData | ) |
| EM::Strojcek::VstupneUdaje::TarifnySystem::EOdchylky * EData::FindDeviation | ( | DataForCalculationDeviation & | inputData | ) |

| EM::Strojcek::VstupneUdaje::TarifnySystem::EOdchylky* EData::FindDeviation | ( | DataForCalculationDeviation & | inputData | ) |
| 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.
| 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 |

| 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.
| 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 |
| string EData::GetCardStandardTypeName | ( | unsigned char | cardStandard, |
| unsigned char | cardTypeNumber, | ||
| unsigned char | subCardTypeNumber, | ||
| unsigned short | factoryNumber | ||
| ) |

| 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.
| cardType | - actual card type |
| tariffNumber | - output param |
| ticketTemplateID | - searching tariff on actuial tariff group by tariff template |
| isHomeCompany | - value 1 - domestic company number
|
| corporateNumber | - founded corporate number by actual department number |

| long EData::GetCisloTarifyByTypKarty | ( | char | cardType, |
| unsigned short & | tariffNumber, | ||
| unsigned char | ticketTemplateID, | ||
| bool | isHomeCompany, | ||
| long | corporateNumber | ||
| ) |
Functium return by reference tariffNumber by cardType and corporateNumber.
| cardType | - actual card type |
| tariffNumber | - output param |
| ticketTemplateID | - searching tariff on actuial tariff group by tariff template |
| isHomeCompany | - value 1 - domestic company number
|
| corporateNumber | - founded corporate number by actual department 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.
| 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
|
| tariffNumber | - output param |

| 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.
| 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
|
| tariffNumber | - output param |
| 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 |
||
| ) |

| 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 | ||
| ) |

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

| long EData::GetDiscountTypeByCardType | ( | char | cardType, |
| unsigned short & | discountType, | ||
| unsigned char | ticketTemplateID, | ||
| int | homeCompany | ||
| ) |
get discount type by card type from input data
| cardType | - actual card type |
| discountType | - output param, return by reference discount type |
| ticketTemplateID | - ticket template ID |
| homeCompany | - 1 : home company
|
| long EData::GetDiscountTypeByCardType | ( | char | cardType, |
| unsigned short & | discountType, | ||
| unsigned char | ticketTemplateID, | ||
| int | homeCompany | ||
| ) |
get discount type by card type from input data
| cardType | - actual card type |
| discountType | - output param, return by reference discount type |
| ticketTemplateID | - ticket template ID |
| homeCompany | - 1 : home company
|
GetDiscountTypeByCardType
| long EData::GetDiscountTypeByCardType | ( | char | cardType, |
| unsigned short & | discountType, | ||
| bool | timeTicket, | ||
| int | homeCompany | ||
| ) |
get discount type by card type from input data
| 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
|
| long EData::GetDiscountTypeByCardType | ( | char | cardType, |
| unsigned short & | discountType, | ||
| bool | timeTicket, | ||
| int | homeCompany | ||
| ) |
get discount type by card type from input data
| 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
|

| EM::Strojcek::VstupneUdaje::TarifnySystem::EMena* EData::GetDomacaMena | ( | ) |
| EMena * EData::GetDomacaMena | ( | ) |
Metoda vracia zaznam na domacu menu.
| unsigned char EData::GetDomacaMenaID | ( | ) |
| unsigned char EData::GetDomacaMenaID | ( | ) |

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

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

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

| long EData::GetGlobalSetting | ( | EM::Strojcek::VstupneUdaje::Nastavenia::ESetNastavenia::GlobalSettings | settingNumber, |
| long & | value | ||
| ) |
Function to get value of a global setting.
| settingNumber | - number of global setting to get the value of |
| value | - output parameter - here will be the value of the global setting |
| long EData::GetGlobalSetting | ( | EM::Strojcek::VstupneUdaje::Nastavenia::ESetNastavenia::GlobalSettings | settingNumber, |
| long & | value | ||
| ) |
Function to get value of a global setting.
| settingNumber | - number of global setting to get the value of |
| value | - output parameter - here will be the value of the global setting |

| 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 | ||
| ) |


|
static |
|
static |

| 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
| 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 |

| 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
| 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 |
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo* EData::GetTariffArea | ( | EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa * | tariff, |
| unsigned char | priceListLine | ||
| ) |
returns a line from pricelist on specified tarif
| priceListLine | - line to be accessed |
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifnePasmo * EData::GetTariffArea | ( | EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa * | tariff, |
| unsigned char | priceListLine | ||
| ) |
returns a line from pricelist on specified tarif
| priceListLine | - line to be accessed |

| ETarifa * EData::GetTariffByCpTp | ( | unsigned short | cardCustomerProfile, |
| unsigned short | cardTariffProfile, | ||
| unsigned short | ids = 0 |
||
| ) |
Finds tariff with settings corresponding with customer and tariff profile.
| 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 |
| 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.
| 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 |
| ETarifa * EData::GetTariffByCpTp | ( | unsigned short | cardCustomerProfile, |
| unsigned short | cardTariffProfile, | ||
| unsigned long | networkID | ||
| ) |
Finds tariff with settings corresponding with customer and tariff profile.
| cardCustomerProfile | - customerProfile of wanted tariff |
| cardTariffProfile | - tariffProfile of wanted tariff |
| networkID | - by NetworkID is determined IDS, which should correspodn with ids of wanted tariff |

| 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.
| cardCustomerProfile | - customerProfile of wanted tariff |
| cardTariffProfile | - tariffProfile of wanted tariff |
| networkID | - by NetworkID is determined IDS, which should correspodn with ids of wanted tariff |
| 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
| 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 |

| 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
| 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 |
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa* EData::GetTariffByTariffNumberAndTariffGroup | ( | unsigned short | tariffNumber, |
| unsigned char | tariffGroup | ||
| ) |
Find tariff on tariff group tariffGroup by tariff number tariffNumber.
| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa * EData::GetTariffByTariffNumberAndTariffGroup | ( | unsigned short | tariffNumber, |
| unsigned char | tariffGroup | ||
| ) |
Find tariff on tariff group tariffGroup by tariff number tariffNumber.

| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa* EData::GetTariffByTariffNumberFromActualTariffGroup | ( | unsigned short | tariffNumber | ) |
Find tariff on actual tariff group by tariff number tariffNumber.
| ETarifa * EData::GetTariffByTariffNumberFromActualTariffGroup | ( | unsigned short | tariffNumber | ) |
Find tariff on actual tariff group by tariff number tariffNumber.
| 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.
| 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 |

| 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.
| 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 |
| ETarifa * EData::GetTariffByTariffTicketNumber | ( | unsigned short | tariffTicketNumber | ) |
Get tariff from collection of tariffs by tariff ticket.

| EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa* EData::GetTariffByTariffTicketNumber | ( | unsigned short | tariffTicketNumber | ) |
Get tariff from collection of tariffs by tariff ticket.
| long EData::GetTariffGroupOnBusStop | ( | long | busStopIndex, |
| long | checkInBusStopIndex, | ||
| unsigned char & | tariffGroup | ||
| ) |
| long EData::GetTariffGroupOnBusStop | ( | long | busStopIndex, |
| long | checkInBusStopIndex, | ||
| unsigned char & | tariffGroup | ||
| ) |

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

| long EData::GetTariffGroupOnSection | ( | unsigned char & | tariffGroup, |
| long | firstBusStopIndex, | ||
| long | lastBusStopIndex | ||
| ) |
Sets tariff number based on first and last busstop in section
| 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 ) |

| long EData::GetTariffGroupOnSection | ( | unsigned char & | tariffGroup, |
| long | firstBusStopIndex, | ||
| long | lastBusStopIndex | ||
| ) |
Sets tariff number based on first and last busstop in section
| 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 ) |
| long EData::GetTariffGroupOnSectionDefinedByLineOrder | ( | unsigned char & | tariffGroup, |
| const long | firstBusStopLineOrder, | ||
| const long | lastBusStopLineOrder | ||
| ) |
Sets tariff number based on first and last busstop in section
| 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 ) |

| long EData::GetTariffGroupOnSectionDefinedByLineOrder | ( | unsigned char & | tariffGroup, |
| const long | firstBusStopLineOrder, | ||
| const long | lastBusStopLineOrder | ||
| ) |
Sets tariff number based on first and last busstop in section
| 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 ) |
| 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.
| 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.
| 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.
| 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 |
| 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.
| 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 |
| 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.
| 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)
|
| 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.
| 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)
|


| 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.
| 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 |
| 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.
| 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 |

| 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

| 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::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.
| vatValue |
| long EData::RoundVATValue | ( | long & | roundedVat, |
| const double | decimalVatInCents | ||
| ) |
RoundVATValue - rounds.
| vatValue |

| 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 | ) |

1.8.8