diff --git a/main/main.cpp b/main/main.cpp index 6e0bb8a..6852467 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -33,12 +33,32 @@ extern "C" char* strptime(const char* s, #include "calculator_functions.h" #include -#define SZEGED (0) -#define NEUHAUSER_KORNEUBURG (0) -#define NEUHAUSER_LINSINGER_MASCHINENBAU (1) +#define SZEGED (0) +#define NEUHAUSER_KORNEUBURG (0) +#define NEUHAUSER_LINSINGER_MASCHINENBAU (0) +#define NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM (1) int main() { +#if NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM==1 + std::ifstream input("/tmp/tariff_naz.json"); + + std::stringstream sstr; + while(input >> sstr.rdbuf()); + std::string json(sstr.str()); + + Configuration cfg; + + bool isParsed = cfg.ParseJson(&cfg, json.c_str()); + cout << endl; + + if (isParsed) { + // Calculator calculator; + + } + +#endif + #if NEUHAUSER_LINSINGER_MASCHINENBAU==1 std::ifstream input("/tmp/tariff_linsinger_maschinenbau.json");