theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_Set_JV_API

LcConfigC - various functions to set config-dataMore...

+ Collaboration diagram for LcConfigC_Set_JV_API:

Functions

native void jvlcconfig.LcConfigC.SetDefaultFormat (LcConfigFormatE format)
  Java: config.SetDefaultFormat(LcConfigFormatE format) C-API
These functions, which are implemented as macros, get and set the default external format for settings in the configuration config
 
native void jvlcconfig.LcConfigC.SetFloatPrecision (short digits)
  Java: config.SetFloatPrecision(short digits) C-API
Since v1.6 These functions get and set the number of decimal digits to output after the radix character when writing the configuration to a file or stream …
 
native void jvlcconfig.LcConfigC.SetIncludeDir (String include_dir)
  Java: config.SetIncludeDir(String include_dir) C-API
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config
 
native void jvlcconfig.LcConfigC.SetIncludeFunc (LcConfigIncludeIF fConfigIncludeData)
  Java: cfg.SetIncludeFunc(?LcConfigIncludeIF fConfigIncludeData = null?) C-API
set the __parser__(callback-name) for the include-config-file
 
native void jvlcconfig.LcConfigC.SetOption (LcConfigOptionsEF option, boolean flag)
  Java: config.SetOption(LcConfigOptionsEF option, boolean flag) C-API
Since v1.7 These functions get and set the given option of the configuration config
 
native void jvlcconfig.LcConfigC.SetOptions (LcConfigOptionsEF options)
  Java: config.SetOptions(LcConfigOptionsEF options) C-API
These functions get and set the options for the configuration config
 
native void jvlcconfig.LcConfigC.SetSettingDeleteFunc (LcSettingDeleteIF fSettingDeleteData)
  Java: cfg.SetSettingDeleteFunc(?LcSettingDeleteIF fSettingDeleteData = null?) C-API
set the callback-name for the setting-delete
 
native void jvlcconfig.LcConfigC.SetTabWidth (short width)
  Java: config.SetTabWidth(short width) C-API
These functions, which are implemented as macros, get and set the tab width for the configuration config
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetDefaultFormat (JNIEnv *env, jobject self, jobject format)
  Java: config.SetDefaultFormat(LcConfigFormatE format) C-API
These functions, which are implemented as macros, get and set the default external format for settings in the configuration config
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetFloatPrecision (JNIEnv *env, jobject self, jshort digits)
  Java: config.SetFloatPrecision(short digits) C-API
Since v1.6 These functions get and set the number of decimal digits to output after the radix character when writing the configuration to a file or stream …
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetIncludeDir (JNIEnv *env, jobject self, jstring include_dir)
  Java: config.SetIncludeDir(String include_dir) C-API
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetIncludeFunc (JNIEnv *env, jobject self, jobject fConfigIncludeData)
  Java: cfg.SetIncludeFunc(?LcConfigIncludeIF fConfigIncludeData = null?) C-API
set the __parser__(callback-name) for the include-config-file
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetOption (JNIEnv *env, jobject self, jobject option, jboolean flag)
  Java: config.SetOption(LcConfigOptionsEF option, boolean flag) C-API
Since v1.7 These functions get and set the given option of the configuration config
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetOptions (JNIEnv *env, jobject self, jobject options)
  Java: config.SetOptions(LcConfigOptionsEF options) C-API
These functions get and set the options for the configuration config
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetSettingDeleteFunc (JNIEnv *env, jobject self, jobject fSettingDeleteData)
  Java: cfg.SetSettingDeleteFunc(?LcSettingDeleteIF fSettingDeleteData = null?) C-API
set the callback-name for the setting-delete
 
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetTabWidth (JNIEnv *env, jobject self, jshort width)
  Java: config.SetTabWidth(short width) C-API
These functions, which are implemented as macros, get and set the tab width for the configuration config
 

Detailed Description

LcConfigC - various functions to set config-data

Function Documentation

◆ Java_jvlcconfig_LcConfigC_SetDefaultFormat()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetDefaultFormat ( JNIEnv * env,
jobject self,
jobject format )

Java: config.SetDefaultFormat(LcConfigFormatE format) C-API
These functions, which are implemented as macros, get and set the default external format for settings in the configuration config

Definition at line 453 of file LcConfigC_jv.c.

