#include #include #include "export.hpp" #include "converters.hpp" namespace { GTNode parent( const GTNode & gt ) { return gt.parent(); } py::list children( const GTNode & gt ) { return iterable_to_pylist(gt.groups()) ; } } void python::common::export_GroupTree(py::module& module) { py::class_(module, "GroupTree") .def( "name", >Node::name) .def( "_parent", &parent, "parent function returning parent of a group") .def( "_children", &children, "children function returning python" " list containing children of a group") ; }