本文整理汇总了C++中java::TrivialClass::Find方法的典型用法代码示例。如果您正苦于以下问题:C++ TrivialClass::Find方法的具体用法?C++ TrivialClass::Find怎么用?C++ TrivialClass::Find使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java::TrivialClass
的用法示例。
在下文中一共展示了TrivialClass::Find方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
VoltageDevice::Initialise(JNIEnv *env)
{
voltage_class.Find(env, "org/xcsoar/GlueVoltage");
voltage_ctor = env->GetMethodID(voltage_class, "<init>",
"(Lorg/xcsoar/IOIOConnectionHolder;ILorg/xcsoar/Voltage$Listener;)V");
close_method = env->GetMethodID(voltage_class, "close", "()V");
}
示例2:
void
NunchuckDevice::Initialise(JNIEnv *env)
{
nunchuck_class.Find(env, "org/xcsoar/GlueNunchuck");
nunchuck_ctor = env->GetMethodID(nunchuck_class, "<init>",
"(Lorg/xcsoar/IOIOConnectionHolder;IILorg/xcsoar/Nunchuck$Listener;)V");
close_method = env->GetMethodID(nunchuck_class, "close", "()V");
}
示例3:
void
I2CbaroDevice::Initialise(JNIEnv *env)
{
i2cbaro_class.Find(env, "org/xcsoar/GlueI2Cbaro");
i2cbaro_ctor = env->GetMethodID(i2cbaro_class, "<init>",
"(Lorg/xcsoar/IOIOConnectionHolder;IIIILorg/xcsoar/I2Cbaro$Listener;)V");
close_method = env->GetMethodID(i2cbaro_class, "close", "()V");
}
示例4:
void
BMP085Device::Initialise(JNIEnv *env)
{
bmp085_class.Find(env, "org/xcsoar/GlueBMP085");
bmp085_ctor = env->GetMethodID(bmp085_class, "<init>",
"(Lorg/xcsoar/IOIOConnectionHolder;IIILorg/xcsoar/BMP085$Listener;)V");
close_method = env->GetMethodID(bmp085_class, "close", "()V");
}
示例5: assert
void
AndroidTimer::Bridge::Initialise(JNIEnv *env)
{
assert(cls == NULL);
assert(env != NULL);
cls.Find(env, "org/xcsoar/Timer");
ctor = env->GetMethodID(cls, "<init>", "(JI)V");
install_method = env->GetMethodID(cls, "install", "()V");
uninstall_method = env->GetMethodID(cls, "uninstall", "()V");
}
示例6:
void
TextUtil::Initialise(JNIEnv *_env)
{
env = _env;
cls.Find(env, "org/xcsoar/TextUtil");
midTextUtil = env->GetMethodID(cls, "<init>", "(Ljava/lang/String;III)V");
midGetFontMetrics = env->GetMethodID(cls, "getFontMetrics", "([I)V");
midGetTextBounds = env->GetMethodID(cls, "getTextBounds",
"(Ljava/lang/String;)[I");
midGetTextTextureGL = env->GetMethodID(cls, "getTextTextureGL",
"(Ljava/lang/String;)[I");
}