24 #include <pybind11/pybind11.h>
30 using namespace pybind11::literals;
36 py::module::import(
"astshim.channel");
38 py::class_<XmlChan, std::shared_ptr<XmlChan>, Channel>
cls(mod,
"XmlChan");
40 cls.def(py::init<Stream &, std::string const &>(),
"stream"_a,
"options"_a =
"");
42 cls.def_property(
"xmlFormat", &XmlChan::getXmlFormat, &XmlChan::setXmlFormat);
43 cls.def_property(
"xmlLength", &XmlChan::getXmlLength, &XmlChan::setXmlLength);
44 cls.def_property(
"xmlPrefix", &XmlChan::getXmlPrefix, &XmlChan::setXmlPrefix);