forked from ElementalAlchemist/RoBoBo
/
config.h
20 lines (17 loc) · 810 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef CONFIG_H
#define CONFIG_H
#include "main.h"
#include <fstream>
#include <sstream>
class ConfigReader {
public:
ConfigReader(std::string filename, std::string filedir);
void readConfig(std::string filename, std::string filedir);
std::tr1::unordered_map<std::string, std::tr1::unordered_map<std::string, std::string> > getServerConfig();
std::tr1::unordered_map<std::string, std::tr1::unordered_map<std::string, std::string> > getModConfig(bool loading);
private:
std::tr1::unordered_map<std::string, std::tr1::unordered_map<std::string, std::string> > serverConfig;
std::tr1::unordered_map<std::string, std::tr1::unordered_map<std::string, std::string> > modLoadConfig;
std::tr1::unordered_map<std::string, std::tr1::unordered_map<std::string, std::string> > modKeepConfig;
};
#endif