Line data Source code
1 : /**
2 : * @file module.cpp
3 : *
4 : * This is part of the DUNE DAQ Software Suite, copyright 2020.
5 : * Licensing/copyright details are in the COPYING file that you should have
6 : * received with this code.
7 : */
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 0 : PYBIND11_MODULE(_daq_tpglibs_py, m)
19 : {
20 :
21 0 : 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 0 : 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 0 : m.attr("state_monitoring_enabled") = false;
35 : #endif
36 0 : }
37 :
38 : } // namespace dunedaq::tpglibs::python
|