icoudot.java4cpp.java4cpp-templates.1.0.2.source-code.list-templates.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <templates xmlns="http://java4cpp.loicoudot.github.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java4cpp.loicoudot.github.com http://raw.github.com/loicoudot/java4cpp-core/master/templates.xsd"> <datatypes> <templates> <template class="java.util.List"> <sourceTemplates> <sourceTemplate>list-template.ftl</sourceTemplate> </sourceTemplates> <needAnalyzing>false</needAnalyzing> <cppType><#if class.parameters??>const java4cpp::list<${class.parameters[0].type.cppReturnType} >&<#else>const java4cpp::list<java::lang::Object>&</#if></cppType> <cppReturnType><#if class.parameters??>java4cpp::list<${class.parameters[0].type.cppReturnType} ><#else>java4cpp::list<java::lang::Object></#if></cppReturnType> <dependencies><#if class.parameters??>${class.type.addIncludes("\"java4cpp_listOf"+class.parameters[0].type.cppShortName+".h\"")}${class.type.addIncludes(class.parameters[0].type.includes)}${class.type.addDependencies(class.parameters[0].type.dependencies)} <#else>${class.type.addIncludes("\"java4cpp_listOfObject.h\"")}${class.type.addDependencies("java.lang.Object")}</#if></dependencies> <functions> <function name="java2cpp"><#if class.parameters??>java4cpp::list<${class.parameters[0].type.cppReturnType} ><#else>java4cpp::list<java::lang::Object></#if> ${arg2}(${arg1}); javaEnv->DeleteLocalRef(${arg1}); </function> <function name="cpp2java">${class.type.jniSignature} ${arg2} = ${arg1}.getJavaObject(); </function> </functions> </template> </templates> </datatypes> <copyFiles> <copyFile>java4cpp_list.h</copyFile> </copyFiles> </templates>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy