Logo Search packages:      
Sourcecode: poco version File versions  Download package

Poco::DynamicFactory< Base > Class Template Reference

A factory that creates objects by class name. More...

#include <DynamicFactory.h>

Inheritance diagram for Poco::DynamicFactory< Base >:
Collaboration diagram for Poco::DynamicFactory< Base >:

List of all members.

Public Types

typedef AbstractInstantiator
< Base > 

Public Member Functions

Base * createInstance (const std::string &className) const
 DynamicFactory ()
 Creates the DynamicFactory.
bool isClass (const std::string &className) const
 Returns true iff the given class has been registered.
template<class C >
void registerClass (const std::string &className)
void registerClass (const std::string &className, AbstractFactory *pAbstractFactory)
void unregisterClass (const std::string &className)
 ~DynamicFactory ()

Private Types

typedef std::map< std::string,
AbstractFactory * > 

Private Member Functions

 DynamicFactory (const DynamicFactory &)
DynamicFactoryoperator= (const DynamicFactory &)

Private Attributes

FactoryMap _map
FastMutex _mutex

Detailed Description

template<class Base>
class Poco::DynamicFactory< Base >

A factory that creates objects by class name.

Definition at line 55 of file DynamicFactory.h.

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

Generated by  Doxygen 1.6.0   Back to index