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 <pybind11/pybind11.h>
10 : #include <pybind11/stl.h>
11 :
12 : namespace py = pybind11;
13 :
14 : namespace dunedaq {
15 : namespace rawdatautils {
16 :
17 : namespace unpack {
18 : namespace python {
19 : extern void
20 : register_unpack(py::module&);
21 : }
22 : }
23 :
24 : namespace python {
25 :
26 0 : PYBIND11_MODULE(_daq_rawdatautils_py, m)
27 : {
28 :
29 0 : m.doc() = "c++ implementation of the dunedaq rawdatautils modules"; // optional module docstring
30 :
31 0 : py::module_ unpack_module = m.def_submodule("unpack");
32 0 : unpack::python::register_unpack(unpack_module);
33 0 : }
34 :
35 : } // namespace python
36 : } // namespace rawdatautils
37 : } // namespace dunedaq
|