theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_Set_PY_API

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

+ Collaboration diagram for LcConfigC_Set_PY_API:

Functions

static OT_ProcRet pylcconfig_LcConfigC_SetDefaultFormat (LcConfigC_ARGS)
  Python: 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 pylcconfig_LcConfigC_SetFloatPrecision (LcConfigC_ARGS)
  Python: 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 pylcconfig_LcConfigC_SetIncludeDir (LcConfigC_ARGS)
  Python: 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 pylcconfig_LcConfigC_SetIncludeFunc (LcConfigC_ARGS)
  Python: cfg.SetIncludeFunc(?fConfigIncludeData:LC_CBP=None?) C-API
set the __parser__(callback-name) for the include-config-file
 
static OT_ProcRet pylcconfig_LcConfigC_SetOption (LcConfigC_ARGS)
  Python: 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 pylcconfig_LcConfigC_SetOptions (LcConfigC_ARGS)
  Python: config.SetOptions(options:LcConfigOptionsEF) C-API
These functions get and set the options for the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_SetSettingDeleteFunc (LcConfigC_ARGS)
  Python: cfg.SetSettingDeleteFunc(?fSettingDeleteData:LC_CBP=None?) C-API
set the callback-name for the setting-delete
 
static OT_ProcRet pylcconfig_LcConfigC_SetTabWidth (LcConfigC_ARGS)
  Python: 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

◆ pylcconfig_LcConfigC_SetDefaultFormat()

static OT_ProcRet pylcconfig_LcConfigC_SetDefaultFormat ( LcConfigC_ARGS )
static

Python: 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 627 of file LcConfigC_py.c.

627 {
630 enum LcConfigFormatE format = 0;
633 LcConfigSetDefaultFormat (hdl, format);
635 goto end;
636 error:
638 end:
640}
#define OT_SETUP_hdl
#define SetDefaultFormat_doc
#define OT_SETUP_ONEARG(d)
#define OT_retObj_SET_Error
#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 OT_CHECK_ENUM(ename, val)

◆ pylcconfig_LcConfigC_SetFloatPrecision()

static OT_ProcRet pylcconfig_LcConfigC_SetFloatPrecision ( LcConfigC_ARGS )
static

Python: 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 643 of file LcConfigC_py.c.

643 {
646 MK_I16 digits = 0;
649 LcConfigSetFloatPrecision (hdl, digits);
651 goto end;
652 error:
654 end:
656}
#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

◆ pylcconfig_LcConfigC_SetIncludeDir()

static OT_ProcRet pylcconfig_LcConfigC_SetIncludeDir ( LcConfigC_ARGS )
static

Python: 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 659 of file LcConfigC_py.c.

659 {
662 MK_STRN include_dir = 0;
663 OT_CHECK_REQUIRED(OT_CHECK_STRN (include_dir))
665 LcConfigSetIncludeDir (hdl, include_dir);
667 goto end;
668 error:
670 end:
672}
#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

◆ pylcconfig_LcConfigC_SetIncludeFunc()

static OT_ProcRet pylcconfig_LcConfigC_SetIncludeFunc ( LcConfigC_ARGS )
static

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

Definition at line 675 of file LcConfigC_py.c.

675 {
678 OT_SETUP_CALLABLE(fConfigIncludeData)
679 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(fConfigIncludeData))
681 LcConfigIncludeCallF fConfigIncludeCall = (fConfigIncludeData == NULL ? NULL : NS(ConfigIncludeCall));
682 MkErrorC_Check(hdl,LcConfigSetIncludeFunc (hdl, fConfigIncludeCall, fConfigIncludeData, NS(ConfigIncludeFree)));
684 goto end;
685 error:
687 end:
688 OT_CLEANUP_CALLABLE(fConfigIncludeData)
690}
#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)

◆ pylcconfig_LcConfigC_SetOption()

static OT_ProcRet pylcconfig_LcConfigC_SetOption ( LcConfigC_ARGS )
static

Python: 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 693 of file LcConfigC_py.c.

693 {
696 enum LcConfigOptionsEF option = 0;
698 MK_BOOL flag = 0;
701 LcConfigSetOption (hdl, option, flag);
703 goto end;
704 error:
706 end:
708}
#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

◆ pylcconfig_LcConfigC_SetOptions()

static OT_ProcRet pylcconfig_LcConfigC_SetOptions ( LcConfigC_ARGS )
static

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

Definition at line 711 of file LcConfigC_py.c.

711 {
714 enum LcConfigOptionsEF options = 0;
717 LcConfigSetOptions (hdl, options);
719 goto end;
720 error:
722 end:
724}
#define SetOptions_doc
static void LcConfigSetOptions(LC_CFG config, enum LcConfigOptionsEF options)
These functions get and set the options for the configuration config …

◆ pylcconfig_LcConfigC_SetSettingDeleteFunc()

static OT_ProcRet pylcconfig_LcConfigC_SetSettingDeleteFunc ( LcConfigC_ARGS )
static

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

Definition at line 727 of file LcConfigC_py.c.

727 {
730 OT_SETUP_CALLABLE(fSettingDeleteData)
731 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(fSettingDeleteData))
733 LcSettingDeleteCallF fSettingDeleteCall = (fSettingDeleteData == NULL ? NULL : NS(SettingDeleteCall));
734 MkErrorC_Check(hdl,LcConfigSetSettingDeleteFunc (hdl, fSettingDeleteCall, fSettingDeleteData, NS(SettingDeleteFree)));
736 goto end;
737 error:
739 end:
740 OT_CLEANUP_CALLABLE(fSettingDeleteData)
742}
#define SetSettingDeleteFunc_doc
enum MkErrorE(* LcSettingDeleteCallF)(LcSettingDeleteCallF_ARGS)
#define LcConfigSetSettingDeleteFunc(...)

◆ pylcconfig_LcConfigC_SetTabWidth()

static OT_ProcRet pylcconfig_LcConfigC_SetTabWidth ( LcConfigC_ARGS )
static

Python: 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 745 of file LcConfigC_py.c.

745 {
748 MK_I16 width = 0;
751 LcConfigSetTabWidth (hdl, width);
753 goto end;
754 error:
756 end:
758}
#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...