theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_Set_RB_API

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

+ Collaboration diagram for LcConfigC_Set_RB_API:

Functions

static OT_ProcRet rblcconfig_LcConfigC_SetDefaultFormat (LcConfigC_ARGS)
  Ruby: config.SetDefaultFormat(format:LcConfigFormatE) C-API
These functions, which are implemented as macros, get and set the default external format for settings in the configuration config
 
static OT_ProcRet rblcconfig_LcConfigC_SetFloatPrecision (LcConfigC_ARGS)
  Ruby: config.SetFloatPrecision(digits:int16) 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 …
 
static OT_ProcRet rblcconfig_LcConfigC_SetIncludeDir (LcConfigC_ARGS)
  Ruby: config.SetIncludeDir(include_dir:string) 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
 
static OT_ProcRet rblcconfig_LcConfigC_SetIncludeFunc (LcConfigC_ARGS)
  Ruby: cfg.SetIncludeFunc(?fConfigIncludeData:LC_CBP=nil?) C-API
set the __parser__(callback-name) for the include-config-file
 
static OT_ProcRet rblcconfig_LcConfigC_SetOption (LcConfigC_ARGS)
  Ruby: config.SetOption(option:LcConfigOptionsEF, flag:bool) C-API
Since v1.7 These functions get and set the given option of the configuration config
 
static OT_ProcRet rblcconfig_LcConfigC_SetOptions (LcConfigC_ARGS)
  Ruby: config.SetOptions(options:LcConfigOptionsEF) C-API
These functions get and set the options for the configuration config
 
static OT_ProcRet rblcconfig_LcConfigC_SetSettingDeleteFunc (LcConfigC_ARGS)
  Ruby: cfg.SetSettingDeleteFunc(?fSettingDeleteData:LC_CBP=nil?) C-API
set the callback-name for the setting-delete
 
static OT_ProcRet rblcconfig_LcConfigC_SetTabWidth (LcConfigC_ARGS)
  Ruby: config.SetTabWidth(width:int16) 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

◆ rblcconfig_LcConfigC_SetDefaultFormat()

static OT_ProcRet rblcconfig_LcConfigC_SetDefaultFormat ( LcConfigC_ARGS )
static

Ruby: config.SetDefaultFormat(format:LcConfigFormatE) 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 556 of file LcConfigC_rb.c.

556 {
559 enum LcConfigFormatE format = 0;
562 LcConfigSetDefaultFormat (hdl, format);
564 end: MK_UNUSED /* LONG JUMP on error */
566}
#define OT_SETUP_hdl
#define SetDefaultFormat_doc
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
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 MK_UNUSED
#define OT_CHECK_ENUM(ename, val)

◆ rblcconfig_LcConfigC_SetFloatPrecision()

static OT_ProcRet rblcconfig_LcConfigC_SetFloatPrecision ( LcConfigC_ARGS )
static

Ruby: config.SetFloatPrecision(digits:int16) 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 569 of file LcConfigC_rb.c.

569 {
572 MK_I16 digits = 0;
575 LcConfigSetFloatPrecision (hdl, digits);
577 end: MK_UNUSED /* LONG JUMP on error */
579}
#define SetFloatPrecision_doc
#define OT_CHECK_NI2(val)
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...
signed short int MK_I16

◆ rblcconfig_LcConfigC_SetIncludeDir()

static OT_ProcRet rblcconfig_LcConfigC_SetIncludeDir ( LcConfigC_ARGS )
static

Ruby: config.SetIncludeDir(include_dir:string) 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 582 of file LcConfigC_rb.c.

582 {
585 MK_STRN include_dir = 0;
586 OT_CHECK_REQUIRED(OT_CHECK_STRN (include_dir))
588 LcConfigSetIncludeDir (hdl, include_dir);
590 end: MK_UNUSED /* LONG JUMP on error */
592}
#define SetIncludeDir_doc
#define OT_CHECK_STRN(val)
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

◆ rblcconfig_LcConfigC_SetIncludeFunc()

static OT_ProcRet rblcconfig_LcConfigC_SetIncludeFunc ( LcConfigC_ARGS )
static

