8 #ifndef PARAM_PYBIND_HH_ 9 #define PARAM_PYBIND_HH_ 23 std::list< std::string > all_members;
25 all_members.push_back(
"to_param" );
30 "Convert native python types to a param structure." );
33 all_members.push_back(
"Param" );
35 .def( pybind11::init< >() )
36 .def( pybind11::init< scarab::param_value >() )
50 "returns Param object as a ParamArray" )
54 "returns Param object as ParamNode" )
58 "returns Param object as ParamValue" )
63 "recursively converts param object to native python data structure" )
virtual bool is_value() const
pybind11::object to_python(const scarab::param &a_param, bool underscore_keys=false)
std::list< std::string > export_param(pybind11::module &mod)
Wrapper for Python extension modules.
virtual bool is_null() const
virtual bool is_array() const
scarab::param_ptr_t to_param(const pybind11::object &an_object, bool hyphenate_keys=false)
virtual bool is_node() const
virtual std::string to_string() const
bool typename Extra class_ & def(const char *name_, Func &&f, const Extra &... extra)