theConfig 10.0
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 526 of file LcSettingC_jv.c.

526 {
527 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
528 JavaErrorCheck;
529 MkRtSetup_X(hdl);
530 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
531 JavaErrorCheck;
532 enum LcConfigTypeE cfgtype_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigTypeE), cfgtype);
533 JavaErrorCheck;
534 LC_CFS __retVal__L = LcSettingAddIfNotExists(hdl, name_ptr, cfgtype_e);
535 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
536 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
537 return __retVal__S;
538error:
539 return 0;
540}
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
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 561 of file LcSettingC_jv.c.

561 {
562 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
563 JavaErrorCheck;
564 MkRtSetup_X(hdl);
565 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
566 JavaErrorCheck;
567 MK_BOOL __retVal__L = LcSettingExists(hdl, name_ptr);
568 jboolean __retVal__S = __retVal__L;
569 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
570 return __retVal__S;
571error:
572 return 0;
573}
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 576 of file LcSettingC_jv.c.

576 {
577 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
578 JavaErrorCheck;
579 MkRtSetup_X(hdl);
580 MK_I32 __retVal__L = LcSettingIndex(hdl);
581 jint __retVal__S = __retVal__L;
582 return __retVal__S;
583error:
584 return 0;
585}
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 588 of file LcSettingC_jv.c.

588 {
589 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
590 JavaErrorCheck;
591 MkRtSetup_X(hdl);
592 MK_I32 __retVal__L = LcSettingLength(hdl);
593 jint __retVal__S = __retVal__L;
594 return __retVal__S;
595error:
596 return 0;
597}
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 602 of file LcSettingC_jv.c.

602 {
603 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
604 JavaErrorCheck;
605 MkRtSetup_X(hdl);
606 MK_STRN __retVal__L = LcSettingName(hdl);
607 jstring __retVal__S = JC2O(env,__retVal__L);
608 return __retVal__S;
609error:
610 return 0;
611}
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 543 of file LcSettingC_jv.c.

543 {
544 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
545 JavaErrorCheck;
546 MkRtSetup_X(hdl);
547 LC_CFS __retVal__L = LcSettingParent(hdl);
548 if (__retVal__L == NULL) {
549 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.Parent");
550 goto error;
551 }
552 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
553 return __retVal__S;
554error:
555 return 0;
556}
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 614 of file LcSettingC_jv.c.

614 {
615 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
616 JavaErrorCheck;
617 MkRtSetup_X(hdl);
618 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
619 JavaErrorCheck;
620 enum MkErrorE errVal = LcSettingRemove(hdl, name_ptr);
621 MkErrorC_Check(hdl, errVal)
622 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
623error:
624 return;
625}
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 628 of file LcSettingC_jv.c.

628 {
629 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
630 JavaErrorCheck;
631 MkRtSetup_X(hdl);
632 enum MkErrorE errVal = LcSettingRemoveElem(hdl, idx);
633 MkErrorC_Check(hdl, errVal)
634error:
635 return;
636}
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 639 of file LcSettingC_jv.c.

639 {
640 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
641 JavaErrorCheck;
642 MkRtSetup_X(hdl);
643 MK_STRN __retVal__L = LcSettingSourceFile(hdl);
644 jstring __retVal__S = JC2O(env,__retVal__L);
645 return __retVal__S;
646error:
647 return 0;
648}
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 651 of file LcSettingC_jv.c.

651 {
652 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
653 JavaErrorCheck;
654 MkRtSetup_X(hdl);
655 MK_I32 __retVal__L = LcSettingSourceLine(hdl);
656 jint __retVal__S = __retVal__L;
657 return __retVal__S;
658error:
659 return 0;
660}
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 663 of file LcSettingC_jv.c.

663 {
664 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
665 JavaErrorCheck;
666 MkRtSetup_X(hdl);
667 enum LcConfigTypeE __retVal__L = LcSettingType(hdl);
668 jobject __retVal__S = MK(pGetEnumFromString)(env,LC(Class_LcConfigTypeE),"Ljvlcconfig/LcConfigTypeE;",LcConfigTypeE_ToString(__retVal__L));
669 return __retVal__S;
670error:
671 return 0;
672}
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 224 of file LcSettingC.java.

224 {
225 Log ((MkObjectC) null, 0, null, 0);
226 }
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 229 of file LcSettingC.java.

229 {
230 Log (fmtobj, 0, null, 0);
231 }

◆ 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 234 of file LcSettingC.java.

234 {
235 Log (fmtobj, debug, null, 0);
236 }

◆ 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 239 of file LcSettingC.java.

239 {
240 Log (fmtobj, debug, callfunc, 0);
241 }

◆ 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