CMS 3D CMS Logo

Macros
register_dataproxybuilder_macro.h File Reference
#include <cstdlib>
#include "boost/lexical_cast.hpp"
#include "FWCore/Reflection/interface/TypeWithDict.h"

Go to the source code of this file.

Macros

#define CONCATENATE(a, b)   CONCATENATE_HIDDEN(a, b)
 
#define CONCATENATE_HIDDEN(a, b)   a##b
 
#define DEFINE_PROXYBUILDER_METHODS(_builder_, _type_, _purpose_, _view_)
 
#define REGISTER_PROXYBUILDER_METHODS()
 

Macro Definition Documentation

◆ CONCATENATE

#define CONCATENATE (   a,
  b 
)    CONCATENATE_HIDDEN(a, b)

Definition at line 38 of file register_dataproxybuilder_macro.h.

◆ CONCATENATE_HIDDEN

#define CONCATENATE_HIDDEN (   a,
  b 
)    a##b

Definition at line 37 of file register_dataproxybuilder_macro.h.

◆ DEFINE_PROXYBUILDER_METHODS

#define DEFINE_PROXYBUILDER_METHODS (   _builder_,
  _type_,
  _purpose_,
  _view_ 
)
Value:
const std::string& _builder_::classTypeName() { \
static std::string s_type = edm::TypeWithDict(typeid(_type_)).name(); \
return s_type; \
} \
const std::string& _builder_::classRegisterTypeName() { \
static std::string s_type(typeid(_type_).name()); \
return s_type; \
} \
const std::string& _builder_::classView() { \
static std::string s_view(boost::lexical_cast<std::string>(_view_)); \
return s_view; \
} \
const std::string& _builder_::classPurpose() { \
static std::string s_purpose(_purpose_); \
return s_purpose; \
} \
enum { CONCATENATE(dummy_proxybuilder_methods_, __LINE__) }

Definition at line 40 of file register_dataproxybuilder_macro.h.

◆ REGISTER_PROXYBUILDER_METHODS

#define REGISTER_PROXYBUILDER_METHODS ( )
Value:
const std::string& typeName() const { return classTypeName(); } \
const std::string& view() const { return classView(); } \
const std::string& purpose() const { return classPurpose(); } \
static const std::string& classRegisterTypeName(); \
static const std::string& classTypeName(); \
static const std::string& classPurpose(); \
static const std::string& classView()

Description: Adds needed methods to a ProxyBuilder

Usage: <usage>

Definition at line 28 of file register_dataproxybuilder_macro.h.

hgcalPlots.purpose
purpose
Definition: hgcalPlots.py:2049
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
dqmiodumpindices.typeName
typeName
Definition: dqmiodumpindices.py:33
edm::TypeWithDict
Definition: TypeWithDict.h:38
CONCATENATE
#define CONCATENATE(a, b)
Definition: register_dataproxybuilder_macro.h:38
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
edm::TypeWithDict::name
std::string name() const
Definition: TypeWithDict.cc:456