theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_Lookup_JV_API

LcSettingC - various functions to lookup a settingMore...

+ Collaboration diagram for LcSettingC_Lookup_JV_API:

Functions

native LcSettingC jvlcconfig.LcSettingC.Lookup (String path)
  Java: LcSettingC setting.Lookup(String path) C-API
This function locates a setting by a path path relative to the setting setting
 
native MkBufferListC jvlcconfig.LcSettingC.LookupAll ()
  Java: MkBufferListC setting.LookupAll() C-API
addon - read an entire configuration below setting into MkBufferListC
 
native boolean jvlcconfig.LcSettingC.LookupBool (String name)
  Java: boolean setting.LookupBool(String name) C-API
These functions look up the value of the child setting named name of the setting setting
 
native double jvlcconfig.LcSettingC.LookupFloat (String name)
  Java: double setting.LookupFloat(String name) C-API
These functions look up the value of the child setting named name of the setting setting
 
native int jvlcconfig.LcSettingC.LookupInt (String name)
  Java: int setting.LookupInt(String name) C-API
These functions look up the value of the child setting named name of the setting setting
 
native long jvlcconfig.LcSettingC.LookupInt64 (String name)
  Java: long setting.LookupInt64(String name) C-API
These functions look up the value of the child setting named name of the setting setting
 
native String jvlcconfig.LcSettingC.LookupString (String name)
  Java: String setting.LookupString(String name) C-API
These functions look up the value of the child setting named name of the setting setting
 
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Lookup (JNIEnv *env, jobject self, jstring path)
  Java: LcSettingC setting.Lookup(String path) C-API
This function locates a setting by a path path relative to the setting setting
 
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_LookupAll (JNIEnv *env, jobject self)
  Java: MkBufferListC setting.LookupAll() C-API
addon - read an entire configuration below setting into MkBufferListC
 
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_LookupBool (JNIEnv *env, jobject self, jstring name)
  Java: boolean setting.LookupBool(String name) C-API
These functions look up the value of the child setting named name of the setting setting
 
JNIEXPORT jdouble JNICALL Java_jvlcconfig_LcSettingC_LookupFloat (JNIEnv *env, jobject self, jstring name)
  Java: double setting.LookupFloat(String name) C-API
These functions look up the value of the child setting named name of the setting setting
 
JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_LookupInt (JNIEnv *env, jobject self, jstring name)
  Java: int setting.LookupInt(String name) C-API
These functions look up the value of the child setting named name of the setting setting
 
JNIEXPORT jlong JNICALL Java_jvlcconfig_LcSettingC_LookupInt64 (JNIEnv *env, jobject self, jstring name)
  Java: long setting.LookupInt64(String name) C-API
These functions look up the value of the child setting named name of the setting setting
 
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_LookupString (JNIEnv *env, jobject self, jstring name)
  Java: String setting.LookupString(String name) C-API
These functions look up the value of the child setting named name of the setting setting
 

Detailed Description

LcSettingC - various functions to lookup a setting

Function Documentation

◆ Java_jvlcconfig_LcSettingC_Lookup()

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

Java: LcSettingC setting.Lookup(String path) C-API
This function locates a setting by a path path relative to the setting setting

Definition at line 399 of file LcSettingC_jv.c.

