24 #include <pybind11/pybind11.h>
32 using namespace pybind11::literals;
38 py::module::import(
"astshim.object");
40 py::class_<Channel, std::shared_ptr<Channel>, Object>
cls(mod,
"Channel");
42 cls.def(py::init<Stream &, std::string const &>(),
"stream"_a,
"options"_a =
"");
44 cls.def_property(
"comment", &Channel::getComment, &Channel::setComment);
45 cls.def_property(
"full", &Channel::getFull, &Channel::setFull);
46 cls.def_property(
"indent", &Channel::getIndent, &Channel::setIndent);
47 cls.def_property(
"reportLevel", &Channel::getReportLevel, &Channel::setReportLevel);
48 cls.def_property(
"skip", &Channel::getSkip, &Channel::setSkip);
49 cls.def_property(
"strict", &Channel::getStrict, &Channel::setStrict);
51 cls.def(
"copy", &Channel::copy);
52 cls.def(
"read", &Channel::read);
54 cls.def(
"warnings", &Channel::warnings);