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::daqdataformats::python {
17 :
18 : void
19 0 : register_component_request(py::module& m)
20 : {
21 :
22 0 : py::class_<ComponentRequest>(m, "ComponentRequest")
23 0 : .def(py::init())
24 0 : .def(py::init<SourceID const&, timestamp_t const&, timestamp_t const&>())
25 0 : .def_readonly_static("s_component_request_version", &ComponentRequest::s_component_request_version)
26 0 : .def_readonly("unused", &ComponentRequest::unused)
27 0 : .def_readonly("version", &ComponentRequest::version)
28 0 : .def_readonly("window_begin", &ComponentRequest::window_begin)
29 0 : .def_readonly("window_end", &ComponentRequest::window_end);
30 0 : }
31 :
32 : } // namespace dunedaq::daqdataformats::python
|