From c4c0e2fd775a713b3b68bb490df1c6a435345ada Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 22 Feb 2024 16:31:51 +0100 Subject: [PATCH] Added TariffProduct including necessary functions to retrieve product infos from tariff-file --- library/include/mobilisis/configuration.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/include/mobilisis/configuration.h b/library/include/mobilisis/configuration.h index 490eec0..6b1ccea 100644 --- a/library/include/mobilisis/configuration.h +++ b/library/include/mobilisis/configuration.h @@ -24,6 +24,7 @@ #include "tariff_daily_ticket.h" #include "time_range_header.h" #include "tariff_timestep_config.h" +#include "tariff_product.h" #include #include @@ -53,6 +54,7 @@ public: multimap TimeStepConfig; multimap TimeBase; multimap Customer; + multimap TariffProduct; /// /// Parse JSON string @@ -69,6 +71,9 @@ public: std::optional> getPaymentRateForKey(int key) const; std::optional> getDailyTicketsForAllKeys() const; std::optional> getDailyTicketsForKey(int key) const; + std::optional> getTariffProductForAllKeys() const; + std::optional> getTariffProductForProductId(int id) const; + std::optional> getTariffProductForProductId(PermitType permitType) const; std::optional getCustomerForType(ATBCustomer::CustomerType customerType); std::optional getWeekDayWorkTime(QTime const &time, Qt::DayOfWeek dayOfWeek);