⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 propertyjni.cpp

📁 270的linux说明
💻 CPP
📖 第 1 页 / 共 3 页
字号:
		ByteArrayProperty * TheByteArrayProperty = (ByteArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheByteArrayProperty->SetValue( Offset, cValue );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("ByteArrayProperty"), IntelMobileText("SetValue()") );	}	return NULL;}// ----------------- IntArrayProperty ------------------/* * Class:     com_intel_mobile_base_IntArrayProperty * Method:    GetValueNative * Signature: (I)I */JNIEXPORT jint JNICALL Java_com_intel_mobile_base_IntArrayProperty_GetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset ){	try	{		IntArrayProperty * TheIntArrayProperty = (IntArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheIntArrayProperty->GetValue( Offset );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("IntArrayProperty"), IntelMobileText("GetValue()") );	}	return NULL;}/* * Class:     com_intel_mobile_base_IntArrayProperty * Method:    SetValueNative * Signature: (II)Z */JNIEXPORT jboolean JNICALL Java_com_intel_mobile_base_IntArrayProperty_SetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset, jint iValue ){	try	{		IntArrayProperty * TheIntArrayProperty = (IntArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheIntArrayProperty->SetValue( Offset, iValue );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("IntArrayProperty"), IntelMobileText("SetValue()") );	}	return NULL;}// ----------------- UIntArrayProperty ------------------/* * Class:     com_intel_mobile_base_UIntArrayProperty * Method:    GetValueNative * Signature: (I)I */JNIEXPORT jint JNICALL Java_com_intel_mobile_base_UIntArrayProperty_GetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset ){	try	{		UIntArrayProperty * TheUIntArrayProperty = (UIntArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheUIntArrayProperty->GetValue( Offset );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("UIntArrayProperty"), IntelMobileText("GetValue()") );	}	return NULL;}/* * Class:     com_intel_mobile_base_UIntArrayProperty * Method:    SetValueNative * Signature: (II)Z */JNIEXPORT jboolean JNICALL Java_com_intel_mobile_base_UIntArrayProperty_SetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset, jint iValue ){	try	{		UIntArrayProperty * TheUIntArrayProperty = (UIntArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheUIntArrayProperty->SetValue( Offset, iValue );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("UIntArrayProperty"), IntelMobileText("SetValue()") );	}	return NULL;}// ----------------- Int64ArrayProperty ------------------/* * Class:     com_intel_mobile_base_Int64ArrayProperty * Method:    GetValueNative * Signature: (I)J */JNIEXPORT jlong JNICALL Java_com_intel_mobile_base_Int64ArrayProperty_GetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset ){	try	{		Int64ArrayProperty * TheInt64ArrayProperty = (Int64ArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheInt64ArrayProperty->GetValue( Offset );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("Int64ArrayProperty"), IntelMobileText("GetValue()") );	}	return NULL;}/* * Class:     com_intel_mobile_base_Int64ArrayProperty * Method:    SetValueNative * Signature: (IJ)Z */JNIEXPORT jboolean JNICALL Java_com_intel_mobile_base_Int64ArrayProperty_SetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset, jlong lValue ){	try	{		Int64ArrayProperty * TheInt64ArrayProperty = (Int64ArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheInt64ArrayProperty->SetValue( Offset, lValue );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("Int64ArrayProperty"), IntelMobileText("SetValue()") );	}	return NULL;}// ----------------- UInt64ArrayProperty ------------------/* * Class:     com_intel_mobile_base_UInt64ArrayProperty * Method:    GetValueNative * Signature: (I)J */JNIEXPORT jlong JNICALL Java_com_intel_mobile_base_UInt64ArrayProperty_GetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset ){	try	{		UInt64ArrayProperty * TheUInt64ArrayProperty = (UInt64ArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheUInt64ArrayProperty->GetValue( Offset );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("UInt64ArrayProperty"), IntelMobileText("GetValue()") );	}	return NULL;}/* * Class:     com_intel_mobile_base_UInt64ArrayProperty * Method:    SetValueNative * Signature: (IJ)Z */JNIEXPORT jboolean JNICALL Java_com_intel_mobile_base_UInt64ArrayProperty_SetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset, jlong lValue ){	try	{		UInt64ArrayProperty * TheUInt64ArrayProperty = (UInt64ArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheUInt64ArrayProperty->SetValue( Offset, lValue );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("UInt64ArrayProperty"), IntelMobileText("SetValue()") );	}	return NULL;}// ----------------- FloatArrayProperty ------------------/* * Class:     com_intel_mobile_base_FloatArrayProperty * Method:    GetValueNative * Signature: (I)F */JNIEXPORT jfloat JNICALL Java_com_intel_mobile_base_FloatArrayProperty_GetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset ){	try	{		FloatArrayProperty * TheFloatArrayProperty = (FloatArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheFloatArrayProperty->GetValue( Offset );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("FloatArrayProperty"), IntelMobileText("GetValue()") );	}	return NULL;}/* * Class:     com_intel_mobile_base_FloatArrayProperty * Method:    SetValueNative * Signature: (IF)Z */JNIEXPORT jboolean JNICALL Java_com_intel_mobile_base_FloatArrayProperty_SetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset, jfloat fValue ){	try	{		FloatArrayProperty * TheFloatArrayProperty = (FloatArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheFloatArrayProperty->SetValue( Offset, fValue );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("FloatArrayProperty"), IntelMobileText("SetValue()") );	}	return NULL;}// ----------------- DateTimeArrayProperty ------------------/* * Class:     com_intel_mobile_base_DateTimeArrayProperty * Method:    GetValueNative * Signature: (I)Ljava/util/Date; */JNIEXPORT jobject JNICALL Java_com_intel_mobile_base_DateTimeArrayProperty_GetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset ){	try	{		DateTimeArrayProperty * TheDateTimeArrayProperty = (DateTimeArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return DATE2jobject( JniEnv, TheDateTimeArrayProperty->GetValue( Offset ) );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("DateTimeArrayProperty"), IntelMobileText("GetValue()") );	}	return NULL;}/* * Class:     com_intel_mobile_base_DateTimeArrayProperty * Method:    SetValueNative * Signature: (IIIIIII)Z */JNIEXPORT jboolean JNICALL Java_com_intel_mobile_base_DateTimeArrayProperty_SetValueNative		( JNIEnv *JniEnv, jobject JObject, jint Offset, jint nYear, jint nMonth, jint nDay, jint nHour, jint nMin, jint nSec ){	try	{		DateTimeArrayProperty * TheDateTimeArrayProperty = (DateTimeArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		// COleDateTime dt( nYear, nMonth+1, nDay, nHour, nMin, nSec );		struct timeval tv;		gettimeofday(&tv, NULL);			return TheDateTimeArrayProperty->SetValue( Offset, tv.tv_sec );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("DateTimeArrayProperty"), IntelMobileText("SetValue()") );	}	return NULL;}// ----------------------------------------------------------// ----------------- EnumProperty ------------------/* * Class:     com_intel_mobile_base_EnumProperty * Method:    GetValueNative * Signature: ()I */JNIEXPORT jint JNICALL Java_com_intel_mobile_base_EnumProperty_GetValueNative( JNIEnv *JniEnv, jobject JObject ){	try	{		IntProperty * TheProperty = (IntProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheProperty->GetValue();	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("EnumProperty"), IntelMobileText("GetValue()") );	}	return NULL;}/* * Class:     com_intel_mobile_base_EnumProperty * Method:    SetValueNative * Signature: (I)Z */JNIEXPORT jboolean JNICALL Java_com_intel_mobile_base_EnumProperty_SetValueNative( JNIEnv *JniEnv, jobject JObject, jint iValue ){	try	{		IntProperty * TheProperty = (IntProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheProperty->SetValue( iValue );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("EnumProperty"), IntelMobileText("SetValue()") );	}	return NULL;}// ----------------- EnumArrayProperty ------------------/* * Class:     com_intel_mobile_base_EnumArrayProperty * Method:    GetValueNative * Signature: (I)I */JNIEXPORT jint JNICALL Java_com_intel_mobile_base_EnumArrayProperty_GetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset ){	try	{		IntArrayProperty * TheProperty = (IntArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheProperty->GetValue( Offset );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("EnumArrayProperty"), IntelMobileText("GetValue()") );	}	return NULL;}/* * Class:     com_intel_mobile_base_EnumArrayProperty * Method:    SetValueNative * Signature: (II)Z */JNIEXPORT jboolean JNICALL Java_com_intel_mobile_base_EnumArrayProperty_SetValueNative( JNIEnv *JniEnv, jobject JObject, jint Offset, jint iValue ){	try	{		IntArrayProperty * TheProperty = (IntArrayProperty *) Get_nativeObjRef( JniEnv, JObject );		return TheProperty->SetValue( Offset, iValue );	}	catch (IntelMobileException Ex)	{		ThrowException( JniEnv, Ex );	}	catch (...)	{		ThrowUnknownException( JniEnv, IntelMobileText("EnumArrayProperty"), IntelMobileText("SetValue()") );	}	return NULL;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -