connect a C++ API to Java with SWIG

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.


- 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.

Skills: C++ Programming, Java

See more: synchronous programming, strings in c programming, scope programming, python programming uses, python programming environment, python programming classes, programming with python, programming exercises python, programming exercises java, java programming test, java programming environment, java programming classes, java how to programming, how to do programming, find a project to do in programming, c programming strings, c# programming scope, c programming exercises, c programming classes, cplusplus strings, cplusplus set, code in java programming, asynchronous programming, an approach to, python to java

About the Employer:
( 37 reviews ) Vercelli, Italy

Project ID: #5039675

2 freelancers are bidding on average $236 for this job


Hi! I am professional C/C++/Java/C#/.NET programmer. I can do this project with highest quality. Best regards, Szymszteinsl

$250 USD in 3 days
(22 Reviews)

Let me do this ************************************************************************************************************************************************************

$222 USD in 3 days
(3 Reviews)