conf::ConfURI Class Reference

Class implementing a URI directive type. More...

#include <directives.h>

Inheritance diagram for conf::ConfURI:

conf::ConfValue< misc::URI > conf::ConfDir

List of all members.

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.


Detailed Description

This class is used to store URI values.

It converts string expressions of a URI using the misc::URI class.


Member Function Documentation

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).

Parameters:
[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).
Returns:
true if the function is successful, false otherwise (conf.error() should have be called with an appropriate error message in that case).

Implements conf::ConfValue< misc::URI >.


The documentation for this class was generated from the following file:
Generated on Fri Apr 18 22:03:28 2008 for Epona API by  doxygen 1.5.3