theConfig 10.0
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 231 of file LcConfigC_jv.c.

231 {
232 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
233 JavaErrorCheck;
234 MkRtSetup_X(hdl);
235 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
236 JavaErrorCheck;
237 LC_CFS __retVal__L = LcConfigLookup(hdl, path_ptr);
238 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
239 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
240 return __retVal__S;
241error:
242 return 0;
243}
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 248 of file LcConfigC_jv.c.

248 {
249 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
250 JavaErrorCheck;
251 MkRtSetup_X(hdl);
252 MK_BOOL value_out;
253 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
254 JavaErrorCheck;
255 enum MkErrorE errVal = LcConfigLookupBool(hdl, path_ptr, &value_out);
256 MkErrorC_Check(hdl, errVal)
257 jboolean __retVal__S = value_out;
258 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
259 return __retVal__S;
260error:
261 return 0;
262}
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 265 of file LcConfigC_jv.c.

265 {
266 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
267 JavaErrorCheck;
268 MkRtSetup_X(hdl);
269 MK_DBL value_out;
270 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
271 JavaErrorCheck;
272 enum MkErrorE errVal = LcConfigLookupFloat(hdl, path_ptr, &value_out);
273 MkErrorC_Check(hdl, errVal)
274 jdouble __retVal__S = value_out;
275 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
276 return __retVal__S;
277error:
278 return 0;
279}
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 282 of file LcConfigC_jv.c.

282 {
283 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
284 JavaErrorCheck;
285 MkRtSetup_X(hdl);
286 MK_I32 value_out;
287 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
288 JavaErrorCheck;
289 enum MkErrorE errVal = LcConfigLookupInt(hdl, path_ptr, &value_out);
290 MkErrorC_Check(hdl, errVal)
291 jint __retVal__S = value_out;
292 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
293 return __retVal__S;
294error:
295 return 0;
296}
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 299 of file LcConfigC_jv.c.

299 {
300 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
301 JavaErrorCheck;
302 MkRtSetup_X(hdl);
303 MK_I64 value_out;
304 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
305 JavaErrorCheck;
306 enum MkErrorE errVal = LcConfigLookupInt64(hdl, path_ptr, &value_out);
307 MkErrorC_Check(hdl, errVal)
308 jlong __retVal__S = value_out;
309 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
310 return __retVal__S;
311error:
312 return 0;
313}
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 316 of file LcConfigC_jv.c.

316 {
317 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
318 JavaErrorCheck;
319 MkRtSetup_X(hdl);
320 MK_STRN value_out;
321 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
322 JavaErrorCheck;
323 enum MkErrorE errVal = LcConfigLookupString(hdl, path_ptr, &value_out);
324 MkErrorC_Check(hdl, errVal)
325 jstring __retVal__S = JC2O(env,value_out);
326 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
327 return __retVal__S;
328error:
329 return 0;
330}
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