#include <directives.h>
Inheritance diagram for conf::ConfHostPort:
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 ConfHostPort & | operator= (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. |
This function must be overriden in derived classes to add directives to the given Conf object.
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. |
Implements conf::ConfBlock.