Gaudi Framework, version v25r1

Home   Generated: Mon Mar 24 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::Factory1< R, A1 > Class Template Reference

Class wrapping the signature for a factory with 1 argument. More...

#include <PluginService.h>

Public Types

typedef R ReturnType
 
typedef A1 Arg1Type
 
typedef R(* FuncType )(Arg1Type)
 

Static Public Member Functions

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

Detailed Description

template<typename R, typename A1>
class Gaudi::PluginService::Factory1< R, A1 >

Class wrapping the signature for a factory with 1 argument.

Definition at line 63 of file PluginService.h.

Member Typedef Documentation

template<typename R , typename A1 >
typedef A1 Gaudi::PluginService::Factory1< R, A1 >::Arg1Type

Definition at line 66 of file PluginService.h.

template<typename R , typename A1 >
typedef R(* Gaudi::PluginService::Factory1< R, A1 >::FuncType)(Arg1Type)

Definition at line 67 of file PluginService.h.

template<typename R , typename A1 >
typedef R Gaudi::PluginService::Factory1< R, A1 >::ReturnType

Definition at line 65 of file PluginService.h.

Member Function Documentation

template<typename R , typename A1 >
static ReturnType Gaudi::PluginService::Factory1< R, A1 >::create ( const std::string &  id,
Arg1Type  a1 
)
inlinestatic

Definition at line 69 of file PluginService.h.

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

Definition at line 76 of file PluginService.h.

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

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

Generated at Mon Mar 24 2014 18:27:52 for Gaudi Framework, version v25r1 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004