From c357cbbbe05362df9c6ec1e54df0fb11392fd494 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 18 Jan 2024 14:36:28 +0100 Subject: [PATCH] Add descrption file for tariff time step config --- .../mobilisis/tariff_timestep_config.h | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 library/include/mobilisis/tariff_timestep_config.h diff --git a/library/include/mobilisis/tariff_timestep_config.h b/library/include/mobilisis/tariff_timestep_config.h new file mode 100644 index 0000000..861c9e1 --- /dev/null +++ b/library/include/mobilisis/tariff_timestep_config.h @@ -0,0 +1,26 @@ +#ifndef TARIFF_TIMESTEP_CONFIG_H_INCLUDED +#define TARIFF_TIMESTEP_CONFIG_H_INCLUDED + +#include +#include +#include + +struct ATBTimeStepConfig { + enum class TimeStepConfig {STATIC=1, DYNAMIC=2}; + + ATBTimeStepConfig() = default; + int tsconfig_id; + QString tsconfig_label; + + friend QDebug operator<<(QDebug debug, ATBTimeStepConfig const &tsConfig) { + QDebugStateSaver saver(debug); + + debug.nospace() + << " tsconfig_id: " << tsConfig.tsconfig_id << "\n" + << "tsconfig_label: " << tsConfig.tsconfig_label << "\n"; + + return debug; + } +}; + +#endif // TARIFF_TIMESTEP_CONFIG_H_INCLUDED