boost-python
How to reinitialise an embedded Python interpreter?
I\'m working on embedding Python in our test suite application. The purpose is to use Python to run several tests scripts to collect data and make a report of tests. Multiple test scripts for one test[详细]
2023-04-13 06:28 分类:问答Creating a boost::python::object from a std::function
How can I construct a boost::python::object from a std::func开发者_如何学编程tion ?Use boost::python::make_function, and provide a signature because the default one doesn\'t handle std::function.[详细]
2023-04-12 18:07 分类:问答(boost.python) Error exposing overloaded operator+(). "TypeError: No to_python (by-value) converter found"
I\'m a newbie in boost.python and i\'m getting this error that I would like to get some help with. As a part of a larger project I\'m writing a wrapper for a vector class that I have. As you will noti[详细]
2023-04-12 01:24 分类:问答returning boost list from exposed class
I exposed a c++ class to python, one of its methods is something like: boost::python::list getList() {[详细]
2023-04-09 02:04 分类:问答Boost Python wrapper for a c++ class that uses Opencv 2.3
I am trying to create a python library from a class which uses opencv 2.3. I want to be able to pass numpy array\'s into the class where they will be converted into cv::Mat\'s processed then converted[详细]
2023-04-06 10:30 分类:问答Saving state of complex, scripted objects
In C++ I have the following two classes that I expose (using Boost) to Python: struct Foo { // Empty }; struct FooContainer {[详细]
2023-04-03 23:02 分类:问答Boost.Python: Module inside module
Using Boost.Python, how can I define a module inside another (or rather, as i开发者_Go百科f it were located in a folder)?How about placing it into a subfolder? seriously, I think this is how Python ma[详细]
2023-04-03 08:48 分类:问答Boost Python - Losing Data across function call
I\'m having a really weird issue in boost python. I\'m focusing on a particular property/method to simplify the example. Here\'s the situation:[详细]
2023-03-31 04:20 分类:问答Python wrapper for UDT C++ library
I want to use the UDT开发者_运维知识库 library in Python, so I need a wrapper. I found this one: pyudt, but I dont know exactly how to use this to send files from a peer to peer. Can anybody point me[详细]
2023-03-31 03:02 分类:问答How to compare python objects which wrap pointers to existing C++ structures?
I have a class method that returns a pointer to an inner data structure (where the data structure is guaranteed to outlive its use in python code). It looks like:[详细]
2023-03-30 02:26 分类:问答