conf::ConfHostPort Class Reference

Class implementing a host/port block directive type. More...

#include <directives.h>

Inheritance diagram for conf::ConfHostPort:

conf::ConfBlock conf::ConfDir

List of all members.

Public Member Functions

 ConfHostPort (std::string const &name, bool reloadable=true)
 Constructor setting directive name and reloadability.
 ConfHostPort (std::string const &name, struct in_addr const &defhost, uint16_t defport, bool reloadable=true)
 Constructor setting the directive name and default values.
 ConfHostPort (std::string const &name, uint16_t defport, bool reloadable=true)
 Constructor setting the directive name and port default value.
 ConfHostPort (ConfHostPort const &cd)
 Copy constructor.
virtual ConfHostPortoperator= (ConfHostPort const &right)
 Assignment operator.

Public Attributes

ConfHostname hostname
 hostname directive object.
ConfPort port
 port directive object.

Protected Member Functions

virtual bool add (Conf &conf, Conf &new_conf)
 Adds directives to a Conf object.


Detailed Description

This class implements a block directive type that have two directives "hostname" and "port" of types ConfHostname and ConfPort.

Member Function Documentation

virtual bool conf::ConfHostPort::add ( Conf conf,
Conf new_conf 
) [protected, virtual]

This function must be overriden in derived classes to add directives to the given Conf object.

Parameters:
conf The Conf object that called the ConfBlock::begin() function. DO NOT add directives to this object! ;)
new_conf The Conf object to which you must add the directives.
Returns:
true if initialization went well. Else it returns false and an error message should have been logged through conf.error().

Implements conf::ConfBlock.


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