Chatsync  bbffde5c0c672a526bdc83637acf66dc20a80fbf
config::ConfigOption Class Reference

#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
 

Detailed Description

Single option from config. Can be casted to needed type, however is stored as std::string

Constructor & Destructor Documentation

§ ConfigOption() [1/2]

config::ConfigOption::ConfigOption ( const std::string &&  value)
inline

Create option with

Parameters
valuedata which will be implicitly lazily converted to type needed

§ ConfigOption() [2/2]

config::ConfigOption::ConfigOption ( const char *  value)
inline

Member Function Documentation

§ operator channeling::ChannelDirection()

config::ConfigOption::operator channeling::ChannelDirection ( ) const

Channel direction

§ operator int()

config::ConfigOption::operator int ( ) const

Implicit conversion to int

Can parse "true" and "false" values.

§ operator std::string()

config::ConfigOption::operator std::string ( ) const
inline

Implicit conversions to string-compatible classes

Field Documentation

§ _value

const std::string config::ConfigOption::_value
private

The documentation for this class was generated from the following files: