mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-29 07:07:14 +01:00
32 lines
534 B
C++
32 lines
534 B
C++
#ifndef DB_SETTINGS_H
|
|
#define DB_SETTINGS_H
|
|
|
|
#include "core/settings/settings.h"
|
|
|
|
class DBSettings : public Settings {
|
|
RCPP_OBJECT(DBSettings, Settings);
|
|
|
|
public:
|
|
virtual void set_value(const String &key, const Variant &value);
|
|
|
|
void load();
|
|
|
|
void migrate();
|
|
|
|
void set_table(const String &table);
|
|
|
|
static DBSettings *get_singleton();
|
|
|
|
DBSettings(const bool singleton = false);
|
|
virtual ~DBSettings();
|
|
|
|
protected:
|
|
String _table;
|
|
|
|
std::map<String, int> _key_map;
|
|
|
|
private:
|
|
static DBSettings *_db_settings_singleton;
|
|
};
|
|
|
|
#endif |