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
9
class
JSONManager
10
{
11
public
:
12
JSONManager
(
Vector<std::string>
fileKeys,
Vector<std::string>
fileCriticalKeys);
13
~JSONManager
();
14
Vector<Vector<std::string>
>
read
(
const
std::string& filename);
15
void
write
(
const
std::string& filename,
const
Vector
<
Vector<std::string>
>& data);
16
17
private
:
18
Vector<std::string>
keys;
19
Vector<std::string>
criticalKeys;
20
};
21
22
#endif
// JSONMANAGER_H
JSONManager
Definition
jsonmanager.h:10
JSONManager::read
Vector< Vector< std::string > > read(const std::string &filename)
Definition
jsonmanager.cpp:18
JSONManager::write
void write(const std::string &filename, const Vector< Vector< std::string > > &data)
Definition
jsonmanager.cpp:56
JSONManager::~JSONManager
~JSONManager()
Vector
A vector.
Definition
vector.h:24
vector.h
src
NeTrainSim
util
jsonmanager.h
Generated by
1.9.7