| 11 | namespace py = pybind11; |
| 12 | |
| 13 | void BindReconstructionManager(py::module& m) { |
| 14 | py::classh<ReconstructionManager>(m, "ReconstructionManager") |
| 15 | .def(py::init<>()) |
| 16 | .def("size", &ReconstructionManager::Size) |
| 17 | .def("get", |
| 18 | py::overload_cast<size_t>(&ReconstructionManager::Get), |
| 19 | "idx"_a) |
| 20 | .def("add", &ReconstructionManager::Add) |
| 21 | .def("delete", &ReconstructionManager::Delete, "idx"_a) |
| 22 | .def("clear", &ReconstructionManager::Clear) |
| 23 | .def("read", &ReconstructionManager::Read, "path"_a) |
| 24 | .def("write", &ReconstructionManager::Write, "path"_a); |
| 25 | } |