All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Gaudi::PluginService::Factory0< R > Class Template Reference

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

#include <Gaudi/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 45 of file PluginService.h.

Member Typedef Documentation

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

Definition at line 48 of file PluginService.h.

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

Definition at line 47 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 50 of file PluginService.h.

50  {
51  const FuncType c = Details::getCreator<FuncType>(id);
52  return c ? (*c)() : 0;
53  }
tuple c
Definition: gaudirun.py:341
template<typename R >
template<typename T >
static ReturnType Gaudi::PluginService::Factory0< R >::create ( const T &  id)
inlinestatic

Definition at line 56 of file PluginService.h.

56  {
57  std::ostringstream o; o << id;
58  return create(o.str());
59  }
static ReturnType create(const std::string &id)
Definition: PluginService.h:50

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