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_Misc_JV_API

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

+ Collaboration diagram for LcSettingC_Misc_JV_API:

Functions

native LcSettingC jvlcconfig.LcSettingC.AddIfNotExists (String name, LcConfigTypeE cfgtype)
  Java: LcSettingC setting.AddIfNotExists(String name, LcConfigTypeE cfgtype) C-API
addon - add name with type only if not exists in the setting
 
native LcSettingC jvlcconfig.LcSettingC.Parent ()
  Java: LcSettingC setting.Parent() C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …
 
native boolean jvlcconfig.LcSettingC.Exists (String name)
  Java: boolean setting.Exists(String name) C-API
addon - return true if name exists in the setting otherwise false
 
native int jvlcconfig.LcSettingC.Index ()
  Java: int setting.Index() C-API
This function returns the index of the given setting within its parent setting …
 
native int jvlcconfig.LcSettingC.Length ()
  Java: int setting.Length() C-API
This function returns the number of settings in a group, or the number of elements in a list or array …
 
void jvlcconfig.LcSettingC.Log ()
  Java: setting.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the setting
 
void jvlcconfig.LcSettingC.Log (MkObjectC fmtobj)
  Java: setting.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the setting
 
void jvlcconfig.LcSettingC.Log (MkObjectC fmtobj, int debug)
  Java: setting.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the setting
 
void jvlcconfig.LcSettingC.Log (MkObjectC fmtobj, int debug, String callfunc)
  Java: setting.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the setting
 
native String jvlcconfig.LcSettingC.Name ()
  Java: String setting.Name() C-API
This function returns the name of the given setting, or NULL if the setting has no name …
 
native void jvlcconfig.LcSettingC.Remove (String name)
  Java: parent.Remove(String name) C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …
 
native void jvlcconfig.LcSettingC.RemoveElem (int idx)
  Java: parent.RemoveElem(int idx) C-API
This function removes the child setting at the given index index from the setting parent, which must be a group, list, or array …
 
native String jvlcconfig.LcSettingC.SourceFile ()
  Java: String setting.SourceFile() C-API
This function returns the name of the file from which the setting setting was read, or NULL if the setting was not read from a file …
 
native int jvlcconfig.LcSettingC.SourceLine ()
  Java: int setting.SourceLine() C-API
This function returns the line number of the configuration file or stream at which the setting setting was read, or 0 if no line number is available …
 
native LcConfigTypeE jvlcconfig.LcSettingC.Type ()
  Java: LcConfigTypeE setting.Type() C-API
This function returns the type of the given setting
 
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_AddIfNotExists (JNIEnv *env, jobject self, jstring name, jobject cfgtype)
  Java: LcSettingC setting.AddIfNotExists(String name, LcConfigTypeE cfgtype) C-API
addon - add name with type only if not exists in the setting
 
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Parent (JNIEnv *env, jobject self)
  Java: LcSettingC setting.Parent() C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …
 
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_Exists (JNIEnv *env, jobject self, jstring name)
  Java: boolean setting.Exists(String name) C-API
addon - return true if name exists in the setting otherwise false
 
JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_Index (JNIEnv *env, jobject self)
  Java: int setting.Index() C-API
This function returns the index of the given setting within its parent setting …
 
JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_Length (JNIEnv *env, jobject self)
  Java: int setting.Length() C-API
This function returns the number of settings in a group, or the number of elements in a list or array …
 
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_Name (JNIEnv *env, jobject self)
  Java: String setting.Name() C-API
This function returns the name of the given setting, or NULL if the setting has no name …
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_Remove (JNIEnv *env, jobject self, jstring name)
  Java: parent.Remove(String name) C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_RemoveElem (JNIEnv *env, jobject self, jint idx)
  Java: parent.RemoveElem(int idx) C-API
This function removes the child setting at the given index index from the setting parent, which must be a group, list, or array …
 
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_SourceFile (JNIEnv *env, jobject self)
  Java: String setting.SourceFile() C-API
