24#ifndef OBSERVABLE_CONFVAR_H
25#define OBSERVABLE_CONFVAR_H
33#include "observable.h"
68template <
typename T = std::
string>
72 ConfigVar(
const std::string& section_,
const std::string& key_,
76 void Set(
const T& arg);
82 const T
Get(
const T& default_val);
87 const std::string section;
88 const std::string key;
89 wxConfigBase*
const config;
Wrapper for configuration variables which lives in a wxBaseConfig object.
const T Get(const T &default_val)
Get current value.
void Set(const T &arg)
Set value to given argument and notify listeners.
The observable notify/listen basic nuts and bolts.