Gaudi Framework, version v25r2

Home   Generated: Wed Jun 4 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Static Public Member Functions | List of all members
Gaudi::PluginService::Factory0< R > Class Template Reference

Class wrapping the signature for a factory without arguments. More...

#include <PluginService.h>

Public Types

typedef R ReturnType
 
typedef R(* FuncType )()
 

Static Public Member Functions

static ReturnType create (const std::string &id)
 
template<typename T >
static ReturnType create (const T &id)
 

Detailed Description

template<typename R>
class Gaudi::PluginService::Factory0< R >

Class wrapping the signature for a factory without arguments.

Definition at line 44 of file PluginService.h.

Member Typedef Documentation

template<typename R >
typedef R(* Gaudi::PluginService::Factory0< R >::FuncType)()

Definition at line 47 of file PluginService.h.

template<typename R >
typedef R Gaudi::PluginService::Factory0< R >::ReturnType

Definition at line 46 of file PluginService.h.

Member Function Documentation

template<typename R >
static ReturnType Gaudi::PluginService::Factory0< R >::create ( const std::string &  id)
inlinestatic

Definition at line 49 of file PluginService.h.

{
const FuncType c = Details::getCreator<FuncType>(id);
return c ? (*c)() : 0;
}
template<typename R >
template<typename T >
static ReturnType Gaudi::PluginService::Factory0< R >::create ( const T &  id)
inlinestatic

Definition at line 55 of file PluginService.h.

{
std::ostringstream o; o << id;
return create(o.str());
}

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

Generated at Wed Jun 4 2014 14:49:05 for Gaudi Framework, version v25r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004