#include <directives.h>
Public Member Functions | |
ConfURI (std::string const &name, bool reloadable) | |
Constructor without default value. | |
ConfURI (std::string const &name, misc::URI const &defval, bool reloadable) | |
Constructor with default value. | |
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. |
It converts string expressions of a URI using the misc::URI class.
virtual bool conf::ConfURI::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< misc::URI >.