Belle II Software
prerelease-10-00-00a
RegisterPythonModule.h
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
9
#pragma once
10
11
namespace
Belle2
{
21
class
BoostPythonModuleProxy
{
22
public
:
24
BoostPythonModuleProxy
(
const
char
* name, PyObject * (*initFunc)(),
bool
auto_import =
false
);
25
};
26
36
#define REGISTER_PYTHON_MODULE(moduleName) Belle2::BoostPythonModuleProxy boostPythonModuleProxy##moduleName(#moduleName, PyInit_##moduleName);
37
74
#define REGISTER_PYTHON_MODULE_AUTOIMPORT(moduleName) Belle2::BoostPythonModuleProxy boostPythonModuleProxy##moduleName(#moduleName, PyInit_##moduleName, true);
76
}
Belle2::BoostPythonModuleProxy::BoostPythonModuleProxy
BoostPythonModuleProxy(const char *name, PyObject *(*initFunc)(), bool auto_import=false)
Don't construct this object yourself, use the REGISTER_PYTHON_MODULE macro instead.
Definition
RegisterPythonModule.cc:18
Belle2
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
framework
utilities
include
RegisterPythonModule.h
Generated on Wed Jul 2 2025 03:31:02 for Belle II Software by
1.13.2