Chatsync
bbffde5c0c672a526bdc83637acf66dc20a80fbf
|
#include <config.hpp>
Public Member Functions | |
ConfigOption (const std::string &&value) | |
ConfigOption (const char *value) | |
operator std::string () const | |
operator int () const | |
operator channeling::ChannelDirection () const | |
Private Attributes | |
const std::string | _value |
Single option from config. Can be casted to needed type, however is stored as std::string
|
inline |
Create option with
value | data which will be implicitly lazily converted to type needed |
|
inline |
config::ConfigOption::operator channeling::ChannelDirection | ( | ) | const |
Channel direction
config::ConfigOption::operator int | ( | ) | const |
Implicit conversion to int
Can parse "true" and "false" values.
|
inline |
Implicit conversions to string-compatible classes
|
private |