libmoost
|
string-specific template specialization: we need to read the whole line for strings More...
#include <binding.hpp>
Public Member Functions | |
binding (std::string &value) | |
binding (std::string &value, const std::string &default_value) | |
void | read (std::istream &source) |
load state from source | |
void | write (std::ostream &dest, int=0) const |
persist state to dest | |
void | set_default () |
if this object can be used without deserializing (otherwise throw) | |
Private Attributes | |
std::string & | m_value |
const bool | m_has_default_value |
const std::string | m_default_value |
string-specific template specialization: we need to read the whole line for strings
Definition at line 75 of file binding.hpp.
moost::configurable::binding< std::string >::binding | ( | std::string & | value | ) | [inline] |
Definition at line 83 of file binding.hpp.
moost::configurable::binding< std::string >::binding | ( | std::string & | value, |
const std::string & | default_value | ||
) | [inline] |
Definition at line 88 of file binding.hpp.
void moost::configurable::binding< std::string >::read | ( | std::istream & | source | ) | [inline, virtual] |
load state from source
Implements moost::configurable::persistable.
Definition at line 94 of file binding.hpp.
void moost::configurable::binding< std::string >::set_default | ( | ) | [inline, virtual] |
if this object can be used without deserializing (otherwise throw)
Implements moost::configurable::persistable.
Definition at line 96 of file binding.hpp.
void moost::configurable::binding< std::string >::write | ( | std::ostream & | dest, |
int | indent = 0 |
||
) | const [inline, virtual] |
persist state to dest
Implements moost::configurable::persistable.
Definition at line 95 of file binding.hpp.
const std::string moost::configurable::binding< std::string >::m_default_value [private] |
Definition at line 80 of file binding.hpp.
const bool moost::configurable::binding< std::string >::m_has_default_value [private] |
Definition at line 79 of file binding.hpp.
std::string& moost::configurable::binding< std::string >::m_value [private] |
Definition at line 78 of file binding.hpp.