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