re-tested neuhauser-naz
This commit is contained in:
parent
20e146d3c9
commit
15801be88e
@ -37,8 +37,8 @@ extern "C" char* strptime(const char* s,
|
|||||||
#define SZEGED (0)
|
#define SZEGED (0)
|
||||||
#define SCHOENAU_KOENIGSEE (0)
|
#define SCHOENAU_KOENIGSEE (0)
|
||||||
#define NEUHAUSER_KORNEUBURG (0)
|
#define NEUHAUSER_KORNEUBURG (0)
|
||||||
#define NEUHAUSER_LINSINGER_MASCHINENBAU (0)
|
#define NEUHAUSER_LINSINGER_MASCHINENBAU (1)
|
||||||
#define NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM (1)
|
#define NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM (0)
|
||||||
#define NEUHAUSER_BILEXA_GALTUER (0)
|
#define NEUHAUSER_BILEXA_GALTUER (0)
|
||||||
#define NEUHAUSER_KIRCHDORF (0)
|
#define NEUHAUSER_KIRCHDORF (0)
|
||||||
|
|
||||||
@ -561,16 +561,23 @@ int main() {
|
|||||||
QDateTime end;
|
QDateTime end;
|
||||||
int marken[] = { 3*60, 5*60, 10*60};
|
int marken[] = { 3*60, 5*60, 10*60};
|
||||||
for (int duration = 0; duration < 3; ++duration) {
|
for (int duration = 0; duration < 3; ++duration) {
|
||||||
for (int offset = 360; offset <= 1080; ++offset) {
|
for (int offset = 360; offset <= 360; ++offset) {
|
||||||
|
// for (int offset = 360; offset < 1080; ++offset) {
|
||||||
QDateTime start = s.addSecs(offset * 60);
|
QDateTime start = s.addSecs(offset * 60);
|
||||||
//qCritical() << "start" << start.toString(Qt::ISODate);
|
//qCritical() << "start" << start.toString(Qt::ISODate);
|
||||||
|
|
||||||
double cost = Calculator::GetInstance().GetCostFromDuration(&cfg, 4, start, end, marken[duration], nextDay, prePaid);
|
// double cost = Calculator::GetInstance().GetCostFromDuration(&cfg, 4, start, end, marken[duration], nextDay, prePaid);
|
||||||
//qCritical() << "";
|
|
||||||
|
struct price_t price;
|
||||||
|
//if (compute_price_for_parking_ticket(&cfg, start, marken[duration], end, &price)) {
|
||||||
|
compute_price_for_parking_ticket(&cfg, start, marken[duration], end, &price);
|
||||||
|
double cost = price.netto;
|
||||||
|
|
||||||
qCritical() << "start" << start.toString(Qt::ISODate)
|
qCritical() << "start" << start.toString(Qt::ISODate)
|
||||||
<< "end" << end.toString(Qt::ISODate)
|
<< "end" << end.toString(Qt::ISODate)
|
||||||
<< "duration" << marken[duration]
|
<< "duration" << marken[duration]
|
||||||
<< "cost" << cost;
|
<< "cost" << cost;
|
||||||
|
//}
|
||||||
|
|
||||||
//std::string d = Calculator::GetInstance().GetDurationFromCost(&cfg, 4, start.toString(Qt::ISODate).toStdString().c_str(), cost);
|
//std::string d = Calculator::GetInstance().GetDurationFromCost(&cfg, 4, start.toString(Qt::ISODate).toStdString().c_str(), cost);
|
||||||
//qCritical() << "start" << start.toString(Qt::ISODate)
|
//qCritical() << "start" << start.toString(Qt::ISODate)
|
||||||
|
Loading…
Reference in New Issue
Block a user