22 #ifndef NUVIE_CONF_CONFIG_NODE_H 23 #define NUVIE_CONF_CONFIG_NODE_H 25 #include "ultima/shared/std/string.h" 26 #include "ultima/nuvie/conf/configuration.h" 34 : config(config_), key(key_) {
42 config = other.config;
47 Std::string get_string(
const char *defaultvalue =
"") {
49 config.value(key, s, defaultvalue);
52 int get_int(
int defaultvalue = 0) {
54 config.value(key, i, defaultvalue);
57 bool get_bool(
bool defaultvalue =
false) {
59 config.value(key, b, defaultvalue);
64 config.set(key, value);
66 void set(
const char *value) {
67 config.set(key, value);
70 config.set(key, value);
72 void set(
bool value) {
73 config.set(key, value);
Definition: configuration.h:61
Definition: config_node.h:31
Definition: detection.h:27