Add Interpolation, Prepaid and CarryOver structures to streamline Json-File layout.

This commit is contained in:
2024-07-19 13:58:22 +02:00
parent c153652b3d
commit 507b5d1b9c
3 changed files with 188 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#ifndef TARIFF_PREPAID_H_INCLUDED
#define TARIFF_PREPAID_H_INCLUDED
#include <QTime>
#include <QString>
struct ATBPrepaid {
explicit ATBPrepaid() = default;
int id;
bool anytime;
bool never;
QTime static_start;
QTime static_end;
friend QDebug operator<<(QDebug debug, ATBPrepaid const &pp) {
QDebugStateSaver saver(debug);
debug.nospace()
<< " id: " << pp.id << "\n"
<< " static_start: " << pp.static_start.toString(Qt::ISODate) << "\n"
<< " static_end: " << pp.static_end.toString(Qt::ISODate) << "\n"
<< " anytime: " << pp.anytime << "\n"
<< " never: " << pp.never << "\n";
return debug;
}
};
#endif // TARIFF_PREPAID_H_INCLUDED