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 fc{
25 : namespace python {
26 : extern void register_file_conversion(py::module &);
27 : }
28 : }
29 :
30 : namespace python {
31 :
32 0 : PYBIND11_MODULE(_daq_rawdatautils_py, m) {
33 :
34 0 : m.doc() = "c++ implementation of the dunedaq rawdatautils modules"; // optional module docstring
35 :
36 0 : py::module_ unpack_module = m.def_submodule("unpack");
37 0 : unpack::python::register_unpack(unpack_module);
38 :
39 0 : py::module_ fc_module = m.def_submodule("file_conversion");
40 0 : fc::python::register_file_conversion(fc_module);
41 :
42 0 : }
43 :
44 : } // namespace python
45 : } // namespace rawdatautils
46 : } // namespace dunedaq
|