mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +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 |