commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
commore::DefaultServiceFactory< T > Class Template Reference

#include <Service.h>

+ Inheritance diagram for commore::DefaultServiceFactory< T >:

Public Member Functions

 DefaultServiceFactory (bool noregister=false)
 
PService create (const AChar *class_name, const AChar *name, const AChar *args)
 
- Public Member Functions inherited from commore::ServiceFactory
 ServiceFactory (const AChar *class_name, bool noregister=false)
 
 ~ServiceFactory ()
 
const AStringget_class_name () const
 

Additional Inherited Members

- Static Public Member Functions inherited from commore::ServiceFactory
static int get (const AChar *class_name, List< ServiceFactory * > &factoryList)
 

Detailed Description

template<class T>
class commore::DefaultServiceFactory< T >

Dummy service factory The T class must provide a constructor which takes one parameter : the argument. T::get_factory_class_name() must also be provided.

Constructor & Destructor Documentation

template<class T >
commore::DefaultServiceFactory< T >::DefaultServiceFactory ( bool  noregister = false)
inline

Member Function Documentation

template<class T >
PService commore::DefaultServiceFactory< T >::create ( const AChar class_name,
const AChar name,
const AChar args 
)
inlinevirtual

Create an service instance

Parameters
class_name: class of the service
name: instance name
args: specification for initialization

Implements commore::ServiceFactory.


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