399 {
400 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
401 JavaErrorCheck;
402 MkRtSetup_X(hdl);
403 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
404 JavaErrorCheck;
405 LC_CFS __retVal__L = LcSettingLookup(hdl, path_ptr);
406 if (__retVal__L == NULL) {
407 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.Lookup");
408 goto error;
409 }
410 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
411 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
412 return __retVal__S;
413error:
414 return 0;
415}
static MK_ARTIFICIAL LC_CFS LcSettingC_ObjNew(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
struct LcSettingS * LC_CFS
class-shortcut for struct LcSettingS *, all shortcut using the XX_YYY syntax (only for public API) …
static LC_CFS LcSettingLookup(LC_CFS setting, MK_STRN path)
This function locates a setting by a path path relative to the setting setting …
const MK_STRB * MK_STRN
#define MK_RT_CALL
#define MkRtSetup_X(x)
Struct to represent the data from the LcSettingC …

◆ Java_jvlcconfig_LcSettingC_LookupAll()

JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_LookupAll ( JNIEnv * env,
jobject self )

Java: MkBufferListC setting.LookupAll() C-API
addon - read an entire configuration below setting into MkBufferListC

Definition at line 418 of file LcSettingC_jv.c.

418 {
419 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
420 JavaErrorCheck;
421 MkRtSetup_X(hdl);
422 MK_BFL __retVal__L = LcSettingLookupAll(hdl);
423 jobject __retVal__S = MK(MkBufferListC_ObjNew)(MK_RT_CALL env,__retVal__L);
424 return __retVal__S;
425error:
426 return 0;
427}
const struct LcSettingS * LC_CFSN
class-shortcut for const struct LcSettingS *, all const shortcut using the XX_YYYC syntax (only for p...
MK_BFL LcSettingLookupAll(LC_CFSN setting)
addon - read an entire configuration below setting into MkBufferListC …

◆ Java_jvlcconfig_LcSettingC_LookupBool()

JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_LookupBool ( JNIEnv * env,
jobject self,
jstring name )

Java: boolean setting.LookupBool(String name) C-API
These functions look up the value of the child setting named name of the setting setting

Definition at line 432 of file LcSettingC_jv.c.

432 {
433 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
434 JavaErrorCheck;
435 MkRtSetup_X(hdl);
436 MK_BOOL value_out;
437 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
438 JavaErrorCheck;
439 enum MkErrorE errVal = LcSettingLookupBool(hdl, name_ptr, &value_out);
440 MkErrorC_Check(hdl, errVal)
441 jboolean __retVal__S = value_out;
442 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
443 return __retVal__S;
444error:
445 return 0;
446}
static enum MkErrorE LcSettingLookupBool(LC_CFSN setting, MK_STRN name, MK_BOOL *value_out)
These functions look up the value of the child setting named name of the setting setting …
MkErrorE
bool MK_BOOL

◆ Java_jvlcconfig_LcSettingC_LookupFloat()

JNIEXPORT jdouble JNICALL Java_jvlcconfig_LcSettingC_LookupFloat ( JNIEnv * env,
jobject self,
jstring name )

Java: double setting.LookupFloat(String name) C-API
These functions look up the value of the child setting named name of the setting setting

Definition at line 449 of file LcSettingC_jv.c.

449 {
450 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
451 JavaErrorCheck;
452 MkRtSetup_X(hdl);
453 MK_DBL value_out;
454 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
455 JavaErrorCheck;
456 enum MkErrorE errVal = LcSettingLookupFloat(hdl, name_ptr, &value_out);
457 MkErrorC_Check(hdl, errVal)
458 jdouble __retVal__S = value_out;
459 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
460 return __retVal__S;
461error:
462 return 0;
463}
static enum MkErrorE LcSettingLookupFloat(LC_CFSN setting, MK_STRN name, MK_DBL *value_out)
These functions look up the value of the child setting named name of the setting setting …
double MK_DBL

◆ Java_jvlcconfig_LcSettingC_LookupInt()

JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_LookupInt ( JNIEnv * env,
jobject self,
jstring name )

Java: int setting.LookupInt(String name) C-API
These functions look up the value of the child setting named name of the setting setting

Definition at line 466 of file LcSettingC_jv.c.

466 {
467 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
468 JavaErrorCheck;
469 MkRtSetup_X(hdl);
470 MK_I32 value_out;
471 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
472 JavaErrorCheck;
473 enum MkErrorE errVal = LcSettingLookupInt(hdl, name_ptr, &value_out);
474 MkErrorC_Check(hdl, errVal)
475 jint __retVal__S = value_out;
476 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
477 return __retVal__S;
478error:
479 return 0;
480}
static enum MkErrorE LcSettingLookupInt(LC_CFSN setting, MK_STRN name, MK_I32 *value_out)
These functions look up the value of the child setting named name of the setting setting …
signed int MK_I32

◆ Java_jvlcconfig_LcSettingC_LookupInt64()

JNIEXPORT jlong JNICALL Java_jvlcconfig_LcSettingC_LookupInt64 ( JNIEnv * env,
jobject self,
jstring name )

Java: long setting.LookupInt64(String name) C-API
These functions look up the value of the child setting named name of the setting setting

Definition at line 483 of file LcSettingC_jv.c.

483 {
484 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
485 JavaErrorCheck;
486 MkRtSetup_X(hdl);
487 MK_I64 value_out;
488 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
489 JavaErrorCheck;
490 enum MkErrorE errVal = LcSettingLookupInt64(hdl, name_ptr, &value_out);
491 MkErrorC_Check(hdl, errVal)
492 jlong __retVal__S = value_out;
493 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
494 return __retVal__S;
495error:
496 return 0;
497}
static enum MkErrorE LcSettingLookupInt64(LC_CFSN setting, MK_STRN name, MK_I64 *value_out)
These functions look up the value of the child setting named name of the setting setting …
signed long long MK_I64

◆ Java_jvlcconfig_LcSettingC_LookupString()

JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_LookupString ( JNIEnv * env,
jobject self,
jstring name )

Java: String setting.LookupString(String name) C-API
These functions look up the value of the child setting named name of the setting setting

Definition at line 500 of file LcSettingC_jv.c.

500 {
501 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
502 JavaErrorCheck;
503 MkRtSetup_X(hdl);
504 MK_STRN value_out;
505 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
506 JavaErrorCheck;
507 enum MkErrorE errVal = LcSettingLookupString(hdl, name_ptr, &value_out);
508 MkErrorC_Check(hdl, errVal)
509 jstring __retVal__S = JC2O(env,value_out);
510 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
511 return __retVal__S;
512error:
513 return 0;
514}
static enum MkErrorE LcSettingLookupString(LC_CFSN setting, MK_STRN name, MK_STRN *value_out)
These functions look up the value of the child setting named name of the setting setting …

◆ Lookup()

native LcSettingC jvlcconfig.LcSettingC.Lookup ( String path)

Java: LcSettingC setting.Lookup(String path) C-API
This function locates a setting by a path path relative to the setting setting

◆ LookupAll()

native MkBufferListC jvlcconfig.LcSettingC.LookupAll ( )

Java: MkBufferListC setting.LookupAll() C-API
addon - read an entire configuration below setting into MkBufferListC

◆ LookupBool()

native boolean jvlcconfig.LcSettingC.LookupBool ( String name)

Java: boolean setting.LookupBool(String name) C-API
These functions look up the value of the child setting named name of the setting setting

◆ LookupFloat()

native double jvlcconfig.LcSettingC.LookupFloat ( String name)

Java: double setting.LookupFloat(String name) C-API
These functions look up the value of the child setting named name of the setting setting

◆ LookupInt()

native int jvlcconfig.LcSettingC.LookupInt ( String name)

Java: int setting.LookupInt(String name) C-API
These functions look up the value of the child setting named name of the setting setting

◆ LookupInt64()

native long jvlcconfig.LcSettingC.LookupInt64 ( String name)

Java: long setting.LookupInt64(String name) C-API
These functions look up the value of the child setting named name of the setting setting

◆ LookupString()

native String jvlcconfig.LcSettingC.LookupString ( String name)

Java: String setting.LookupString(String name) C-API
These functions look up the value of the child setting named name of the setting setting