#include <directives.h>

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.
| virtual bool conf::ConfBool::assign | ( | Conf & | conf, | |
| unsigned short | count, | |||
| std::string const | params[] | |||
| ) | [protected, virtual] |
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).
| [in] | conf | The Conf object that called set(). |
| [in] | count | Number of parameters in params. |
| [in] | params | Parameters passed to the directive (NULL if count is 0). |
Implements conf::ConfValue< bool >.
1.5.3