SPH
|
Generic implementation of IConfigValue, using std::stringstream for the (de)serialization. More...
#include <Config.h>
Public Member Functions | |
ConfigValue ()=default | |
ConfigValue (const Type &value) | |
virtual std::string | write () const override |
Writes the value into a string. More... | |
virtual void | read (const std::string &source) override |
Reads the value from string and stores it internally. More... | |
Type | get () const |
![]() | |
virtual | ~Polymorphic () |
Generic implementation of IConfigValue, using std::stringstream for the (de)serialization.
This is used for primitive types and for other types that define the stream operators. If a user-defined type does not have these operators, it is necessary to specialize this class and implement the functions read and write manually.
|
default |
|
inline |
|
inline |
|
inlineoverridevirtual |
Reads the value from string and stores it internally.
ConfigException | if the value cannot be deserialized. |
Implements IConfigValue.
|
inlineoverridevirtual |