VISH
0.2
|
Template class for convenient definition of creators of objects providing a multiple input types. More...
#include </home/werner/origo/vish/ocean/plankton/VInputCreator.hpp>
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.
InputType | The type for which this creator is registered as a possible provider; |
VInputCreatorClass | A 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.
Wizt::VInputCreator::VInputCreator | ( | const string & | name, |
int | ObjectQuality, | ||
const RefPtr< VCreationPreferences > & | prop = NullPtr() |
||
) | [inline] |
Constructor.
All arguments are forwarded to the VInputCreatorClass.