Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

at::Creator0P< w_InterfaceType, w_KeyType >::CreateWrapper Struct Reference

#include <at_factory.h>

Inheritance diagram for at::Creator0P< w_InterfaceType, w_KeyType >::CreateWrapper:

Inheritance graph
[legend]
Collaboration diagram for at::Creator0P< w_InterfaceType, w_KeyType >::CreateWrapper:

Collaboration graph
[legend]
List of all members.

Public Methods

 CreateWrapper (Creator0P *i_creator, StatusReport *o_srep=0, FactoryTraits::FactoryCreateReportingOption i_option=FactoryTraits::AllwaysReturn)
w_InterfaceType * operator() ()

Public Attributes

Creator0Pm_creator

Detailed Description

template<typename w_InterfaceType, typename w_KeyType>
struct at::Creator0P< w_InterfaceType, w_KeyType >::CreateWrapper

CreateWrapper is a wrapper to control how objects are created. This is mainly a convenience to allow one liner factory find and create.


Constructor & Destructor Documentation

template<typename w_InterfaceType, typename w_KeyType>
at::Creator0P< w_InterfaceType, w_KeyType >::CreateWrapper::CreateWrapper Creator0P   i_creator,
StatusReport   o_srep = 0,
FactoryTraits::FactoryCreateReportingOption    i_option = FactoryTraits::AllwaysReturn
[inline]
 

CreateWrapper constructor takes a factory interface a status reporting interface and a modifier to indicate what to do on error.


Member Function Documentation

template<typename w_InterfaceType, typename w_KeyType>
w_InterfaceType* at::Creator0P< w_InterfaceType, w_KeyType >::CreateWrapper::operator()   [inline]
 

operator w_InterfaceType *() invokes the factory create method. Unfortunately, this is specific to each type of paramters.


Member Data Documentation

template<typename w_InterfaceType, typename w_KeyType>
Creator0P* at::Creator0P< w_InterfaceType, w_KeyType >::CreateWrapper::m_creator
 

m_creator contains a pointer to the actual factory.


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

Generated for Austria by doxygen and MakeXS at Sun Oct 24 17:35:34 PDT 2004