Ruby: cfg.SetIncludeFunc(?fConfigIncludeData:LC_CBP=nil?) C-API
set the __parser__(callback-name) for the include-config-file

Definition at line 595 of file LcConfigC_rb.c.

595 {
598 OT_SETUP_CALLABLE(fConfigIncludeData)
599 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(fConfigIncludeData))
601 LcConfigIncludeCallF fConfigIncludeCall = (fConfigIncludeData == NULL ? NULL : NS(ConfigIncludeCall));
602 MkErrorC_Check(hdl,LcConfigSetIncludeFunc (hdl, fConfigIncludeCall, fConfigIncludeData, NS(ConfigIncludeFree)));
604 end: MK_UNUSED /* LONG JUMP on error */
605 OT_CLEANUP_CALLABLE(fConfigIncludeData)
607}
#define SetIncludeFunc_doc
#define NS(n)
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_OPTIONAL(val)
#define MkErrorC_Check(mng, PROC)
enum MkErrorE(* LcConfigIncludeCallF)(LcConfigIncludeCallF_ARGS)
#define LcConfigSetIncludeFunc(...)
#define OT_CHECK_CALLABLE(val)
#define OT_CLEANUP_CALLABLE(val)
#define OT_SETUP_CALLABLE(val)

◆ rblcconfig_LcConfigC_SetOption()

static OT_ProcRet rblcconfig_LcConfigC_SetOption ( LcConfigC_ARGS )
static

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

Definition at line 610 of file LcConfigC_rb.c.

610 {
613 enum LcConfigOptionsEF option = 0;
615 MK_BOOL flag = 0;
618 LcConfigSetOption (hdl, option, flag);
620 end: MK_UNUSED /* LONG JUMP on error */
622}
#define SetOption_doc
#define OT_CHECK_bool(val)
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
bool MK_BOOL

◆ rblcconfig_LcConfigC_SetOptions()

static OT_ProcRet rblcconfig_LcConfigC_SetOptions ( LcConfigC_ARGS )
static

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

Definition at line 625 of file LcConfigC_rb.c.

625 {
628 enum LcConfigOptionsEF options = 0;
631 LcConfigSetOptions (hdl, options);
633 end: MK_UNUSED /* LONG JUMP on error */
635}
#define SetOptions_doc
static void LcConfigSetOptions(LC_CFG config, enum LcConfigOptionsEF options)
These functions get and set the options for the configuration config …

◆ rblcconfig_LcConfigC_SetSettingDeleteFunc()

static OT_ProcRet rblcconfig_LcConfigC_SetSettingDeleteFunc ( LcConfigC_ARGS )
static

Ruby: cfg.SetSettingDeleteFunc(?fSettingDeleteData:LC_CBP=nil?) C-API
set the callback-name for the setting-delete

Definition at line 638 of file LcConfigC_rb.c.

638 {
641 OT_SETUP_CALLABLE(fSettingDeleteData)
642 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(fSettingDeleteData))
644 LcSettingDeleteCallF fSettingDeleteCall = (fSettingDeleteData == NULL ? NULL : NS(SettingDeleteCall));
645 MkErrorC_Check(hdl,LcConfigSetSettingDeleteFunc (hdl, fSettingDeleteCall, fSettingDeleteData, NS(SettingDeleteFree)));
647 end: MK_UNUSED /* LONG JUMP on error */
648 OT_CLEANUP_CALLABLE(fSettingDeleteData)
650}
#define SetSettingDeleteFunc_doc
enum MkErrorE(* LcSettingDeleteCallF)(LcSettingDeleteCallF_ARGS)
#define LcConfigSetSettingDeleteFunc(...)

◆ rblcconfig_LcConfigC_SetTabWidth()

static OT_ProcRet rblcconfig_LcConfigC_SetTabWidth ( LcConfigC_ARGS )
static

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

Definition at line 653 of file LcConfigC_rb.c.

653 {
656 MK_I16 width = 0;
659 LcConfigSetTabWidth (hdl, width);
661 end: MK_UNUSED /* LONG JUMP on error */
663}
#define SetTabWidth_doc
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...