Line data Source code
1 : /**
2 : * @file omponent_request.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 "daqdataformats/ComponentRequest.hpp"
10 :
11 : #include <pybind11/pybind11.h>
12 : #include <pybind11/stl.h>
13 :
14 : namespace py = pybind11;
15 :
16 : namespace dunedaq {
17 : namespace daqdataformats {
18 : namespace python {
19 :
20 : void
21 0 : register_component_request(py::module& m)
22 : {
23 :
24 0 : py::class_<ComponentRequest>(m, "ComponentRequest")
25 0 : .def(py::init())
26 0 : .def(py::init<SourceID const&, timestamp_t const&, timestamp_t const&>())
27 0 : .def_readonly_static("s_component_request_version", &ComponentRequest::s_component_request_version)
28 0 : .def_readonly("unused", &ComponentRequest::unused)
29 0 : .def_readonly("version", &ComponentRequest::version)
30 0 : .def_readonly("window_begin", &ComponentRequest::window_begin)
31 0 : .def_readonly("window_end", &ComponentRequest::window_end);
32 0 : }
33 :
34 : } // namespace python
35 : } // namespace daqdataformats
36 : } // namespace dunedaq
|