453 {
454 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
455 JavaErrorCheck;
456 MkRtSetup_X(hdl);
457 enum LcConfigFormatE format_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigFormatE), format);
458 JavaErrorCheck;
459 LcConfigSetDefaultFormat(hdl, format_e);
460error:
461 return;
462}
struct LcConfigS * LC_CFG
class-shortcut for struct LcConfigS *, all shortcut using the XX_YYY syntax (only for public API) …
static void LcConfigSetDefaultFormat(LC_CFG config, enum LcConfigFormatE format)
These functions, which are implemented as macros, get and set the default external format for setting...
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:30
#define MkRtSetup_X(x)
Struct to represent the data from the LcConfigC …

◆ Java_jvlcconfig_LcConfigC_SetFloatPrecision()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetFloatPrecision ( JNIEnv * env,
jobject self,
jshort digits )

Java: config.SetFloatPrecision(short digits) C-API
Since v1.6 These functions get and set the number of decimal digits to output after the radix character when writing the configuration to a file or stream …

Definition at line 465 of file LcConfigC_jv.c.

465 {
466 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
467 JavaErrorCheck;
468 MkRtSetup_X(hdl);
469 LcConfigSetFloatPrecision(hdl, digits);
470error:
471 return;
472}
static void LcConfigSetFloatPrecision(LC_CFG config, MK_I16 digits)
Since v1.6 These functions get and set the number of decimal digits to output after the radix charact...

◆ Java_jvlcconfig_LcConfigC_SetIncludeDir()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetIncludeDir ( JNIEnv * env,
jobject self,
jstring include_dir )

Java: config.SetIncludeDir(String include_dir) C-API
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config

Definition at line 475 of file LcConfigC_jv.c.

475 {
476 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
477 JavaErrorCheck;
478 MkRtSetup_X(hdl);
479 MK_STRN include_dir_ptr = (include_dir?(*env)->GetStringUTFChars(env,include_dir,NULL):NULL);
480 JavaErrorCheck;
481 LcConfigSetIncludeDir(hdl, include_dir_ptr);
482 if (include_dir_ptr) (*env)->ReleaseStringUTFChars(env,include_dir,include_dir_ptr);
483error:
484 return;
485}
static void LcConfigSetIncludeDir(LC_CFG config, MK_STRN include_dir)
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specifi...
const MK_STRB * MK_STRN

◆ Java_jvlcconfig_LcConfigC_SetIncludeFunc()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetIncludeFunc ( JNIEnv * env,
jobject self,
jobject fConfigIncludeData )

Java: cfg.SetIncludeFunc(?LcConfigIncludeIF fConfigIncludeData = null?) C-API
set the __parser__(callback-name) for the include-config-file

Definition at line 488 of file LcConfigC_jv.c.

488 {
489 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
490 JavaErrorCheck;
491 MkRtSetup_X(hdl);
492 LcConfigIncludeCallF fConfigIncludeCall = NS(ConfigIncludeCall);
493 LC_CBP fConfigIncludeData_ptr = MK(ProcCreate)(MK_RT_CALL env, fConfigIncludeData, NULL, NS(MID_fConfigIncludeData), true);
494 JavaErrorCheck;
495 if (fConfigIncludeData_ptr == NULL) fConfigIncludeCall = NULL;
496 enum MkErrorE errVal = LcConfigSetIncludeFunc(hdl, fConfigIncludeCall, fConfigIncludeData_ptr, NS(ConfigIncludeFree));
497 MkErrorC_Check(hdl, errVal)
498error:
499 return;
500}
MK_PTRB * LC_CBP
enum MkErrorE(* LcConfigIncludeCallF)(LcConfigIncludeCallF_ARGS)
#define LcConfigSetIncludeFunc(...)
MkErrorE
#define MK_RT_CALL

◆ Java_jvlcconfig_LcConfigC_SetOption()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetOption ( JNIEnv * env,
jobject self,
jobject option,
jboolean flag )

Java: config.SetOption(LcConfigOptionsEF option, boolean flag) C-API
Since v1.7 These functions get and set the given option of the configuration config

Definition at line 503 of file LcConfigC_jv.c.

503 {
504 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
505 JavaErrorCheck;
506 MkRtSetup_X(hdl);
507 enum LcConfigOptionsEF option_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigOptionsEF), option);
508 JavaErrorCheck;
509 LcConfigSetOption(hdl, option_e, flag);
510error:
511 return;
512}
static void LcConfigSetOption(LC_CFG config, enum LcConfigOptionsEF option, MK_BOOL flag)
Since v1.7 These functions get and set the given option of the configuration config …
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
Definition LcEnum_lc.h:134

◆ Java_jvlcconfig_LcConfigC_SetOptions()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetOptions ( JNIEnv * env,
jobject self,
jobject options )

Java: config.SetOptions(LcConfigOptionsEF options) C-API
These functions get and set the options for the configuration config

Definition at line 515 of file LcConfigC_jv.c.

