CMS 3D CMS Logo

Macros
registration_macros.h File Reference
#include "CondCore/ESSources/interface/ProductResolverFactory.h"
#include "CondCore/ESSources/interface/ProductResolver.h"
#include "CondFormats/SerializationHelper/interface/SerializationHelperFactory.h"

Go to the source code of this file.

Macros

#define INSTANTIATE_RESOLVER(record_, type_)   template class ProductResolverWrapper<record_, type_>;
 
#define INSTANTIATE_RESOLVER_INIT(record_, type_, initializer_)   template class ProductResolverWrapper<record_, type_, initializer_>;
 
#define ONLY_REGISTER_PLUGIN(record_, type_)
 
#define ONLY_REGISTER_PLUGIN_INIT(record_, type_, initializer_)
 
#define REGISTER_KEYLIST_PLUGIN(record_, type_, source_)
 
#define REGISTER_PLUGIN(record_, type_)
 
#define REGISTER_PLUGIN_INIT(record_, type_, initializer_)
 
#define REGISTER_PLUGIN_NO_SERIAL(record_, type_)
 
#define REGISTER_PLUGIN_NO_SERIAL_INIT(record_, type_, initializer_)
 

Macro Definition Documentation

◆ INSTANTIATE_RESOLVER

#define INSTANTIATE_RESOLVER (   record_,
  type_ 
)    template class ProductResolverWrapper<record_, type_>;

Definition at line 31 of file registration_macros.h.

◆ INSTANTIATE_RESOLVER_INIT

#define INSTANTIATE_RESOLVER_INIT (   record_,
  type_,
  initializer_ 
)    template class ProductResolverWrapper<record_, type_, initializer_>;

Definition at line 46 of file registration_macros.h.

◆ ONLY_REGISTER_PLUGIN

#define ONLY_REGISTER_PLUGIN (   record_,
  type_ 
)
Value:
typedef ProductResolverWrapper<record_, type_> EDM_PLUGIN_SYM(ProductResolver, __LINE__); \
DEFINE_EDM_PLUGIN2(cond::ProductResolverFactory, EDM_PLUGIN_SYM(ProductResolver, __LINE__), #record_ "@NewProxy")
#define EDM_PLUGIN_SYM(x, y)

Definition at line 33 of file registration_macros.h.

◆ ONLY_REGISTER_PLUGIN_INIT

#define ONLY_REGISTER_PLUGIN_INIT (   record_,
  type_,
  initializer_ 
)
Value:
DEFINE_EDM_PLUGIN2(cond::ProductResolverFactory, EDM_PLUGIN_SYM(ProductResolver, __LINE__), #record_ "@NewProxy")
#define EDM_PLUGIN_SYM(x, y)

Definition at line 49 of file registration_macros.h.

◆ REGISTER_KEYLIST_PLUGIN

#define REGISTER_KEYLIST_PLUGIN (   record_,
  type_,
  source_ 
)
Value:
struct EDM_PLUGIN_SYM(ProductResolver, record_) : public ProductResolverWrapper<record_, type_> { \
EDM_PLUGIN_SYM(ProductResolver, record_)() : ProductResolverWrapper<record_, type_>(#source_) {} \
}; \
DEFINE_EDM_PLUGIN(cond::ProductResolverFactory, EDM_PLUGIN_SYM(ProductResolver, record_), #record_ "@NewProxy")
#define EDM_PLUGIN_SYM(x, y)

Definition at line 63 of file registration_macros.h.

◆ REGISTER_PLUGIN

#define REGISTER_PLUGIN (   record_,
  type_ 
)
Value:
INSTANTIATE_RESOLVER(record_, type_) \
DEFINE_COND_SERIAL_REGISTER_PLUGIN(type_); \
ONLY_REGISTER_PLUGIN(record_, type_)
#define INSTANTIATE_RESOLVER(record_, type_)

Definition at line 37 of file registration_macros.h.

◆ REGISTER_PLUGIN_INIT

#define REGISTER_PLUGIN_INIT (   record_,
  type_,
  initializer_ 
)
Value:
INSTANTIATE_RESOLVER_INIT(record_, type_, initializer_) \
DEFINE_COND_SERIAL_REGISTER_PLUGIN_INIT(type_, initializer_); \
ONLY_REGISTER_PLUGIN_INIT(record_, type_, initializer_)
#define INSTANTIATE_RESOLVER_INIT(record_, type_, initializer_)

Definition at line 53 of file registration_macros.h.

◆ REGISTER_PLUGIN_NO_SERIAL

#define REGISTER_PLUGIN_NO_SERIAL (   record_,
  type_ 
)
Value:
INSTANTIATE_RESOLVER(record_, type_) \
ONLY_REGISTER_PLUGIN(record_, type_)
#define INSTANTIATE_RESOLVER(record_, type_)

Definition at line 42 of file registration_macros.h.

◆ REGISTER_PLUGIN_NO_SERIAL_INIT

#define REGISTER_PLUGIN_NO_SERIAL_INIT (   record_,
  type_,
  initializer_ 
)
Value:
INSTANTIATE_RESOLVER_INIT(record_, type_, initializer_) \
ONLY_REGISTER_PLUGIN_INIT(record_, type_, initializer_)
#define INSTANTIATE_RESOLVER_INIT(record_, type_, initializer_)

Definition at line 58 of file registration_macros.h.