We have a C++ API with 3 classes, we have successfully connected to Python using SWIG, this works fine. The API only uses POD and std::strings. When complex objects have to be passed, we serialize them with JSON so it should be straightforward to encode/decode them in Java. Attached you will find the header files and a Python test which exercises the methods we are interested in (about 20).
Now we need to connect it with Java, and translate the Python test to an equivalent Java test.
There is an issue with callbacks: 3 methods exist in a synchronous and in an asynchronous variant, for the asynchronous mode they expose an interface to set up call backs to handle some events. We haven't been able to make these work with Python yet. If you have any idea how to do it in Java, describe your proposed approach and include it in the scope of your bid. If not, you can just connect the synchronous variants and forget about the callbacks.
Deliverables:
- SWIG input file (should be very compact and similar to the one for Python)
- Java test code
- build instructions for your preferred development environment
Our preferred development environment is Debian wheezy, and the buildsystem we use is bjam.
On project award, we will supply the implementation so that you can test etc.
Let me do this
************************************************************************************************************************************************************