DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
tpglibs
pybindsrc
module.cpp
Go to the documentation of this file.
1
8
9
#include "
registrators.hpp
"
10
11
#include "pybind11/pybind11.h"
12
#include "pybind11/stl.h"
13
14
namespace
py = pybind11;
15
16
namespace
dunedaq::tpglibs::python
{
17
18
PYBIND11_MODULE
(_daq_tpglibs_py, m)
19
{
20
21
m.doc() =
"C++ implementation of the tpglibs modules"
;
22
23
// You'd want to change renameme to the name of a function which
24
// you'd like to have a python binding to
25
26
register_renameme
(m);
27
28
// Add attributes signaling if state monitoring is enabled, to be consumed by
29
// integration test tpg_state_collection_test
30
31
#ifdef TPGLIBS_ENABLE_STATE_MONITORING
32
m.attr(
"state_monitoring_enabled"
) =
true
;
33
#else
34
m.attr(
"state_monitoring_enabled"
) =
false
;
35
#endif
36
}
37
38
}
// namespace dunedaq::tpglibs::python
dunedaq::tpglibs::python
Definition
module.cpp:16
dunedaq::tpglibs::python::register_renameme
void register_renameme(py::module &m)
Definition
pythonbindingsrenameme.cpp:17
dunedaq::tpglibs::python::PYBIND11_MODULE
PYBIND11_MODULE(_daq_tpglibs_py, m)
Definition
module.cpp:18
registrators.hpp
Generated on
for DUNE-DAQ by
1.18.0