This function returns the name of the file from which the setting setting was read, or NULL if the setting was not read from a file …
 
JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_SourceLine (JNIEnv *env, jobject self)
  Java: int setting.SourceLine() C-API
This function returns the line number of the configuration file or stream at which the setting setting was read, or 0 if no line number is available …
 
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Type (JNIEnv *env, jobject self)
  Java: LcConfigTypeE setting.Type() C-API
This function returns the type of the given setting
 

Detailed Description

LcSettingC - various functions to perform misc operations …

Function Documentation

◆ AddIfNotExists()

native LcSettingC jvlcconfig.LcSettingC.AddIfNotExists ( String name,
LcConfigTypeE cfgtype )

Java: LcSettingC setting.AddIfNotExists(String name, LcConfigTypeE cfgtype) C-API
addon - add name with type only if not exists in the setting

◆ Exists()

native boolean jvlcconfig.LcSettingC.Exists ( String name)

Java: boolean setting.Exists(String name) C-API
addon - return true if name exists in the setting otherwise false

◆ Index()

native int jvlcconfig.LcSettingC.Index ( )

Java: int setting.Index() C-API
This function returns the index of the given setting within its parent setting …

◆ Java_jvlcconfig_LcSettingC_AddIfNotExists()

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

Java: LcSettingC setting.AddIfNotExists(String name, LcConfigTypeE cfgtype) C-API
addon - add name with type only if not exists in the setting

Definition at line 529 of file LcSettingC_jv.c.

529 {
530 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
531 JavaErrorCheck;
532 MkRtSetup_X(hdl);
533 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
534 JavaErrorCheck;
535 enum LcConfigTypeE cfgtype_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigTypeE), cfgtype);
536 JavaErrorCheck;
537 LC_CFS __retVal__L = LcSettingAddIfNotExists(hdl, name_ptr, cfgtype_e);
538 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
539 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
540 return __retVal__S;
541error:
542 return 0;
543}
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:81
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 LcSettingAddIfNotExists(LC_CFS setting, MK_STRN name, enum LcConfigTypeE cfgtype)
addon - add name with type only if not exists in the 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_Exists()

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

Java: boolean setting.Exists(String name) C-API
addon - return true if name exists in the setting otherwise false

Definition at line 564 of file LcSettingC_jv.c.

564 {
565 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
566 JavaErrorCheck;
567 MkRtSetup_X(hdl);
568 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
569 JavaErrorCheck;
570 MK_BOOL __retVal__L = LcSettingExists(hdl, name_ptr);
571 jboolean __retVal__S = __retVal__L;
572 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
573 return __retVal__S;
574error:
575 return 0;
576}
static bool LcSettingExists(const LC_CFS setting, MK_STRN name)
addon - return true if name exists in the setting otherwise false …
bool MK_BOOL

◆ Java_jvlcconfig_LcSettingC_Index()

JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_Index ( JNIEnv * env,
jobject self )

Java: int setting.Index() C-API
This function returns the index of the given setting within its parent setting …

Definition at line 579 of file LcSettingC_jv.c.

