23 #include "pybind11/pybind11.h"
29 using namespace pybind11::literals;
37 py::class_<PAFWriter>
cls(mod,
"PAFWriter");
39 cls.def(py::init<>());
40 cls.def(py::init<const std::string&>());
42 cls.def(
"writeBools", &PAFWriter::writeBools);
43 cls.def(
"writeInts", &PAFWriter::writeInts);
44 cls.def(
"writeDoubles", &PAFWriter::writeDoubles);
45 cls.def(
"writeStrings", &PAFWriter::writeStrings);
46 cls.def(
"writePolicies", &PAFWriter::writePolicies);
47 cls.def(
"writeFiles", &PAFWriter::writeFiles);
51 "policy"_a,
"doDecl"_a =
false);
52 cls.def(
"close", (
void (
PAFWriter::*)()) & PAFWriter::close);