theConfig 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib
c - tcl - atl - cs - py - rb - jv - cc
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 402 of file LcSettingC_jv.c.

402 {
403 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
404 JavaErrorCheck;
405 MkRtSetup_X(hdl);
406 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
407 JavaErrorCheck;
408 LC_CFS __retVal__L = LcSettingLookup(hdl, path_ptr);
409 if (__retVal__L == NULL) {
410 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.Lookup");
411 goto error;
412 }
413 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
414 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
415 return __retVal__S;
416error:
417 return 0;
418}
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 421 of file LcSettingC_jv.c.

421 {
422 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
423 JavaErrorCheck;
424 MkRtSetup_X(hdl);
425 MK_BFL __retVal__L = LcSettingLookupAll(hdl);
426 jobject __retVal__S = MK(MkBufferListC_ObjNew)(MK_RT_CALL env,__retVal__L);
427 return __retVal__S;
428error:
429 return 0;
430}
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 435 of file LcSettingC_jv.c.

435 {
436 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
437 JavaErrorCheck;
438 MkRtSetup_X(hdl);
439 MK_BOOL value_out;
440 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
441 JavaErrorCheck;
442 enum MkErrorE errVal = LcSettingLookupBool(hdl, name_ptr, &value_out);
443 MkErrorC_Check(hdl, errVal)
444 jboolean __retVal__S = value_out;
445 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
446 return __retVal__S;
447error:
448 return 0;
449}
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 452 of file LcSettingC_jv.c.

452 {
453 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
454 JavaErrorCheck;
455 MkRtSetup_X(hdl);
456 MK_DBL value_out;
457 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
458 JavaErrorCheck;
459 enum MkErrorE errVal = LcSettingLookupFloat(hdl, name_ptr, &value_out);
460 MkErrorC_Check(hdl, errVal)
461 jdouble __retVal__S = value_out;
462 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
463 return __retVal__S;
464error:
465 return 0;
466}
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 469 of file LcSettingC_jv.c.

469 {
470 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
471 JavaErrorCheck;
472 MkRtSetup_X(hdl);
473 MK_I32 value_out;
474 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
475 JavaErrorCheck;
476 enum MkErrorE errVal = LcSettingLookupInt(hdl, name_ptr, &value_out);
477 MkErrorC_Check(hdl, errVal)
478 jint __retVal__S = value_out;
479 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
480 return __retVal__S;
481error:
482 return 0;
483}
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 486 of file LcSettingC_jv.c.

486 {
487 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
488 JavaErrorCheck;
489 MkRtSetup_X(hdl);
490 MK_I64 value_out;
491 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
492 JavaErrorCheck;
493 enum MkErrorE errVal = LcSettingLookupInt64(hdl, name_ptr, &value_out);
494 MkErrorC_Check(hdl, errVal)
495 jlong __retVal__S = value_out;
496 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
497 return __retVal__S;
498error:
499 return 0;
500}
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 503 of file LcSettingC_jv.c.

503 {
504 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
505 JavaErrorCheck;
506 MkRtSetup_X(hdl);
507 MK_STRN value_out;
508 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
509 JavaErrorCheck;
510 enum MkErrorE errVal = LcSettingLookupString(hdl, name_ptr, &value_out);
511 MkErrorC_Check(hdl, errVal)
512 jstring __retVal__S = JC2O(env,value_out);
513 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
514 return __retVal__S;
515error:
516 return 0;
517}
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