Public Member Functions

VgEngine::VgInstanceFactory Class Reference

Creates objects from their descriptor. More...

Collaboration diagram for VgEngine::VgInstanceFactory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 VgInstanceFactory (VgApplication::VgIApplication *pApplication)
 Constructor.
template<typename tDescriptor >
VgEngine::VgRefPtr< typename
tDescriptor::Described > 
instantiate (VgEngine::VgConstRefPtr< tDescriptor > const &pDescriptor)
 The template instantiation to allow object instantiation through descriptors.
template<typename tDescriptor >
VgEngine::VgRefPtr< typename
tDescriptor::Described > 
instantiate (VgEngine::VgRefPtr< tDescriptor > const &pDescriptor)
 The template instantiation to allow object instantiation through descriptors.

Detailed Description

Creates objects from their descriptor.

Version:
2.0

Constructor & Destructor Documentation

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

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.

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.

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.

The documentation for this class was generated from the following file:
VisioDevKit 2.0, Visioglobe® 2013