|
DataIO
|
#include <EExceptions.h>


Public Member Functions | |
| EExceptions () | |
| ~EExceptions () | |
| bool | ReadConfiguration (std::string customConfigPath) |
| Function provides the possibility to read config file from custom/not standard path. More... | |
| std::string | GetExceptionTextInsteadOfTypeCard (unsigned char CardTypeNumber, unsigned char SubCardTypeNumber, unsigned short FactoryNumber) |
| long | MapZoneNumberToUi (const long zoneNumber) const |
| long | MapZoneNumberFromUi (const long uiZoneNumber) const |
| unsigned short | MapTariffTicketNumberByUTN (const unsigned short UTN, const unsigned short tariffTicketNumberFrom) const |
| bool | IsCustomerProfileValidityException (const unsigned long networkID, const unsigned char customerProfileIndex, const unsigned short customerProfileValue) const |
| IsCustomerProfileValidityException - check if is defined exception in Exceptions.xml for networkID, customerProfileIndex and customerProfileValue. More... | |
| bool | IsForbiddenCard (const long companyNumber, const long cardType, const unsigned long cardSubType, const long cardMedium) |
| IsForbiddenCard checks actual approached card with forbidden exceptions. If some exception have same data as exception, this card will be forbidden for usage in vehicle system. More... | |
| bool | GetZoneCountExceptionForZoneCombination (std::set< unsigned long > zoneCombination, unsigned long &zoneCorrectedCount) |
| GetZoneCountExceptionForZoneCombination - functions check if there is exception for zone combination and increment/decrement zones count for combination. More... | |
| bool | RecodeSelectedTariffTicketNumberToCard (const unsigned short selectedTariffTicketNumber, unsigned short &recodedTariffTicketNumberToCard) |
| RecodeSelectedTariffTicketNumberToCard - recode selected tariff to tariff to card. More... | |
| bool | IsIssueRestrictedByCardPublisher (const unsigned short cardPublisherNumber, const long ticketTypeID, const long paymentType) |
| IsIssueRestrictedByCardPublisher - check if ticketTypeID is restricted by paymentType for cardPublisherNumber. More... | |
| void | GetForeignZonesWithZeroVATValue (std::vector< unsigned long > &foreignZoneList) |
| GetForeignZonesWithZeroVATValue - returns list of foreign zones with zero VAT value. More... | |
| const std::set< unsigned long > & | GetCityCardApplicationsToIgnore () const |
| GetCityCardApplicationsToIgnore - method returns set of city card with exact application that should be ignored in manual issue. More... | |
| EExceptions () | |
| ~EExceptions () | |
| bool | ReadConfiguration (std::string customConfigPath) |
| Function provides the possibility to read config file from custom/not standard path. More... | |
| std::string | GetExceptionTextInsteadOfTypeCard (unsigned char CardTypeNumber, unsigned char SubCardTypeNumber, unsigned short FactoryNumber) |
| long | MapZoneNumberToUi (const long zoneNumber) const |
| long | MapZoneNumberFromUi (const long uiZoneNumber) const |
| unsigned short | MapTariffTicketNumberByUTN (const unsigned short UTN, const unsigned short tariffTicketNumberFrom) const |
| bool | IsCustomerProfileValidityException (const unsigned long networkID, const unsigned char customerProfileIndex, const unsigned short customerProfileValue) const |
| IsCustomerProfileValidityException - check if is defined exception in Exceptions.xml for networkID, customerProfileIndex and customerProfileValue. More... | |
| bool | IsForbiddenCard (const long companyNumber, const long cardType, const unsigned long cardSubType, const long cardMedium) |
| IsForbiddenCard checks actual approached card with forbidden exceptions. If some exception have same data as exception, this card will be forbidden for usage in vehicle system. More... | |
| bool | GetZoneCountExceptionForZoneCombination (std::set< unsigned long > zoneCombination, unsigned long &zoneCorrectedCount) |
| GetZoneCountExceptionForZoneCombination - functions check if there is exception for zone combination and increment/decrement zones count for combination. More... | |
| bool | RecodeSelectedTariffTicketNumberToCard (const unsigned short selectedTariffTicketNumber, unsigned short &recodedTariffTicketNumberToCard) |
| RecodeSelectedTariffTicketNumberToCard - recode selected tariff to tariff to card. More... | |
| bool | IsIssueRestrictedByCardPublisher (const unsigned short cardPublisherNumber, const long ticketTypeID, const long paymentType) |
| IsIssueRestrictedByCardPublisher - check if ticketTypeID is restricted by paymentType for cardPublisherNumber. More... | |
| void | GetForeignZonesWithZeroVATValue (std::vector< unsigned long > &foreignZoneList) |
| GetForeignZonesWithZeroVATValue - returns list of foreign zones with zero VAT value. More... | |
| const std::set< unsigned long > & | GetCityCardApplicationsToIgnore () const |
| GetCityCardApplicationsToIgnore - method returns set of city card with exact application that should be ignored in manual issue. More... | |
| INTERNAL EExceptions::EExceptions | ( | ) |
CONSTRUCTOR
| EExceptions::~EExceptions | ( | ) |
DESTRUCTOR
| EExceptions::EExceptions | ( | ) |
| EExceptions::~EExceptions | ( | ) |
| const std::set< unsigned long > & EExceptions::GetCityCardApplicationsToIgnore | ( | ) | const |
GetCityCardApplicationsToIgnore - method returns set of city card with exact application that should be ignored in manual issue.
| const std::set<unsigned long>& EExceptions::GetCityCardApplicationsToIgnore | ( | ) | const |
GetCityCardApplicationsToIgnore - method returns set of city card with exact application that should be ignored in manual issue.
| std::string EExceptions::GetExceptionTextInsteadOfTypeCard | ( | unsigned char | CardTypeNumber, |
| unsigned char | SubCardTypeNumber, | ||
| unsigned short | FactoryNumber | ||
| ) |
GetExceptionTextInsteadOfTypeCard
| std::string EExceptions::GetExceptionTextInsteadOfTypeCard | ( | unsigned char | CardTypeNumber, |
| unsigned char | SubCardTypeNumber, | ||
| unsigned short | FactoryNumber | ||
| ) |
| void EExceptions::GetForeignZonesWithZeroVATValue | ( | std::vector< unsigned long > & | foreignZoneList | ) |
GetForeignZonesWithZeroVATValue - returns list of foreign zones with zero VAT value.
| foreignZoneList | - output parameter - list of foreign zones with zero VAT value |
| void EExceptions::GetForeignZonesWithZeroVATValue | ( | std::vector< unsigned long > & | foreignZoneList | ) |
GetForeignZonesWithZeroVATValue - returns list of foreign zones with zero VAT value.
| foreignZoneList | - output parameter - list of foreign zones with zero VAT value |
| bool EExceptions::GetZoneCountExceptionForZoneCombination | ( | std::set< unsigned long > | zoneCombination, |
| unsigned long & | zoneCorrectedCount | ||
| ) |
GetZoneCountExceptionForZoneCombination - functions check if there is exception for zone combination and increment/decrement zones count for combination.
| zoneCombination | - zone combination to check for exceptions |
| zoneCorrectedCount | - output parameter - if no exception found returns size of zone combination otherwise returns corrected size |
| bool EExceptions::GetZoneCountExceptionForZoneCombination | ( | std::set< unsigned long > | zoneCombination, |
| unsigned long & | zoneCorrectedCount | ||
| ) |
GetZoneCountExceptionForZoneCombination - functions check if there is exception for zone combination and increment/decrement zones count for combination.
| zoneCombination | - zone combination to check for exceptions |
| zoneCorrectedCount | - output parameter - if no exception found returns size of zone combination otherwise returns corrected size |
Tarifna reforma BID 2025 odstranila tuto vynimku. Nikde inde sa nepouziva. Po 1.6.2025 sa moze tato podmienka vyhodit z kodu. Funkcia moze ostat, ak by mal niekto rovnaku poziadavku v buducnosti Je to riesene napevno v kode, pretoze exceptions.xml sa nahravaju v externych datach, ktore nemaju platnost. Preto by sa museli data prehrat presne 1.6., co je nerealizovatelne.
| bool EExceptions::IsCustomerProfileValidityException | ( | const unsigned long | networkID, |
| const unsigned char | customerProfileIndex, | ||
| const unsigned short | customerProfileValue | ||
| ) | const |
IsCustomerProfileValidityException - check if is defined exception in Exceptions.xml for networkID, customerProfileIndex and customerProfileValue.
| networkID | |
| customerProfileIndex | |
| customerProfileValue |
| bool EExceptions::IsCustomerProfileValidityException | ( | const unsigned long | networkID, |
| const unsigned char | customerProfileIndex, | ||
| const unsigned short | customerProfileValue | ||
| ) | const |
IsCustomerProfileValidityException - check if is defined exception in Exceptions.xml for networkID, customerProfileIndex and customerProfileValue.
| networkID | |
| customerProfileIndex | |
| customerProfileValue |
IsCustomerProfileValidityException
| bool EExceptions::IsForbiddenCard | ( | const long | companyNumber, |
| const long | cardType, | ||
| const unsigned long | cardSubType, | ||
| const long | cardMedium | ||
| ) |
IsForbiddenCard checks actual approached card with forbidden exceptions. If some exception have same data as exception, this card will be forbidden for usage in vehicle system.
| companyNumber | - checking company number from card |
| cardType | - checking card type from card |
| cardSubType | - checking card sub type from card |
| cardMedium | - checking card medium |
| bool EExceptions::IsForbiddenCard | ( | const long | companyNumber, |
| const long | cardType, | ||
| const unsigned long | cardSubType, | ||
| const long | cardMedium | ||
| ) |
IsForbiddenCard checks actual approached card with forbidden exceptions. If some exception have same data as exception, this card will be forbidden for usage in vehicle system.
| companyNumber | - checking company number from card |
| cardType | - checking card type from card |
| cardSubType | - checking card sub type from card |
| cardMedium | - checking card medium |
| bool EExceptions::IsIssueRestrictedByCardPublisher | ( | const unsigned short | cardPublisherNumber, |
| const long | ticketTypeID, | ||
| const long | paymentType | ||
| ) |
IsIssueRestrictedByCardPublisher - check if ticketTypeID is restricted by paymentType for cardPublisherNumber.
| cardPublisherNumber | - card publisher number |
| ticketTypeID | - ticket type |
| paymentType | - type of payment, |
| bool EExceptions::IsIssueRestrictedByCardPublisher | ( | const unsigned short | cardPublisherNumber, |
| const long | ticketTypeID, | ||
| const long | paymentType | ||
| ) |
IsIssueRestrictedByCardPublisher - check if ticketTypeID is restricted by paymentType for cardPublisherNumber.
| cardPublisherNumber | - card publisher number |
| ticketTypeID | - ticket type |
| paymentType | - type of payment, |
| unsigned short EExceptions::MapTariffTicketNumberByUTN | ( | const unsigned short | UTN, |
| const unsigned short | tariffTicketNumberFrom | ||
| ) | const |
| unsigned short EExceptions::MapTariffTicketNumberByUTN | ( | const unsigned short | UTN, |
| const unsigned short | tariffTicketNumberFrom | ||
| ) | const |
MapTariffTicketNumberByCompanyNumber
| long EExceptions::MapZoneNumberFromUi | ( | const long | uiZoneNumber | ) | const |
| long EExceptions::MapZoneNumberFromUi | ( | const long | uiZoneNumber | ) | const |
MapZoneNumberFromUi
| long EExceptions::MapZoneNumberToUi | ( | const long | zoneNumber | ) | const |
| long EExceptions::MapZoneNumberToUi | ( | const long | zoneNumber | ) | const |
MapZoneNumberToUi
| bool EExceptions::ReadConfiguration | ( | std::string | customConfigPath | ) |
Function provides the possibility to read config file from custom/not standard path.
| customConfigPath | - custom path to configuration file |
| bool EExceptions::ReadConfiguration | ( | std::string | customConfigPath | ) |
Function provides the possibility to read config file from custom/not standard path.
| customConfigPath | - custom path to configuration file |
| bool EExceptions::RecodeSelectedTariffTicketNumberToCard | ( | const unsigned short | selectedTariffTicketNumber, |
| unsigned short & | recodedTariffTicketNumberToCard | ||
| ) |
RecodeSelectedTariffTicketNumberToCard - recode selected tariff to tariff to card.
| selectedTariffTicketNumber | - selected tariff ticket number |
| recodedTariffTicketNumberToCard | - output param - recoded tariff ticket number to card |
&s=exceptions#exceptions.xml http://redmine.transdata.sk/issues/1407
| bool EExceptions::RecodeSelectedTariffTicketNumberToCard | ( | const unsigned short | selectedTariffTicketNumber, |
| unsigned short & | recodedTariffTicketNumberToCard | ||
| ) |
RecodeSelectedTariffTicketNumberToCard - recode selected tariff to tariff to card.
| selectedTariffTicketNumber | - selected tariff ticket number |
| recodedTariffTicketNumberToCard | - output param - recoded tariff ticket number to card |
&s=exceptions#exceptions.xml http://redmine.transdata.sk/issues/1407
1.8.8