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_Misc_JV_API

LcConfigC - various functions to perform misc operations … More...

+ Collaboration diagram for LcConfigC_Misc_JV_API:

Functions

native LcSettingC jvlcconfig.LcConfigC.RootSetting ()
  Java: LcSettingC config.RootSetting() C-API
This function, which is implemented as a macro, returns the root setting for the configuration config
 
native void jvlcconfig.LcConfigC.Clear ()
  Java: config.Clear() C-API
Since v1.7 This function clears the configuration config
 
native void jvlcconfig.LcConfigC.Log (MkObjectC fmtobj, int debug, String callfunc, int lvl)
  Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the config
 
void jvlcconfig.LcConfigC.Log ()
  Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the config
 
void jvlcconfig.LcConfigC.Log (MkObjectC fmtobj)
  Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the config
 
void jvlcconfig.LcConfigC.Log (MkObjectC fmtobj, int debug)
  Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the config
 
void jvlcconfig.LcConfigC.Log (MkObjectC fmtobj, int debug, String callfunc)
  Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the config
 
native void jvlcconfig.LcConfigC.ReadFile (String filename)
  Java: config.ReadFile(String filename) C-API
This function reads and parses a configuration from the file named filename into the configuration object config
 
native void jvlcconfig.LcConfigC.ReadString (String str)
  Java: config.ReadString(String str) C-API
This function reads and parses a configuration from the string str into the configuration object config
 
native void jvlcconfig.LcConfigC.WriteFile (String filename)
  Java: config.WriteFile(String filename) C-API
This function writes the configuration config to the file named filename
 
native String jvlcconfig.LcConfigC.WriteString ()
  Java: String cfg.WriteString() C-API
read the entire configuration cfg into the string val_out
 
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcConfigC_RootSetting (JNIEnv *env, jobject self)
  Java: LcSettingC config.RootSetting() C-API
This function, which is implemented as a macro, returns the root setting for the configuration config
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_Clear (JNIEnv *env, jobject self)
  Java: config.Clear() C-API
Since v1.7 This function clears the configuration config
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_Log (JNIEnv *env, jobject self, jobject fmtobj, jint debug, jstring callfunc, jint lvl)
  Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the config
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_ReadFile (JNIEnv *env, jobject self, jstring filename)
  Java: config.ReadFile(String filename) C-API
This function reads and parses a configuration from the file named filename into the configuration object config
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_ReadString (JNIEnv *env, jobject self, jstring str)
  Java: config.ReadString(String str) C-API
This function reads and parses a configuration from the string str into the configuration object config
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_WriteFile (JNIEnv *env, jobject self, jstring filename)
  Java: config.WriteFile(String filename) C-API
This function writes the configuration config to the file named filename
 
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcConfigC_WriteString (JNIEnv *env, jobject self)
  Java: String cfg.WriteString() C-API
read the entire configuration cfg into the string val_out
 

Detailed Description

LcConfigC - various functions to perform misc operations …

Function Documentation

◆ Clear()

native void jvlcconfig.LcConfigC.Clear ( )

Java: config.Clear() C-API
Since v1.7 This function clears the configuration config

◆ Java_jvlcconfig_LcConfigC_Clear()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_Clear ( JNIEnv * env,
jobject self )

Java: config.Clear() C-API
Since v1.7 This function clears the configuration config

Definition at line 359 of file LcConfigC_jv.c.

359 {
360 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
361 JavaErrorCheck;
362 MkRtSetup_X(hdl);
363 LcConfigClear(hdl);
364error:
365 return;
366}
struct LcConfigS * LC_CFG
class-shortcut for struct LcConfigS *, all shortcut using the XX_YYY syntax (only for public API) …
static void LcConfigClear(LC_CFG config)
Since v1.7 This function clears the configuration config …
#define MkRtSetup_X(x)
Struct to represent the data from the LcConfigC …

◆ Java_jvlcconfig_LcConfigC_Log()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_Log ( JNIEnv * env,
jobject self,
jobject fmtobj,
jint debug,
jstring callfunc,
jint lvl )

Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the config

