Java和c++互相回调的例子

  • B6_423330
    了解作者
  • 37.4KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-13 17:58
    上传日期
这是一个c++和java 互相回调的实际例子, swig和jni环境需要自行配置,只包含代码工程,不包含swig 和jni环境, 因为太大了
cts.rar
内容介绍
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 4.0.0 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.cts; public class ctsJNI { public final static native long new_CTSStringVector__SWIG_0(); public final static native long new_CTSStringVector__SWIG_1(long jarg1); public final static native long CTSStringVector_capacity(long jarg1); public final static native void CTSStringVector_reserve(long jarg1, long jarg2); public final static native boolean CTSStringVector_isEmpty(long jarg1); public final static native void CTSStringVector_clear(long jarg1); public final static native long new_CTSStringVector__SWIG_2(int jarg1, String jarg2); public final static native int CTSStringVector_doSize(long jarg1); public final static native void CTSStringVector_doAdd__SWIG_0(long jarg1, String jarg2); public final static native void CTSStringVector_doAdd__SWIG_1(long jarg1, int jarg2, String jarg3); public final static native String CTSStringVector_doRemove(long jarg1, int jarg2); public final static native String CTSStringVector_doGet(long jarg1, int jarg2); public final static native String CTSStringVector_doSet(long jarg1, int jarg2, String jarg3); public final static native void CTSStringVector_doRemoveRange(long jarg1, int jarg2, int jarg3); public final static native void delete_CTSStringVector(long jarg1); public final static native void ClacData_m_strData_set(long jarg1, String jarg2); public final static native String ClacData_m_strData_get(long jarg1); public final static native void ClacData_nID_set(long jarg1, int jarg2); public final static native int ClacData_nID_get(long jarg1); public final static native void ClacData_m_vectorstring_set(long jarg1, long jarg2); public final static native long ClacData_m_vectorstring_get(long jarg1); public final static native long new_ClacData(); public final static native void delete_ClacData(long jarg1); public final static native void delete_ClacBase(long jarg1); public final static native int ClacBase_OnClac(long jarg1, long jarg2); public final static native int ClacBase_OnClacSwigExplicitClacBase(long jarg1, long jarg2); public final static native int ClacBase_OnClacInt(long jarg1, int jarg2); public final static native int ClacBase_OnClacIntSwigExplicitClacBase(long jarg1, int jarg2); public final static native long new_ClacBase(); public final static native void ClacBase_director_connect(ClacBase obj, long cptr, boolean mem_own, boolean weak_global); public final static native void ClacBase_change_ownership(ClacBase obj, long cptr, boolean take_or_release); public final static native long new_CjjClac(); public final static native void delete_CjjClac(long jarg1); public final static native int CjjClac_OnClac(long jarg1, long jarg2); public final static native int CjjClac_OnClacInt(long jarg1, int jarg2); public final static native long new_ClacControl(); public final static native void delete_ClacControl(long jarg1); public final static native int ClacControl_ExeControlClacData(long jarg1, long jarg2, long jarg3); public final static native int ClacControl_ExeControlClacInt__SWIG_0(long jarg1, long jarg2, int jarg3); public final static native int ClacControl_ExeControlClacInt__SWIG_1(long jarg1, int jarg2, int jarg3); public final static native long CjjClac_SWIGUpcast(long jarg1); public static int SwigDirector_ClacBase_OnClac(ClacBase jself, long Data) { return jself.OnClac(new ClacData(Data, false)); } public static int SwigDirector_ClacBase_OnClacInt(ClacBase jself, int nInt) { return jself.OnClacInt(nInt); } private final static native void swig_module_init(); static { swig_module_init(); } }
评论
    相关推荐