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

16 lines
362 B
C++

#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;
};