515 {
516 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
517 JavaErrorCheck;
518 MkRtSetup_X(hdl);
519 enum LcConfigOptionsEF options_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigOptionsEF), options);
520 JavaErrorCheck;
521 LcConfigSetOptions(hdl, options_e);
522error:
523 return;
524}
static void LcConfigSetOptions(LC_CFG config, enum LcConfigOptionsEF options)
These functions get and set the options for the configuration config …

◆ Java_jvlcconfig_LcConfigC_SetSettingDeleteFunc()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetSettingDeleteFunc ( JNIEnv * env,
jobject self,
jobject fSettingDeleteData )

Java: cfg.SetSettingDeleteFunc(?LcSettingDeleteIF fSettingDeleteData = null?) C-API
set the callback-name for the setting-delete

Definition at line 527 of file LcConfigC_jv.c.

527 {
528 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
529 JavaErrorCheck;
530 MkRtSetup_X(hdl);
531 LcSettingDeleteCallF fSettingDeleteCall = NS(SettingDeleteCall);
532 LC_CBP fSettingDeleteData_ptr = MK(ProcCreate)(MK_RT_CALL env, fSettingDeleteData, NULL, NS(MID_fSettingDeleteData), true);
533 JavaErrorCheck;
534 if (fSettingDeleteData_ptr == NULL) fSettingDeleteCall = NULL;
535 enum MkErrorE errVal = LcConfigSetSettingDeleteFunc(hdl, fSettingDeleteCall, fSettingDeleteData_ptr, NS(SettingDeleteFree));
536 MkErrorC_Check(hdl, errVal)
537error:
538 return;
539}
enum MkErrorE(* LcSettingDeleteCallF)(LcSettingDeleteCallF_ARGS)
#define LcConfigSetSettingDeleteFunc(...)

◆ Java_jvlcconfig_LcConfigC_SetTabWidth()

JNIEXPORT void JNICALL Java_jvlcconfig_LcConfigC_SetTabWidth ( JNIEnv * env,
jobject self,
jshort width )

Java: config.SetTabWidth(short width) C-API
These functions, which are implemented as macros, get and set the tab width for the configuration config

Definition at line 542 of file LcConfigC_jv.c.

542 {
543 LC_CFG hdl = (LC_CFG)pObj2Hdl(env,"LcConfigC",self);
544 JavaErrorCheck;
545 MkRtSetup_X(hdl);
546 LcConfigSetTabWidth(hdl, width);
547error:
548 return;
549}
static void LcConfigSetTabWidth(LC_CFG config, MK_I16 width)
These functions, which are implemented as macros, get and set the tab width for the configuration con...

◆ SetDefaultFormat()

native void jvlcconfig.LcConfigC.SetDefaultFormat ( LcConfigFormatE format)

Java: config.SetDefaultFormat(LcConfigFormatE format) C-API
These functions, which are implemented as macros, get and set the default external format for settings in the configuration config

◆ SetFloatPrecision()

native void jvlcconfig.LcConfigC.SetFloatPrecision ( short digits)

Java: config.SetFloatPrecision(short digits) C-API
Since v1.6 These functions get and set the number of decimal digits to output after the radix character when writing the configuration to a file or stream …

◆ SetIncludeDir()

native void jvlcconfig.LcConfigC.SetIncludeDir ( String include_dir)

Java: config.SetIncludeDir(String include_dir) C-API
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config

◆ SetIncludeFunc()

native void jvlcconfig.LcConfigC.SetIncludeFunc ( LcConfigIncludeIF fConfigIncludeData)

◆ SetOption()

native void jvlcconfig.LcConfigC.SetOption ( LcConfigOptionsEF option,
boolean flag )

Java: config.SetOption(LcConfigOptionsEF option, boolean flag) C-API
Since v1.7 These functions get and set the given option of the configuration config

◆ SetOptions()

native void jvlcconfig.LcConfigC.SetOptions ( LcConfigOptionsEF options)

Java: config.SetOptions(LcConfigOptionsEF options) C-API
These functions get and set the options for the configuration config

◆ SetSettingDeleteFunc()

native void jvlcconfig.LcConfigC.SetSettingDeleteFunc ( LcSettingDeleteIF fSettingDeleteData)

Java: cfg.SetSettingDeleteFunc(?LcSettingDeleteIF fSettingDeleteData = null?) C-API
set the callback-name for the setting-delete

◆ SetTabWidth()

native void jvlcconfig.LcConfigC.SetTabWidth ( short width)

Java: config.SetTabWidth(short width) C-API
These functions, which are implemented as macros, get and set the tab width for the configuration config