Simpact Cyan
Population based event driven simulation using mNRM
jsonconfig.h
1 #ifndef JSONCONFIG_H
2 
3 #define JSONCONFIG_H
4 
5 #include <string>
6 #include <map>
7 #include <vector>
8 
9 class JSONConfig
10 {
11 public:
12  JSONConfig(const std::string &jsonText) { commonConstructor("configNames", jsonText); }
13  JSONConfig(const std::string &categoryName, const std::string &jsonText) { commonConstructor(categoryName, jsonText); }
14 
15  static std::string getFullConfigurationString();
16 private:
17  void commonConstructor(const std::string &categoryName, const std::string &jsonText);
18 
19  static std::map<std::string, std::vector<std::string> > *s_pJsonConfig;
20 };
21 
22 #endif // JSONCONFIG_H