Skip to content

Repository files navigation

java4cpp-annotations

Annotations classes for java4cpp project.

Gets full informations directly on the java4cpp-core page project.

Use the java4cpp annotations for controlling the mappings between the java classes and C++ proxies directly in the source code. It is also possible to define the mappings with some externals XML mappings file.

Overview

Consider this annotated java class :

packagemy.package;
@Java4CppclassMyJavaClass {
publicstaticStringmyStaticField;
@Java4CppNoWrappepublicstaticStringunexportedField;
publicMyJavaClass() {
}
@Java4CppNoWrappepublicMyJavaClass(doublearg) {
}
@Java4CppWrappe("cppMethod")
publicvoidmyMethod(booleanarg) {
}
}

java4cpp will generate the following C++ proxy (of course the final result may vary according to the XML templates configuration)

namespacemy {
namespacepackage {
classMyJavaClass
{
public:static java::lang::String getMyStaticField();
MyJavaClass();
virtual~MyJavaClass();
voidcppMethod(bool arg1);
};
}
}

About

Annotations classes for java4cpp

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages