| # Gaudi Framework, version v21r9 |

Home |  | Generated: 3 May 2010

# ObjectFactory.h

Go to the documentation of this file.

    00001 // $Header: /tmp/svngaudi/tmp.jEpFh25751/Gaudi/GaudiKernel/GaudiKernel/ObjectFactory.h,v 1.10 2006/12/06 17:18:03 mato Exp $
    00002 #ifndef GAUDIKERNEL_DATAOBJECTFACTORY_H
    00003 #define GAUDIKERNEL_DATAOBJECTFACTORY_H
    00004
    00005 #include "Reflex/PluginService.h"
    00006 // Macros to declare component factories
    00007 #define DECLARE_OBJECT_FACTORY(x)              PLUGINSVC_FACTORY(x,IInterface*(IInterface*))
    00008 #define DECLARE_NAMESPACE_OBJECT_FACTORY(n,x)  using n::x; PLUGINSVC_FACTORY(x,IInterface*(IInterface*))
    00009
    00010 #define DECLARE_CONTAINEDOBJECT_FACTORY( x )   PLUGINSVC_FACTORY_WITH_ID(x,x::classID(),ContainedObject*(void))
    00011 #define DECLARE_DATAOBJECT_FACTORY( x )        PLUGINSVC_FACTORY_WITH_ID(x,x::classID(),DataObject*(void))
    00012
    00013 #define DECLARE_OBJECT(x)       /* dummy */
    00014 #define DECLARE_DATAOBJECT(x)   /* dummy */
    00015 #define DECLARE_NAMESPACE_OBJECT(n,x)      /* dummy */
    00016 #define DECLARE_NAMESPACE_DATAOBJECT(n,x)  /* dummy */
    00017
    00018 #endif    // GAUDIKERNEL_OBJECTFactory_H