#include <directives.h>
Inheritance diagram for conf::ConfBool:
Public Member Functions | |
ConfBool (std::string const &name, bool reloadable) | |
Constructor setting the directive name. | |
ConfBool (std::string const &name, bool const &defval, bool reloadable) | |
Constructor setting the directive name and default value. | |
operator bool () const | |
Conversion operator. | |
virtual char const * | label (size_t index) const |
Implements ConfDir::label(). | |
Protected Member Functions | |
virtual bool | assign (Conf &conf, unsigned short count, std::string const params[]) |
Sets the value. |
A conversion operator to bool is also provided for easy value access.
|
Transforms the string array passed by the parser into the directive's value. This function must ensure that the value is valid through a call to check() before setting it (you don't need to set m_value_set to true, this will be handled by set() when the function returns successfully).
Implements conf::ConfValue< bool >. |