conf::ConfElse Class Reference

Class implementing else global configuration directive. More...

#include <directives.h>

Inheritance diagram for conf::ConfElse:

conf::ConfDir List of all members.

Public Member Functions

 ConfElse (std::string const &name)
 Constructor setting the name of the directive.
 ConfElse (ConfElse const &cd)
 Copy constructor.
virtual ConfElseoperator= (ConfElse const &cd)
 Assignment operator.
bool can_process () const
 Determines whether to process params[0] next time.
bool can_process (bool process)
 Sets whether to process params[0] next time.
virtual bool set (Conf &conf, unsigned short count, std::string const params[])
 Executes params[0] if (can_process() == true).

Detailed Description

This class implements the else global configuration directive.

ConfIf directives (and derived) must call the can_process() member function of the ConfElse object (obtained through conf.global().else_directive()


Member Function Documentation

bool conf::ConfElse::can_process (  )  const [inline]

Determines whether to process params[0] next time the directive is used.

Returns:
true if it must be processed, false otherwise.

bool conf::ConfElse::can_process ( bool  process  )  [inline]

Sets whether to process params[0] next time the directive is used.

Parameters:
process Set this to true to process params[0] next time, false otherwise.
Returns:
true if params[0] will be processed next time, false otherwise.


The documentation for this class was generated from the following file:
Generated on Wed Aug 15 00:37:22 2007 for Epona API by  doxygen 1.5.2