Go to the documentation of this file.00001 #ifndef Fireworks_Core_FWItemAccessorRegistry_h
00002 #define Fireworks_Core_FWItemAccessorRegistry_h
00003
00004
00005
00006
00007
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "Fireworks/Core/interface/register_itemaccessorbase_macro.h"
00028 #include "FWCore/PluginManager/interface/PluginFactory.h"
00029
00030
00031
00032 class FWItemAccessorBase;
00033 class TClass;
00034
00035 typedef FWItemAccessorBase* (IAccessorCreator)(const TClass *);
00036 typedef edmplugin::PluginFactory<IAccessorCreator> FWItemAccessorRegistry;
00037
00038 #define REGISTER_FWITEMACCESSOR(_name_,_type_,_purpose_) \
00039 DEFINE_FWITEMACCESSOR_METHODS(_name_,_type_,_purpose_); \
00040 DEFINE_EDM_PLUGIN(FWItemAccessorRegistry,_name_,_name_::classRegisterTypeName()+"@"+_name_::classPurpose()+"@" # _name_)
00041
00042 #define REGISTER_TEMPLATE_FWITEMACCESSOR(_name_,_type_,_purpose_) \
00043 DEFINE_TEMPLATE_FWITEMACCESSOR_METHODS(_name_,_type_,_purpose_); \
00044 DEFINE_EDM_PLUGIN(FWItemAccessorRegistry,_name_,_name_::classRegisterTypeName()+"@"+_name_::classPurpose()+"@" # _name_)
00045
00046 #endif