pandemonium_engine/modules/database/db_settings/db_settings.h

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