9 #ifndef KTPROCESSORTOOLBOXPY_HH_ 10 #define KTPROCESSORTOOLBOXPY_HH_ 36 using namespace Nymph;
37 using namespace boost::python;
38 class_<KTProcessorToolbox, boost::noncopyable>(
"KTProcessorToolbox", init<std::string>())
41 .def(
"GetProcessor",
GetProcessor_wrap, return_value_policy<reference_existing_object>(),
"Get a pointer to a processor in the toolbox")
42 .def(
"ConfigureProcessors",
ConfigureProcessors_JsonStr,
"Configure processors from a json dictionary. Top-level keys are processor names, values are dictionaries with their configurations")
43 .def(
"AddProcessor",
AddProcessor_Ref,
"add a processor to the toolbox, toolbox takes ownership")
44 .def(
"AddProcessor",
AddProcessor_TypeStr,
"add a processor to the toolbox, toolbox takes ownership")
48 .def(
"ReleaseProcessor", &
KTProcessorToolbox::ReleaseProcessor, return_value_policy<reference_existing_object>(),
"Remove a processor from the toolbox and return it to the user, ownership is passed")