tibia-client/src/framework/core/configs.h

23 lines
449 B
C
Raw Normal View History

2011-08-16 15:06:16 +02:00
#ifndef CONFIGMANAGER_H
#define CONFIGMANAGER_H
#include "declarations.h"
class Configs
{
public:
2011-08-20 22:30:41 +02:00
bool load(const std::string& file);
2011-08-16 15:06:16 +02:00
bool save();
void set(const std::string& key, const std::string& value) { m_confsMap[key] = value; }
std::string get(const std::string& key) { return m_confsMap[key]; }
private:
std::string m_fileName;
std::map<std::string, std::string> m_confsMap;
};
extern Configs g_configs;
#endif