Aegis  4.25.D505
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions
sub_functor_hostname Class Reference

#include <hostname.h>

Inheritance diagram for sub_functor_hostname:
sub_functor

Public Member Functions

virtual ~sub_functor_hostname ()

Static Public Member Functions

static pointer create (const nstring &aname)

Protected Member Functions

wstring evaluate (sub_context_ty *cp, const wstring_list &arg)

Private Member Functions

 sub_functor_hostname (const nstring &aname)
 sub_functor_hostname ()
 sub_functor_hostname (const sub_functor_hostname &)
sub_functor_hostnameoperator= (const sub_functor_hostname &)

Detailed Description

The sub_functor_hostname class is used to represent a substitution that is replaced by the hostname of the executing host.

Definition at line 28 of file hostname.h.


Constructor & Destructor Documentation

The destructor.

The constructor. It is private on purpose, use the create class method instead.

Parameters:
anameThe name of the substitution.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

static pointer sub_functor_hostname::create ( const nstring aname) [static]

The create class method is used to create new dynamically allocated instances of this class.

Parameters:
anameThe name of the substitution.
wstring sub_functor_hostname::evaluate ( sub_context_ty cp,
const wstring_list arg 
) [protected, virtual]

The evaluate method is used to evaluate this functor in the given context, with the given arguments.

Parameters:
cpSubstitution context
argThe list of arguments
Returns:
a wide string containing the text to be substituted

Implements sub_functor.

sub_functor_hostname& sub_functor_hostname::operator= ( const sub_functor_hostname ) [private]

The assignment operator. Do not use.


The documentation for this class was generated from the following file: