Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

VGenFactory Template Class Reference

Abstract base class for ValueGeneratorFactory independent of all template parameters except the datatype. More...

#include <valuegen.h>

Inheritance diagram for VGenFactory

Inheritance graph

[legend]
List of all members.

Public Methods

 VGenFactory ()
virtual ~VGenFactory ()
virtual ValueGenerator<T>* create (StringArgs args) const = 0
 Create a ValueGenerator using the given string arguments. More...

virtual ValueGenerator<T>* create (StringArgs args, T* ref) const = 0
 Extended version of create() that can correlate or link the new ValueGenerator with an existing one.


Protected Methods

virtual void error (const string&) const
 This implementation ignores errors, but derived classes may redefine this function if they wish, perhaps to write messages to the console. More...

virtual void warning (const string&) const
 This implementation ignores warnings, but derived classes may redefine this function if they wish, perhaps to write messages to the console. More...


Detailed Description

template<class T = double> template class VGenFactory

Abstract base class for ValueGeneratorFactory independent of all template parameters except the datatype.

Definition at line 349 of file valuegen.h.


Constructor & Destructor Documentation

template<classT = double>
VGenFactory<T>::VGenFactory<T> ( ) [inline]
 

Definition at line 351 of file valuegen.h.

template<classT = double>
VGenFactory<T>::~VGenFactory<T> ( ) [inline, virtual]
 

Definition at line 352 of file valuegen.h.


Member Function Documentation

template<classT = double>
ValueGenerator< T >* VGenFactory<T>::create ( StringArgs args ) const [pure virtual]
 

Create a ValueGenerator using the given string arguments.

Notice that the args argument is passed by value and not reference, and thus this routine is assuming full responsibility for parsing the whole list. The caller should not assume there are further arguments to process when this routine returns.

Reimplemented in ValueGeneratorFactory.

Referenced by ValueGeneratorFactory::create().

template<classT = double>
void VGenFactory<T>::error ( const string & s ) const [inline, protected, virtual]
 

This implementation ignores errors, but derived classes may redefine this function if they wish, perhaps to write messages to the console.

Reimplemented in DistributedValueGeneratorFactory.

Definition at line 369 of file valuegen.h.

Referenced by ValueGeneratorFactory::create().

template<classT = double>
void VGenFactory<T>::warning ( const string & s ) const [inline, protected, virtual]
 

This implementation ignores warnings, but derived classes may redefine this function if they wish, perhaps to write messages to the console.

Reimplemented in DistributedValueGeneratorFactory.

Definition at line 372 of file valuegen.h.

Referenced by ValueGeneratorFactory::create().


The documentation for this class was generated from the following file:
Generated at Mon Aug 21 00:31:29 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000