38static std::istream& operator>>(std::istream& input, wxString& ws) {
49 const std::string& key_, wxConfigBase* cb)
50 : Observable(section_ +
"/" + key_),
57 std::istringstream iss;
58 m_config->SetPath(m_section);
59 auto value = m_config->Read(m_key,
"").ToStdString();
63 return iss.fail() ? default_val : r;
68 std::ostringstream oss;
71 wxLogWarning(
"Cannot dump failed buffer for key %s:%s", m_section.c_str(),
75 m_config->SetPath(m_section);
76 if (!m_config->Write(m_key.c_str(), oss.str().c_str())) {
77 wxLogWarning(
"Error writing buffer to key %s:%s", m_section.c_str(),
Wrapper for configuration variables which lives in a wxBaseConfig object.
Notify()/Listen() configuration variable wrapper.