Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
PythonParameterSet
src
initializeModule.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: PythonParameterSet
4
// Class : initializeModule
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author: Chris Jones
10
// Created: Tue Jan 11 11:05:58 CST 2011
11
// $Id: initializeModule.cc,v 1.1 2011/01/11 19:25:55 chrjones Exp $
12
//
13
14
// system include files
15
16
// user include files
17
#include "
FWCore/PythonParameterSet/src/initializeModule.h
"
18
#include "
FWCore/PythonParameterSet/src/PythonModule.h
"
19
20
21
//
22
// constants, enums and typedefs
23
//
24
static
bool
s_initialized
=
false
;
25
26
namespace
edm {
27
namespace
python {
28
void
initializeModule
() {
29
char
*libFWCoreParameterSet =
const_cast<
char
*
>
(
"libFWCoreParameterSet"
);
30
PyImport_AppendInittab(libFWCoreParameterSet, &initlibFWCoreParameterSet );
31
Py_Initialize();
32
if
(!
s_initialized
)
33
{
34
PyImport_ImportModule(libFWCoreParameterSet);
35
s_initialized
=
true
;
36
}
37
38
}
39
}
40
}
PythonModule.h
initializeModule.h
edm::python::initializeModule
void initializeModule()
Definition:
initializeModule.cc:28
s_initialized
static bool s_initialized
Definition:
initializeModule.cc:24
Generated for CMSSW Reference Manual by
1.8.5