/* * _Parameter.cpp * * Created on: 2013-2-28 * Author: fasiondog */ #include "_Parameter.h" using namespace boost::python; using namespace hku; void export_Parameter() { to_python_converter(); class_("Parameter") .def(self_ns::str(self)) .def("__setitem__", &Parameter::set) .def("__getitem__", &Parameter::get) .def("getNameList", &Parameter::getNameList) .def("have", &Parameter::have) .def("set", &Parameter::set) .def("get", &Parameter::get) .def("getNameList", &Parameter::getNameList) .def("getValueList", &Parameter::getValueList) .def("getNameValueList", &Parameter::getNameValueList) #if HKU_PYTHON_SUPPORT_PICKLE .def_pickle(normal_pickle_suite()) #endif ; }