mi::neuraylib::User_class_factory< T> Template Class Reference
[Extensions and Plugins]
template< class T>class mi::neuraylib::User_class_factory< T>
Description
This mixin class provides a default implementation of the IUser_class_factory interface. This default implementation of mi::neuraylib::IUser_class_factory simply calls the default constructor of T without arguments.
The default implementation is used implicitly by some variants of the class registration, see mi::neuraylib::IDice_configuration::register_serializable_class().
Public Member Functions
- virtual base::IInterface* create( ITransaction* transaction, Uint32 argc, const base::IInterface* argv)
- Creates an instance of the class for which the factory was registered. More...
Member Functions
- virtual base::IInterface* mi::neuraylib::User_class_factory< T>::create( ITransaction* transaction, Uint32 argc, const base::IInterface* argv) [inline, virtual]
-
Creates an instance of the class for which the factory was registered. This default implementation simply calls the default constructor of T without arguments. It does not accept any parameters, i.e., it requires argc = 0.
Parameters
- transaction
- The transaction (ignored).
- argc
- The size of the argv array (must be 0).
- argv
- An array of optional arguments (ignored).
Returns
An instance of the class, or NULL on failure.