579 {
580 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
581 JavaErrorCheck;
582 MkRtSetup_X(hdl);
583 MK_I32 __retVal__L = LcSettingIndex(hdl);
584 jint __retVal__S = __retVal__L;
585 return __retVal__S;
586error:
587 return 0;
588}
const struct LcSettingS * LC_CFSN
class-shortcut for const struct LcSettingS *, all const shortcut using the XX_YYYC syntax (only for p...
static MK_I32 LcSettingIndex(LC_CFSN setting)
This function returns the index of the given setting within its parent setting …
signed int MK_I32

◆ Java_jvlcconfig_LcSettingC_Length()

JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_Length ( JNIEnv * env,
jobject self )

Java: int setting.Length() C-API
This function returns the number of settings in a group, or the number of elements in a list or array …

Definition at line 591 of file LcSettingC_jv.c.

591 {
592 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
593 JavaErrorCheck;
594 MkRtSetup_X(hdl);
595 MK_I32 __retVal__L = LcSettingLength(hdl);
596 jint __retVal__S = __retVal__L;
597 return __retVal__S;
598error:
599 return 0;
600}
static MK_I32 LcSettingLength(LC_CFSN setting)
This function returns the number of settings in a group, or the number of elements in a list or array...

◆ Java_jvlcconfig_LcSettingC_Name()

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

Java: String setting.Name() C-API
This function returns the name of the given setting, or NULL if the setting has no name …

Definition at line 605 of file LcSettingC_jv.c.

605 {
606 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
607 JavaErrorCheck;
608 MkRtSetup_X(hdl);
609 MK_STRN __retVal__L = LcSettingName(hdl);
610 jstring __retVal__S = JC2O(env,__retVal__L);
611 return __retVal__S;
612error:
613 return 0;
614}
static MK_STRN LcSettingName(LC_CFSN setting)
This function returns the name of the given setting, or NULL if the setting has no name …

◆ Java_jvlcconfig_LcSettingC_Parent()

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

Java: LcSettingC setting.Parent() C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …

Definition at line 546 of file LcSettingC_jv.c.

546 {
547 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
548 JavaErrorCheck;
549 MkRtSetup_X(hdl);
550 LC_CFS __retVal__L = LcSettingParent(hdl);
551 if (__retVal__L == NULL) {
552 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.Parent");
553 goto error;
554 }
555 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
556 return __retVal__S;
557error:
558 return 0;
559}
static LC_CFS LcSettingParent(LC_CFSN setting)
This function returns the parent setting of the given setting, or NULL if setting is the root setting...

◆ Java_jvlcconfig_LcSettingC_Remove()

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

Java: parent.Remove(String name) C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …

Definition at line 617 of file LcSettingC_jv.c.

617 {
618 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
619 JavaErrorCheck;
620 MkRtSetup_X(hdl);
621 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
622 JavaErrorCheck;
623 enum MkErrorE errVal = LcSettingRemove(hdl, name_ptr);
624 MkErrorC_Check(hdl, errVal)
625 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
626error:
627 return;
628}
static enum MkErrorE LcSettingRemove(LC_CFS parent, MK_STRN name)
This function removes and destroys the setting named name from the parent setting parent,...
MkErrorE

◆ Java_jvlcconfig_LcSettingC_RemoveElem()

JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_RemoveElem ( JNIEnv * env,
jobject self,
jint idx )

Java: parent.RemoveElem(int idx) C-API
This function removes the child setting at the given index index from the setting parent, which must be a group, list, or array …

Definition at line 631 of file LcSettingC_jv.c.

631 {
632 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
633 JavaErrorCheck;
634 MkRtSetup_X(hdl);
635 enum MkErrorE errVal = LcSettingRemoveElem(hdl, idx);
636 MkErrorC_Check(hdl, errVal)
637error:
638 return;
639}
static enum MkErrorE LcSettingRemoveElem(LC_CFS parent, MK_I32 idx)
This function removes the child setting at the given index index from the setting parent,...

◆ Java_jvlcconfig_LcSettingC_SourceFile()

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

Java: String setting.SourceFile() C-API
This function returns the name of the file from which the setting setting was read, or NULL if the setting was not read from a file …

Definition at line 642 of file LcSettingC_jv.c.

642 {
643 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
644 JavaErrorCheck;
645 MkRtSetup_X(hdl);
646 MK_STRN __retVal__L = LcSettingSourceFile(hdl);
647 jstring __retVal__S = JC2O(env,__retVal__L);
648 return __retVal__S;
649error:
650 return 0;
651}
static MK_STRN LcSettingSourceFile(LC_CFSN setting)
This function returns the name of the file from which the setting setting was read,...

◆ Java_jvlcconfig_LcSettingC_SourceLine()

JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_SourceLine ( JNIEnv * env,
jobject self )

Java: int setting.SourceLine() C-API
This function returns the line number of the configuration file or stream at which the setting setting was read, or 0 if no line number is available …

Definition at line 654 of file LcSettingC_jv.c.

654 {
655 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
656 JavaErrorCheck;
657 MkRtSetup_X(hdl);
658 MK_I32 __retVal__L = LcSettingSourceLine(hdl);
659 jint __retVal__S = __retVal__L;
660 return __retVal__S;
661error:
662 return 0;
663}
static MK_I32 LcSettingSourceLine(LC_CFSN setting)
This function returns the line number of the configuration file or stream at which the setting settin...

◆ Java_jvlcconfig_LcSettingC_Type()

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

Java: LcConfigTypeE setting.Type() C-API
This function returns the type of the given setting

Definition at line 666 of file LcSettingC_jv.c.

666 {
667 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
668 JavaErrorCheck;
669 MkRtSetup_X(hdl);
670 enum LcConfigTypeE __retVal__L = LcSettingType(hdl);
671 jobject __retVal__S = MK(pGetEnumFromString)(env,LC(Class_LcConfigTypeE),"Ljvlcconfig/LcConfigTypeE;",LcConfigTypeE_ToString(__retVal__L));
672 return __retVal__S;
673error:
674 return 0;
675}
MK_STRN LcConfigTypeE_ToString(enum LcConfigTypeE value)
return the LcConfigTypeE as string …
static enum LcConfigTypeE LcSettingType(LC_CFSN setting)
This function returns the type of the given setting …

◆ Length()

native int jvlcconfig.LcSettingC.Length ( )

Java: int setting.Length() C-API
This function returns the number of settings in a group, or the number of elements in a list or array …

◆ Log() [1/4]

void jvlcconfig.LcSettingC.Log ( )

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

Definition at line 227 of file LcSettingC.java.

227 {
228 Log ((MkObjectC) null, 0, null, 0);
229 }
void Log()
Java: setting.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?...
+ Here is the caller graph for this function:

◆ Log() [2/4]

void jvlcconfig.LcSettingC.Log ( MkObjectC fmtobj)

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

Definition at line 232 of file LcSettingC.java.

232 {
233 Log (fmtobj, 0, null, 0);
234 }

◆ Log() [3/4]

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

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

Definition at line 237 of file LcSettingC.java.

237 {
238 Log (fmtobj, debug, null, 0);
239 }

◆ Log() [4/4]

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

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

Definition at line 242 of file LcSettingC.java.

242 {
243 Log (fmtobj, debug, callfunc, 0);
244 }

◆ Name()

native String jvlcconfig.LcSettingC.Name ( )

Java: String setting.Name() C-API
This function returns the name of the given setting, or NULL if the setting has no name …

◆ Parent()

native LcSettingC jvlcconfig.LcSettingC.Parent ( )

Java: LcSettingC setting.Parent() C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …

◆ Remove()

native void jvlcconfig.LcSettingC.Remove ( String name)

Java: parent.Remove(String name) C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …

◆ RemoveElem()

native void jvlcconfig.LcSettingC.RemoveElem ( int idx)

Java: parent.RemoveElem(int idx) C-API
This function removes the child setting at the given index index from the setting parent, which must be a group, list, or array …

◆ SourceFile()

native String jvlcconfig.LcSettingC.SourceFile ( )

Java: String setting.SourceFile() C-API
This function returns the name of the file from which the setting setting was read, or NULL if the setting was not read from a file …

◆ SourceLine()

native int jvlcconfig.LcSettingC.SourceLine ( )

Java: int setting.SourceLine() C-API
This function returns the line number of the configuration file or stream at which the setting setting was read, or 0 if no line number is available …

◆ Type()

native LcConfigTypeE jvlcconfig.LcSettingC.Type ( )

Java: LcConfigTypeE setting.Type() C-API
This function returns the type of the given setting