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

356 {
357 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
358 JavaErrorCheck;
359 MkRtSetup_X(hdl);
360 LcConfigClear(hdl);
361error:
362 return;
363}
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 366 of file LcConfigC_jv.c.

366 {
367 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
368 JavaErrorCheck;
369 MkRtSetup_X(hdl);
370 MK_OBJN fmtobj_hdl = (MK_OBJN)pObj2Hdl__null_allow(env,fmtobj);
371 JavaErrorCheck;
372 if (callfunc == NULL) {
373 (*env)->CallStaticVoidMethod(env,MK(Class_MkKernel),MK(MID_MkKernel_getCallerStack));
374 }
375 if (callfunc == NULL) {callfunc = MK(pGetCallerProc)(env);}
376 if (debug > (jint)(MkRuntimeDebugGet())) {return;}
377 MK_STRN callfunc_ptr = (callfunc?(*env)->GetStringUTFChars(env,callfunc,NULL):NULL);
378 JavaErrorCheck;
379 LcConfigLog(hdl, fmtobj_hdl, debug, callfunc_ptr, lvl);
380 if (callfunc_ptr) (*env)->ReleaseStringUTFChars(env,callfunc,callfunc_ptr);
381error:
382 return;
383}
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 386 of file LcConfigC_jv.c.

386 {
387 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
388 JavaErrorCheck;
389 MkRtSetup_X(hdl);
390 MK_STRN filename_ptr = (filename?(*env)->GetStringUTFChars(env,filename,NULL):NULL);
391 JavaErrorCheck;
392 enum MkErrorE errVal = LcConfigReadFile(hdl, filename_ptr);
393 MkErrorC_Check(hdl, errVal)
394 if (filename_ptr) (*env)->ReleaseStringUTFChars(env,filename,filename_ptr);
395error:
396 return;
397}
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 400 of file LcConfigC_jv.c.

400 {
401 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
402 JavaErrorCheck;
403 MkRtSetup_X(hdl);
404 MK_STRN str_ptr = (str?(*env)->GetStringUTFChars(env,str,NULL):NULL);
405 JavaErrorCheck;
406 enum MkErrorE errVal = LcConfigReadString(hdl, str_ptr);
407 MkErrorC_Check(hdl, errVal)
408 if (str_ptr) (*env)->ReleaseStringUTFChars(env,str,str_ptr);
409error:
410 return;
411}
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 342 of file LcConfigC_jv.c.

342 {
343 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
344 JavaErrorCheck;
345 MkRtSetup_X(hdl);
346 LC_CFS __retVal__L = LcConfigRootSetting(hdl);
347 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
348 return __retVal__S;
349error:
350 return 0;
351}
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 414 of file LcConfigC_jv.c.

414 {
415 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
416 JavaErrorCheck;
417 MkRtSetup_X(hdl);
418 MK_STRN filename_ptr = (filename?(*env)->GetStringUTFChars(env,filename,NULL):NULL);
419 JavaErrorCheck;
420 enum MkErrorE errVal = LcConfigWriteFile(hdl, filename_ptr);
421 MkErrorC_Check(hdl, errVal)
422 if (filename_ptr) (*env)->ReleaseStringUTFChars(env,filename,filename_ptr);
423error:
424 return;
425}
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 430 of file LcConfigC_jv.c.

430 {
431 LC_CFGN hdl = (LC_CFGN)pObj2Hdl(env,"LcConfigC",self);
432 JavaErrorCheck;
433 MkRtSetup_X(hdl);
434 MK_STRN val_out;
435 enum MkErrorE errVal = LcConfigWriteString(hdl, &val_out);
436 MkErrorC_Check(hdl, errVal)
437 jstring __retVal__S = JC2O(env,val_out);
438 return __retVal__S;
439error:
440 return 0;
441}
#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 175 of file LcConfigC.java.

175 {
176 Log ((MkObjectC) null, 0, null, 0);
177 }
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 180 of file LcConfigC.java.

180 {
181 Log (fmtobj, 0, null, 0);
182 }

◆ 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 185 of file LcConfigC.java.

185 {
186 Log (fmtobj, debug, null, 0);
187 }

◆ 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 190 of file LcConfigC.java.

190 {
191 Log (fmtobj, debug, callfunc, 0);
192 }

◆ 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