VISH  0.2
Public Member Functions | Static Public Member Functions | Protected Member Functions
Wizt::VInputCreator Class Reference

Template class for convenient definition of creators of objects providing a multiple input types. More...

#include </home/werner/origo/vish/ocean/plankton/VInputCreator.hpp>

List of all members.

Public Member Functions

Static Public Member Functions

Protected Member Functions


Detailed Description

Template class for convenient definition of creators of objects providing a multiple input types.

For a certain type, it calls registerVInput() at construction and unregisterVInput() for the respective VCreator object.

Parameters:
InputTypeThe type for which this creator is registered as a possible provider;
VInputCreatorClassA creator class for VManagedObjects, e.g. VCreator<>s or other VInputCreator<>s.

For instance, the following code manages creation of objects that may provide an "int" type input as well as an "double" input (any arbitrary user-defined type may be used as well):

class   MyObjectCreator : public VInputCreatorBase
{
        ... // class members
}

static VInputCreator <double, VInputCreator<int, MyObjectCreator>, double>  myIntDoubleCreator("IntDouble Provider");

The base class VInputCreatorClass is responsible on its own to actually provide the functionality of object creation. The constructor of creator classes must accept the same arguments as the constructor of VInputCreator<> itself.


Constructor & Destructor Documentation

Wizt::VInputCreator::VInputCreator ( const string name,
int  ObjectQuality,
const RefPtr< VCreationPreferences > &  prop = NullPtr() 
) [inline]

Constructor.

All arguments are forwarded to the VInputCreatorClass.


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