IMO, the easiest route would be to wrap the member functions :

namespace {

std::string video_getDeviceName_wrapped(int deviceID)
{
  char* name = videoInput::getDeviceName(devideID);
  std::string result(name);
  // free 'name' memory if needed
  return result;
}

}

and then ::

using namespace boost::python;
BOOST_PYTHON_MODULE(pyVideoInput)
{
   class_<videoInput>("videoInput")
       .def("getDeviceName", &video_getDeviceName_wrapped)
       .staticmethod("getDeviceName")
       ;
}

and you should be done.
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to