theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_Set_CS_API

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

+ Collaboration diagram for LcConfigC_Set_CS_API:

Functions

void cslcconfig.LcConfigC.SetDefaultFormat (LcConfigFormatE format)
  C#: 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
 
void cslcconfig.LcConfigC.SetFloatPrecision (short digits)
  C#: 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 …
 
void cslcconfig.LcConfigC.SetIncludeDir (string include_dir)
  C#: 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
 
void cslcconfig.LcConfigC.SetIncludeFunc (LcConfigIncludeCCB fConfigIncludeData=null)
  C#: cfg.SetIncludeFunc(LcConfigIncludeCCB fConfigIncludeData = null) C-API
set the __parser__(callback-name) for the include-config-file
 
void cslcconfig.LcConfigC.SetOption (LcConfigOptionsEF option, bool flag)
  C#: config.SetOption(LcConfigOptionsEF option, bool flag) C-API
Since v1.7 These functions get and set the given option of the configuration config
 
void cslcconfig.LcConfigC.SetOptions (LcConfigOptionsEF options)
  C#: config.SetOptions(LcConfigOptionsEF options) C-API
These functions get and set the options for the configuration config
 
void cslcconfig.LcConfigC.SetSettingDeleteFunc (LcSettingDeleteCCB fSettingDeleteData=null)
  C#: cfg.SetSettingDeleteFunc(LcSettingDeleteCCB fSettingDeleteData = null) C-API
set the callback-name for the setting-delete
 
void cslcconfig.LcConfigC.SetTabWidth (short width)
  C#: 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

◆ SetDefaultFormat()

void cslcconfig.LcConfigC.SetDefaultFormat ( LcConfigFormatE format)
inline

C#: 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 363 of file LcConfigC.cs.

363 {
364 Lc.LcConfigSetDefaultFormat(hdl, format);
365 }

◆ SetFloatPrecision()

void cslcconfig.LcConfigC.SetFloatPrecision ( short digits)
inline

C#: 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 368 of file LcConfigC.cs.

368 {
369 Lc.LcConfigSetFloatPrecision(hdl, digits);
370 }

◆ SetIncludeDir()

void cslcconfig.LcConfigC.SetIncludeDir ( string include_dir)
inline

C#: 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 373 of file LcConfigC.cs.

373 {
374 IntPtr include_dir_cstr = Marshal.StringToHGlobalAnsi(include_dir);
375 Lc.LcConfigSetIncludeDir(hdl, include_dir_cstr);
376 Marshal.FreeHGlobal(include_dir_cstr);
377 }

◆ SetIncludeFunc()

void cslcconfig.LcConfigC.SetIncludeFunc ( LcConfigIncludeCCB fConfigIncludeData = null)
inline

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

Definition at line 380 of file LcConfigC.cs.

380 {
381 LcConfigIncludeCallF fConfigIncludeCall = LcConfigIncludeCall;
382 IntPtr fConfigIncludeData_ptr = fConfigIncludeData == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new LcCall(mkrt,fConfigIncludeData));
383 if (fConfigIncludeData_ptr == IntPtr.Zero) fConfigIncludeCall = null;
384 MkErrorE errVal = Lc.LcConfigSetIncludeFunc(mkrt, hdl, fConfigIncludeCall, fConfigIncludeData_ptr, LcConfigIncludeFree);
385 MkErrorC.Check(hdl, errVal);
386 }
static void Check(IntPtr ctx, MkErrorE err)
enum MkErrorE(* LcConfigIncludeCallF)(LcConfigIncludeCallF_ARGS)
MkErrorE

◆ SetOption()

void cslcconfig.LcConfigC.SetOption ( LcConfigOptionsEF option,
bool flag )
inline

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

Definition at line 389 of file LcConfigC.cs.

389 {
390 Lc.LcConfigSetOption(hdl, option, flag);
391 }

◆ SetOptions()

void cslcconfig.LcConfigC.SetOptions ( LcConfigOptionsEF options)
inline

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

Definition at line 394 of file LcConfigC.cs.

394 {
395 Lc.LcConfigSetOptions(hdl, options);
396 }

◆ SetSettingDeleteFunc()

void cslcconfig.LcConfigC.SetSettingDeleteFunc ( LcSettingDeleteCCB fSettingDeleteData = null)
inline

C#: cfg.SetSettingDeleteFunc(LcSettingDeleteCCB fSettingDeleteData = null) C-API
set the callback-name for the setting-delete

Definition at line 399 of file LcConfigC.cs.

399 {
400 LcSettingDeleteCallF fSettingDeleteCall = LcSettingDeleteCall;
401 IntPtr fSettingDeleteData_ptr = fSettingDeleteData == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new LcCall(mkrt,fSettingDeleteData));
402 if (fSettingDeleteData_ptr == IntPtr.Zero) fSettingDeleteCall = null;
403 MkErrorE errVal = Lc.LcConfigSetSettingDeleteFunc(mkrt, hdl, fSettingDeleteCall, fSettingDeleteData_ptr, LcSettingDeleteFree);
404 MkErrorC.Check(hdl, errVal);
405 }
enum MkErrorE(* LcSettingDeleteCallF)(LcSettingDeleteCallF_ARGS)

◆ SetTabWidth()

void cslcconfig.LcConfigC.SetTabWidth ( short width)
inline

C#: 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 408 of file LcConfigC.cs.

408 {
409 Lc.LcConfigSetTabWidth(hdl, width);
410 }