tool to generate C++ wrapper over java class
Posted
by
Vardhan Varma
on Stack Overflow
See other posts from Stack Overflow
or by Vardhan Varma
Published on 2010-12-27T04:19:09Z
Indexed on
2010/12/27
4:53 UTC
Read the original article
Hit count: 213
From what I understand, SWIG is to wrap C++/C to make it appear in Java, and javah is to implement certain java functions in C++ ( aka native functions ).
Is there a tool which can create a C++ wrapper over a java class, so that the caller. of this c++
wrapper doesn't have to worry about java, for example
Input Java is
class hw { public void hi() { System.out.println("Hello World"); } }
Tools outputs hw.hh ( and some. c++ files ), which can be used as:
hw *h = new hw(/*JEnv */ env);
h->hi();
Is there a tool available which can do this ?
© Stack Overflow or respective owner