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

VGenFactory< T > Class Template Reference

#include <valuegen.h>

Inheritance diagram for VGenFactory< T >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class T = double>
class VGenFactory< T >

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

Definition at line 429 of file valuegen.h.

Public Methods

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

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.

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.


Member Function Documentation

template<class T = double>
virtual 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.

Implemented in ValueGeneratorFactory< T, urf, nrf >.

template<class T = double>
virtual void VGenFactory< T >::error const string &    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.

This support should probably be rewritten using msg.h, to inherit the global default instance.

Reimplemented in ValueGeneratorFactory< T, urf, nrf >.

Definition at line 452 of file valuegen.h.


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:30 2003 for RF-LISSOM by doxygen1.3-rc2