| The Gaudi Framework v29r1 (5cd95fa2)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

ObjectFactory.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_DATAOBJECTFACTORY_H
2 #define GAUDIKERNEL_DATAOBJECTFACTORY_H
3
4 #include <Gaudi/PluginService.h>
5
6 class IInterface;
7 class DataObject;
8 class ContainedObject;
9
10 typedef Gaudi::PluginService::Factory<IInterface*, IInterface*> ObjFactory;
11
12 typedef Gaudi::PluginService::Factory<DataObject*> DataObjFactory;
13 typedef Gaudi::PluginService::Factory<ContainedObject*> ContainedObjFactory;
14
15 // Macros to declare component factories
16 #define DECLARE_OBJECT_FACTORY( x ) DECLARE_FACTORY( x, ObjFactory )
17 #define DECLARE_NAMESPACE_OBJECT_FACTORY( n, x ) \
18 using n::x; \
19 DECLARE_FACTORY( x, ObjFactory )
20
21 #define DECLARE_CONTAINEDOBJECT_FACTORY( x ) DECLARE_FACTORY_WITH_ID( x, x::classID(), ContainedObjFactory )
22 #define DECLARE_DATAOBJECT_FACTORY( x ) DECLARE_FACTORY_WITH_ID( x, x::classID(), DataObjFactory )
23
24 #endif // GAUDIKERNEL_OBJECTFactory_H
ContainedObjFactory
Gaudi::PluginService::Factory< ContainedObject * > ContainedObjFactory
Definition: ObjectFactory.h:13
IInterface
Definition of the basic interface.
Definition: IInterface.h:277
PluginService.h
ContainedObject
All classes that their objects may be contained in an LHCb ObjectContainer (e.g.
Definition: ContainedObject.h:31
Gaudi::PluginService::Factory
Class wrapping the signature for a factory with any number of arguments.
Definition: PluginService.h:45
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:29
ObjFactory
Gaudi::PluginService::Factory< IInterface *, IInterface * > ObjFactory
Definition: ObjectFactory.h:8
DataObjFactory
Gaudi::PluginService::Factory< DataObject * > DataObjFactory
Definition: ObjectFactory.h:12