NeTrainSim 0.1.1 beta
The Open-Source Network Trains Simulator
 
Loading...
Searching...
No Matches
jsonmanager.h
Go to the documentation of this file.
1#ifndef JSONMANAGER_H
2#define JSONMANAGER_H
3
4#include "util/vector.h"
5#include <string>
6#include <QJsonObject>
7#include <QJsonArray>
8
10{
11public:
12 JSONManager(Vector<std::string> fileKeys, Vector<std::string> fileCriticalKeys);
14 Vector<Vector<std::string>> read(const std::string& filename);
15 void write(const std::string& filename, const Vector<Vector<std::string>>& data);
16
17private:
19 Vector<std::string> criticalKeys;
20};
21
22#endif // JSONMANAGER_H
Definition jsonmanager.h:10
Vector< Vector< std::string > > read(const std::string &filename)
Definition jsonmanager.cpp:18
void write(const std::string &filename, const Vector< Vector< std::string > > &data)
Definition jsonmanager.cpp:56
A vector.
Definition vector.h:24