Definition at line 369 of file LcConfigC_jv.c.

369 {
370 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
371 JavaErrorCheck;
372 MkRtSetup_X(hdl);
373 MK_OBJN fmtobj_hdl = (MK_OBJN)pObj2Hdl__null_allow(env,fmtobj);
374 JavaErrorCheck;
375 if (callfunc == NULL) {
376 (*env)->CallStaticVoidMethod(env,MK(Class_MkKernel),MK(MID_MkKernel_getCallerStack));
377 }
378 if (callfunc == NULL) {callfunc = MK(pGetCallerProc)(env);}
379 if (debug > (jint)(MkRuntimeDebugGet())) {return;}
380 MK_STRN callfunc_ptr = (callfunc?(*env)->GetStringUTFChars(env,callfunc,NULL):NULL);
381 JavaErrorCheck;
382 LcConfigLog(hdl, fmtobj_hdl, debug, callfunc_ptr, lvl);
383 if (callfunc_ptr) (*env)->ReleaseStringUTFChars(env,callfunc,callfunc_ptr);
384error:
385 return;
386}
const struct LcConfigS * LC_CFGN
class-shortcut for const struct LcConfigS *, all const shortcut using the XX_YYYC syntax (only for pu...
#define LcConfigLog(...)
const MK_STRB * MK_STRN
const struct MkObjectS * MK_OBJN
static MK_I32 MkRuntimeDebugGet(void)

◆ Java_jvlcconfig_LcConfigC_ReadFile()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_ReadFile ( JNIEnv * env,
jobject self,
jstring filename )

Java: config.ReadFile(String filename) C-API
This function reads and parses a configuration from the file named filename into the configuration object config

Definition at line 389 of file LcConfigC_jv.c.

389 {
390 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
391 JavaErrorCheck;
392 MkRtSetup_X(hdl);
393 MK_STRN filename_ptr = (filename?(*env)->GetStringUTFChars(env,filename,NULL):NULL);
394 JavaErrorCheck;
395 enum MkErrorE errVal = LcConfigReadFile(hdl, filename_ptr);
396 MkErrorC_Check(hdl, errVal)
397 if (filename_ptr) (*env)->ReleaseStringUTFChars(env,filename,filename_ptr);
398error:
399 return;
400}
static enum MkErrorE LcConfigReadFile(LC_CFG config, MK_STRN filename)
This function reads and parses a configuration from the file named filename into the configuration ob...
MkErrorE

◆ Java_jvlcconfig_LcConfigC_ReadString()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_ReadString ( JNIEnv * env,
jobject self,
jstring str )

Java: config.ReadString(String str) C-API
This function reads and parses a configuration from the string str into the configuration object config

Definition at line 403 of file LcConfigC_jv.c.

403 {
404 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
405 JavaErrorCheck;
406 MkRtSetup_X(hdl);
407 MK_STRN str_ptr = (str?(*env)->GetStringUTFChars(env,str,NULL):NULL);
408 JavaErrorCheck;
409 enum MkErrorE errVal = LcConfigReadString(hdl, str_ptr);
410 MkErrorC_Check(hdl, errVal)
411 if (str_ptr) (*env)->ReleaseStringUTFChars(env,str,str_ptr);
412error:
413 return;
414}
static enum MkErrorE LcConfigReadString(LC_CFG config, MK_STRN str)
This function reads and parses a configuration from the string str into the configuration object conf...

◆ Java_jvlcconfig_LcConfigC_RootSetting()

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

Java: LcSettingC config.RootSetting() C-API
This function, which is implemented as a macro, returns the root setting for the configuration config

Definition at line 345 of file LcConfigC_jv.c.

345 {
346 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
347 JavaErrorCheck;
348 MkRtSetup_X(hdl);
349 LC_CFS __retVal__L = LcConfigRootSetting(hdl);
350 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
351 return __retVal__S;
352error:
353 return 0;
354}
static LC_CFS LcConfigRootSetting(LC_CFGN config)
This function, which is implemented as a macro, returns the root setting for the configuration config...
static MK_ARTIFICIAL LC_CFS LcSettingC_ObjNew(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
#define MK_RT_CALL
Struct to represent the data from the LcSettingC …

◆ Java_jvlcconfig_LcConfigC_WriteFile()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_WriteFile ( JNIEnv * env,
jobject self,
jstring filename )

Java: config.WriteFile(String filename) C-API
This function writes the configuration config to the file named filename

Definition at line 417 of file LcConfigC_jv.c.

417 {
418 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
419 JavaErrorCheck;
420 MkRtSetup_X(hdl);
421 MK_STRN filename_ptr = (filename?(*env)->GetStringUTFChars(env,filename,NULL):NULL);
422 JavaErrorCheck;
423 enum MkErrorE errVal = LcConfigWriteFile(hdl, filename_ptr);
424 MkErrorC_Check(hdl, errVal)
425 if (filename_ptr) (*env)->ReleaseStringUTFChars(env,filename,filename_ptr);
426error:
427 return;
428}
static enum MkErrorE LcConfigWriteFile(LC_CFG config, MK_STRN filename)
This function writes the configuration config to the file named filename …

◆ Java_jvlcconfig_LcConfigC_WriteString()

JNIEXPORT jstring JNICALL Java_jvlcconfig_LcConfigC_WriteString ( JNIEnv * env,
jobject self )

Java: String cfg.WriteString() C-API
read the entire configuration cfg into the string val_out

Definition at line 433 of file LcConfigC_jv.c.

433 {
434 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
435 JavaErrorCheck;
436 MkRtSetup_X(hdl);
437 MK_STRN val_out;
438 enum MkErrorE errVal = LcConfigWriteString(hdl, &val_out);
439 MkErrorC_Check(hdl, errVal)
440 jstring __retVal__S = JC2O(env,val_out);
441 return __retVal__S;
442error:
443 return 0;
444}
#define LcConfigWriteString(...)

◆ Log() [1/5]

void jvlcconfig.LcConfigC.Log ( )

Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the config

Definition at line 178 of file LcConfigC.java.

178 {
179 Log ((MkObjectC) null, 0, null, 0);
180 }
void Log()
Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
+ Here is the caller graph for this function:

◆ Log() [2/5]

void jvlcconfig.LcConfigC.Log ( MkObjectC fmtobj)

Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the config

Definition at line 183 of file LcConfigC.java.

183 {
184 Log (fmtobj, 0, null, 0);
185 }

◆ Log() [3/5]

void jvlcconfig.LcConfigC.Log ( MkObjectC fmtobj,
int debug )

Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the config

Definition at line 188 of file LcConfigC.java.

188 {
189 Log (fmtobj, debug, null, 0);
190 }

◆ Log() [4/5]

void jvlcconfig.LcConfigC.Log ( MkObjectC fmtobj,
int debug,
String callfunc )

Java: cfg.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the config

Definition at line 193 of file LcConfigC.java.

193 {
194 Log (fmtobj, debug, callfunc, 0);
195 }

◆ Log() [5/5]

native void jvlcconfig.LcConfigC.Log ( MkObjectC fmtobj,
int debug,
String callfunc,
int lvl )

◆ ReadFile()

native void jvlcconfig.LcConfigC.ReadFile ( String filename)

Java: config.ReadFile(String filename) C-API
This function reads and parses a configuration from the file named filename into the configuration object config

◆ ReadString()

native void jvlcconfig.LcConfigC.ReadString ( String str)

Java: config.ReadString(String str) C-API
This function reads and parses a configuration from the string str into the configuration object config

◆ RootSetting()

native LcSettingC jvlcconfig.LcConfigC.RootSetting ( )

Java: LcSettingC config.RootSetting() C-API
This function, which is implemented as a macro, returns the root setting for the configuration config

◆ WriteFile()

native void jvlcconfig.LcConfigC.WriteFile ( String filename)

Java: config.WriteFile(String filename) C-API
This function writes the configuration config to the file named filename

◆ WriteString()

native String jvlcconfig.LcConfigC.WriteString ( )

Java: String cfg.WriteString() C-API
read the entire configuration cfg into the string val_out