VisioMove SDK (iOS)  2.1.22
VgEngine::VgInstanceFactory Class Reference

Public Member Functions

template<typename tDescriptor >
VgEngine::VgRefPtr< typename tDescriptor::Described > instantiate (VgEngine::VgConstRefPtr< tDescriptor > const &pDescriptor)
 
template<typename tDescriptor >
VgEngine::VgRefPtr< typename tDescriptor::Described > instantiate (VgEngine::VgRefPtr< tDescriptor > const &pDescriptor)
 

Protected Member Functions

 VgInstanceFactory (VgApplication::VgIApplication *pApplication)
 

Friends

class ::VgIEngineImpl
 

Detailed Description

Creates objects from their descriptor.

Version
2.0

Constructor & Destructor Documentation

VgEngine::VgInstanceFactory::VgInstanceFactory ( VgApplication::VgIApplication pApplication)
protected

Constructor

Parameters
pApplicationThe application to associate with the instance factory object.

Member Function Documentation

template<typename tDescriptor >
VgEngine::VgRefPtr< typename tDescriptor::Described > VgEngine::VgInstanceFactory::instantiate ( VgEngine::VgConstRefPtr< tDescriptor > const &  pDescriptor)

The template instantiation to allow object instantiation through descriptors.

Warning
Even if the interface allows it, it is highly inadvisable to use objects in another VgIEngine instance than the one that holds this factory.
Parameters
pDescriptorThe descriptor that 'describes' the object, which will be used to create the object.
Returns
A pointer to the object or NULL if the descriptor was invalid.
template<typename tDescriptor >
VgEngine::VgRefPtr< typename tDescriptor::Described > VgEngine::VgInstanceFactory::instantiate ( VgEngine::VgRefPtr< tDescriptor > const &  pDescriptor)
inline

The template instantiation to allow object instantiation through descriptors.

Warning
Even if the interface allows it, it is highly inadvisable to use the created objects in another VgIApplication instance than the one that holds this factory.
Parameters
pDescriptorThe descriptor that 'describes' the object, which will be used to create the object.
Returns
A pointer to the object or NULL if the descriptor was invalid.

Friends And Related Function Documentation

friend class ::VgIEngineImpl
friend

The documentation for this class was generated from the following file:
VisioMove 2.1.22, Visioglobe® 2016