Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graph/include/config.h

17 lines
362 B
C
Raw Normal View History

2018-11-08 12:51:32 -05:00
#pragma once
#include <map>
#include <string>
class Config {
public:
bool load(const char* from);
void save(const char* to);
void set(const char* category, const char* key, const std::string& value);
std::string get(const char* category, const char* key);
private:
std::map<std::string, std::map<std::string, std::string>> categories;
};