Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Utilities
RFIOAdaptor
plugins
RFIODPMPlugin.cc
Go to the documentation of this file.
1
#include "
Utilities/RFIOAdaptor/interface/RFIOPluginFactory.h
"
2
#include <dlfcn.h>
3
namespace
{
4
// dlopen libdpm on startup, so that symbols get resolved even if we don't
5
// explicitly link against it. This way we do not need to have
6
// libdpm available at buildtime.
7
struct
Dummy
8
{
9
Dummy()
10
{
11
#ifdef __APPLE__
12
dlopen(
"libdpm.dylib"
, RTLD_NOW|RTLD_GLOBAL);
13
#else
14
dlopen(
"libdpm.so"
, RTLD_NOW|RTLD_GLOBAL);
15
#endif
16
}
17
};
18
static
Dummy foo;
19
}
20
DEFINE_EDM_PLUGIN
(
RFIOPluginFactory
,
RFIODummyFile
,
"dpm"
);
edmplugin::PluginFactory
Definition:
PluginFactory.h:31
RFIODummyFile
Definition:
RFIOPluginFactory.h:6
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:207
RFIOPluginFactory.h
Generated for CMSSW Reference Manual by
1.8.5