mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Settings now inherits from Object.
This commit is contained in:
parent
86f19a3353
commit
fa6c1281b9
@ -3,10 +3,14 @@
|
||||
|
||||
#include <map>
|
||||
|
||||
#include "core/object.h"
|
||||
|
||||
#include "core/variant.h"
|
||||
#include "core/string.h"
|
||||
|
||||
class Settings {
|
||||
class Settings : public Object {
|
||||
RCPP_OBJECT(Settings, Object);
|
||||
|
||||
public:
|
||||
Variant get_value(const String &key, const Variant &def = Variant());
|
||||
String get_value_string(const String &key, const String &def = "");
|
||||
@ -15,7 +19,7 @@ public:
|
||||
double get_value_double(const String &key, const double def = 0);
|
||||
bool get_value_bool(const String &key, const bool def = false);
|
||||
|
||||
void set_value(const String &key, const Variant &value);
|
||||
virtual void set_value(const String &key, const Variant &value);
|
||||
|
||||
void parse_ini_file(const String &path);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user