CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWItemAccessorRegistry.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWItemAccessorRegistry_h
2 #define Fireworks_Core_FWItemAccessorRegistry_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWItemAccessorRegistry
7 //
18 //
19 // Original Author: Giulio Eulisse
20 // Created: Thu Feb 18 00:00:00 EDT 2010
21 // $Id: FWItemAccessorRegistry.h,v 1.2 2010/03/01 09:43:01 eulisse Exp $
22 //
23 
24 // system include files
25 
26 // user include files
29 
30 // forward declarations
31 
32 class FWItemAccessorBase;
33 class TClass;
34 
35 typedef FWItemAccessorBase* (IAccessorCreator)(const TClass *);
37 
38 #define REGISTER_FWITEMACCESSOR(_name_,_type_,_purpose_) \
39  DEFINE_FWITEMACCESSOR_METHODS(_name_,_type_,_purpose_); \
40  DEFINE_EDM_PLUGIN(FWItemAccessorRegistry,_name_,_name_::classRegisterTypeName()+"@"+_name_::classPurpose()+"@" # _name_)
41 
42 #define REGISTER_TEMPLATE_FWITEMACCESSOR(_name_,_type_,_purpose_) \
43  DEFINE_TEMPLATE_FWITEMACCESSOR_METHODS(_name_,_type_,_purpose_); \
44  DEFINE_EDM_PLUGIN(FWItemAccessorRegistry,_name_,_name_::classRegisterTypeName()+"@"+_name_::classPurpose()+"@" # _name_)
45 
46 #endif
edmplugin::PluginFactory< IAccessorCreator > FWItemAccessorRegistry
FWItemAccessorBase *( IAccessorCreator)(const TClass *)