theConfig 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
LcConfigC_Lookup_JV_API

LcConfigC - various functions to lookup config-dataMore...

+ Collaboration diagram for LcConfigC_Lookup_JV_API:

Functions

native LcSettingC jvlcconfig.LcConfigC.Lookup (String path)
  Java: LcSettingC config.Lookup(String path) C-API
This function locates the setting in the configuration config specified by the path path
 
native boolean jvlcconfig.LcConfigC.LookupBool (String path)
  Java: boolean config.LookupBool(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
native double jvlcconfig.LcConfigC.LookupFloat (String path)
  Java: double config.LookupFloat(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
native int jvlcconfig.LcConfigC.LookupInt (String path)
  Java: int config.LookupInt(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
native long jvlcconfig.LcConfigC.LookupInt64 (String path)
  Java: long config.LookupInt64(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
native String jvlcconfig.LcConfigC.LookupString (String path)
  Java: String config.LookupString(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcConfigC_Lookup (JNIEnv *env, jobject self, jstring path)
  Java: LcSettingC config.Lookup(String path) C-API
This function locates the setting in the configuration config specified by the path path
 
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcConfigC_LookupBool (JNIEnv *env, jobject self, jstring path)
  Java: boolean config.LookupBool(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
JNIEXPORT jdouble JNICALL Java_jvlcconfig_LcConfigC_LookupFloat (JNIEnv *env, jobject self, jstring path)
  Java: double config.LookupFloat(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
JNIEXPORT jint JNICALL Java_jvlcconfig_LcConfigC_LookupInt (JNIEnv *env, jobject self, jstring path)
  Java: int config.LookupInt(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
JNIEXPORT jlong JNICALL Java_jvlcconfig_LcConfigC_LookupInt64 (JNIEnv *env, jobject self, jstring path)
  Java: long config.LookupInt64(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcConfigC_LookupString (JNIEnv *env, jobject self, jstring path)
  Java: String config.LookupString(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 

Detailed Description

LcConfigC - various functions to lookup config-data

Function Documentation

◆ Java_jvlcconfig_LcConfigC_Lookup()

JNIEXPORT jobject JNICALL Java_jvlcconfig_LcConfigC_Lookup ( JNIEnv * env,
jobject self,
jstring path )

Java: LcSettingC config.Lookup(String path) C-API
This function locates the setting in the configuration config specified by the path path

Definition at line 234 of file LcConfigC_jv.c.

234 {
235 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
236 JavaErrorCheck;
237 MkRtSetup_X(hdl);
238 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
239 JavaErrorCheck;
240 LC_CFS __retVal__L = LcConfigLookup(hdl, path_ptr);
241 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
242 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
243 return __retVal__S;
244error:
245 return 0;
246}
const struct LcConfigS * LC_CFGN
class-shortcut for const struct LcConfigS *, all const shortcut using the XX_YYYC syntax (only for pu...
static LC_CFS LcConfigLookup(LC_CFGN config, MK_STRN path)
This function locates the setting in the configuration config specified by the path path …
static MK_ARTIFICIAL LC_CFS LcSettingC_ObjNew(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
const MK_STRB * MK_STRN
#define MK_RT_CALL
#define MkRtSetup_X(x)
Struct to represent the data from the LcConfigC …
Struct to represent the data from the LcSettingC …

◆ Java_jvlcconfig_LcConfigC_LookupBool()

JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcConfigC_LookupBool ( JNIEnv * env,
jobject self,
jstring path )

Java: boolean config.LookupBool(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

Definition at line 251 of file LcConfigC_jv.c.

251 {
252 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
253 JavaErrorCheck;
254 MkRtSetup_X(hdl);
255 MK_BOOL value_out;
256 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
257 JavaErrorCheck;
258 enum MkErrorE errVal = LcConfigLookupBool(hdl, path_ptr, &value_out);
259 MkErrorC_Check(hdl, errVal)
260 jboolean __retVal__S = value_out;
261 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
262 return __retVal__S;
263error:
264 return 0;
265}
static enum MkErrorE LcConfigLookupBool(LC_CFGN config, MK_STRN path, MK_BOOL *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
MkErrorE
bool MK_BOOL

◆ Java_jvlcconfig_LcConfigC_LookupFloat()

JNIEXPORT jdouble JNICALL Java_jvlcconfig_LcConfigC_LookupFloat ( JNIEnv * env,
jobject self,
jstring path )

Java: double config.LookupFloat(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

Definition at line 268 of file LcConfigC_jv.c.

268 {
269 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
270 JavaErrorCheck;
271 MkRtSetup_X(hdl);
272 MK_DBL value_out;
273 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
274 JavaErrorCheck;
275 enum MkErrorE errVal = LcConfigLookupFloat(hdl, path_ptr, &value_out);
276 MkErrorC_Check(hdl, errVal)
277 jdouble __retVal__S = value_out;
278 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
279 return __retVal__S;
280error:
281 return 0;
282}
static enum MkErrorE LcConfigLookupFloat(LC_CFGN config, MK_STRN path, MK_DBL *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
double MK_DBL

◆ Java_jvlcconfig_LcConfigC_LookupInt()

JNIEXPORT jint JNICALL Java_jvlcconfig_LcConfigC_LookupInt ( JNIEnv * env,
jobject self,
jstring path )

Java: int config.LookupInt(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

Definition at line 285 of file LcConfigC_jv.c.

285 {
286 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
287 JavaErrorCheck;
288 MkRtSetup_X(hdl);
289 MK_I32 value_out;
290 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
291 JavaErrorCheck;
292 enum MkErrorE errVal = LcConfigLookupInt(hdl, path_ptr, &value_out);
293 MkErrorC_Check(hdl, errVal)
294 jint __retVal__S = value_out;
295 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
296 return __retVal__S;
297error:
298 return 0;
299}
static enum MkErrorE LcConfigLookupInt(LC_CFGN config, MK_STRN path, MK_I32 *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
signed int MK_I32

◆ Java_jvlcconfig_LcConfigC_LookupInt64()

JNIEXPORT jlong JNICALL Java_jvlcconfig_LcConfigC_LookupInt64 ( JNIEnv * env,
jobject self,
jstring path )

Java: long config.LookupInt64(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

Definition at line 302 of file LcConfigC_jv.c.

302 {
303 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
304 JavaErrorCheck;
305 MkRtSetup_X(hdl);
306 MK_I64 value_out;
307 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
308 JavaErrorCheck;
309 enum MkErrorE errVal = LcConfigLookupInt64(hdl, path_ptr, &value_out);
310 MkErrorC_Check(hdl, errVal)
311 jlong __retVal__S = value_out;
312 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
313 return __retVal__S;
314error:
315 return 0;
316}
static enum MkErrorE LcConfigLookupInt64(LC_CFGN config, MK_STRN path, MK_I64 *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
signed long long MK_I64

◆ Java_jvlcconfig_LcConfigC_LookupString()

JNIEXPORT jstring JNICALL Java_jvlcconfig_LcConfigC_LookupString ( JNIEnv * env,
jobject self,
jstring path )

Java: String config.LookupString(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

Definition at line 319 of file LcConfigC_jv.c.

319 {
320 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
321 JavaErrorCheck;
322 MkRtSetup_X(hdl);
323 MK_STRN value_out;
324 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
325 JavaErrorCheck;
326 enum MkErrorE errVal = LcConfigLookupString(hdl, path_ptr, &value_out);
327 MkErrorC_Check(hdl, errVal)
328 jstring __retVal__S = JC2O(env,value_out);
329 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
330 return __retVal__S;
331error:
332 return 0;
333}
static enum MkErrorE LcConfigLookupString(LC_CFGN config, MK_STRN path, MK_STRN *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...

◆ Lookup()

native LcSettingC jvlcconfig.LcConfigC.Lookup ( String path)

Java: LcSettingC config.Lookup(String path) C-API
This function locates the setting in the configuration config specified by the path path

◆ LookupBool()

native boolean jvlcconfig.LcConfigC.LookupBool ( String path)

Java: boolean config.LookupBool(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

◆ LookupFloat()

native double jvlcconfig.LcConfigC.LookupFloat ( String path)

Java: double config.LookupFloat(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

◆ LookupInt()

native int jvlcconfig.LcConfigC.LookupInt ( String path)

Java: int config.LookupInt(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

◆ LookupInt64()

native long jvlcconfig.LcConfigC.LookupInt64 ( String path)

Java: long config.LookupInt64(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

◆ LookupString()

native String jvlcconfig.LcConfigC.LookupString ( String path)

Java: String config.LookupString(String path) C-API
These functions look up the value of the setting in the configuration config specified by the path path