theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_tcl.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for LcConfigC_tcl.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "LcConfigC_tcl.c"
 
#define OT_CLASS   NS(LcConfigC)
 
#define OT_CLASS_NAME   "LcConfigC"
 
#define OBJECT2CFG(O)
 
#define OT_SETUP_hdl_static_constr_pre
 
#define OT_SETUP_hdl_static_constr
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl   SetupHdlFromMetaData_2(CFG,LC_CFG);
 
#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(CFG,LC_CFG);
 
#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(CFG,LC_CFG);
 
#define OT_SETUP_hdl_constr_pre
 
#define OT_SETUP_hdl_constr
 
#define SetupRtFromHdl_XN(hdl)
 
#define SetupRtFromHdl_X(hdl)
 
#define ClassInit
 
#define VER   TCL_OO_METHOD_VERSION_CURRENT
 
#define CTOR_doc   "LcConfigC [LcConfigC CTOR]"
 
#define Create_doc   "LcConfigC [LcConfigC Create]"
 
#define GetNull_doc   "LcConfigC [LcConfigC GetNull]"
 
#define HandleResolve_doc   "LcConfigC [LcConfigC HandleResolve netHdl:MK_HDL]"
 
#define Instances_doc   "LcConfigC [LcConfigC Instances]"
 
#define Lookup_doc   "LcSettingC [$config Lookup path:string] (const)"
 
#define Next_doc   "LcConfigC [$cfg Next]"
 
#define Prev_doc   "LcConfigC [$cfg Prev]"
 
#define RootSetting_doc   "LcSettingC [$config RootSetting] (const)"
 
#define Clear_doc   "$config Clear"
 
#define ErrorType_doc   "LcErrorTypeE [$config ErrorType] (const)"
 
#define GetDefaultFormat_doc   "LcConfigFormatE [$config GetDefaultFormat] (const)"
 
#define GetFloatPrecision_doc   "int16 [$config GetFloatPrecision] (const)"
 
#define GetIncludeDir_doc   "string [$config GetIncludeDir] (const)"
 
#define GetOption_doc   "bool [$config GetOption option:LcConfigOptionsEF] (const)"
 
#define GetOptions_doc   "LcConfigOptionsEF [$config GetOptions] (const)"
 
#define GetTabWidth_doc   "int16 [$config GetTabWidth] (const)"
 
#define Log_doc   "$cfg Log ?fmtobj:MkObjectC=\"MK_NULL\"? ?debug:int32=0? ?callfunc:string=\"MK_NULL\"? ?lvl:int32=0? (const)"
 
#define ReadFile_doc   "$config ReadFile filename:string"
 
#define ReadString_doc   "$config ReadString str:string"
 
#define SetDefaultFormat_doc   "$config SetDefaultFormat format:LcConfigFormatE"
 
#define SetFloatPrecision_doc   "$config SetFloatPrecision digits:int16"
 
#define SetIncludeDir_doc   "$config SetIncludeDir include_dir:string"
 
#define SetIncludeFunc_doc   "$cfg SetIncludeFunc ?fConfigIncludeData:LC_CBP=\"MK_NULL\"?"
 
#define SetOption_doc   "$config SetOption option:LcConfigOptionsEF flag:bool"
 
#define SetOptions_doc   "$config SetOptions options:LcConfigOptionsEF"
 
#define SetSettingDeleteFunc_doc   "$cfg SetSettingDeleteFunc ?fSettingDeleteData:LC_CBP=\"MK_NULL\"?"
 
#define SetTabWidth_doc   "$config SetTabWidth width:int16"
 
#define WriteFile_doc   "$config WriteFile filename:string"
 
#define LookupBool_doc   "bool [$config LookupBool path:string] (const)"
 
#define LookupFloat_doc   "double [$config LookupFloat path:string] (const)"
 
#define LookupInt_doc   "int32 [$config LookupInt path:string] (const)"
 
#define LookupInt64_doc   "int64 [$config LookupInt64 path:string] (const)"
 
#define LookupString_doc   "string [$config LookupString path:string] (const)"
 
#define WriteString_doc   "string [$cfg WriteString] (const)"
 

Functions

static MK_PTR tcllcconfig_LcConfigC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void tcllcconfig_LcConfigC_selfDelete (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static void tcllcconfig_LcConfigC_selfUnlink (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static OT_ProcRet tcllcconfig_LcConfigC_HandleResolve (OtClass_ARGS)
  Tcl: (static) LcConfigC [LcConfigC HandleResolve netHdl:MK_HDL] C-API
Handle-Resolve-Slot - return a LcConfigC from netHdl or "MK_NULL" if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet tcllcconfig_LcConfigC_HandleGet (LcConfigC_ARGS)
 
static OT_ProcRet tcllcconfig_LcConfigC_Next (LcConfigC_ARGS)
  Tcl: LcConfigC [$cfg Next] C-API
get next instance from linked-list of LcConfigS type
 
static OT_ProcRet tcllcconfig_LcConfigC_Prev (LcConfigC_ARGS)
  Tcl: LcConfigC [$cfg Prev] C-API
get previous instance from linked-list of LcConfigS type
 
static OT_ProcRet tcllcconfig_LcConfigC_Instances (OtClass_ARGS)
  Tcl: (static) LcConfigC [LcConfigC Instances] C-API
get head-instance from linked-list of LcConfigS type …
 
static OT_ProcRet tcllcconfig_LcConfigC_GetNull (OtClass_ARGS)
  Tcl: (static) LcConfigC [LcConfigC GetNull] C-API
Null-Slot - return a LcConfigC typed NULL instance …
 
static OT_ProcRet tcllcconfig_LcConfigC_ErrorType (LcConfigC_ARGS)
  Tcl: LcErrorTypeE [$config ErrorType] C-API
This function, which is implemented as a macro, returns the type of error that occurred during the last call to one of the read or write functions …
 
static OT_ProcRet tcllcconfig_LcConfigC_GetDefaultFormat (LcConfigC_ARGS)
  Tcl: LcConfigFormatE [$config GetDefaultFormat] 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 tcllcconfig_LcConfigC_GetFloatPrecision (LcConfigC_ARGS)
  Tcl: int16 [$config GetFloatPrecision] 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 tcllcconfig_LcConfigC_GetIncludeDir (LcConfigC_ARGS)
  Tcl: string [$config GetIncludeDir] 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 tcllcconfig_LcConfigC_GetOption (LcConfigC_ARGS)
  Tcl: bool [$config GetOption option:LcConfigOptionsEF] C-API
Since v1.7 These functions get and set the given option of the configuration config
 
static OT_ProcRet tcllcconfig_LcConfigC_GetOptions (LcConfigC_ARGS)
  Tcl: LcConfigOptionsEF [$config GetOptions] C-API
These functions get and set the options for the configuration config
 
static OT_ProcRet tcllcconfig_LcConfigC_GetTabWidth (LcConfigC_ARGS)
  Tcl: int16 [$config GetTabWidth] C-API
These functions, which are implemented as macros, get and set the tab width for the configuration config
 
static OT_ProcRet tcllcconfig_LcConfigC_Lookup (LcConfigC_ARGS)
  Tcl: LcSettingC [$config Lookup path:string] C-API
This function locates the setting in the configuration config specified by the path path
 
static OT_ProcRet tcllcconfig_LcConfigC_LookupBool (LcConfigC_ARGS)
  Tcl: bool [$config LookupBool path:string] C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
static OT_ProcRet tcllcconfig_LcConfigC_LookupFloat (LcConfigC_ARGS)
  Tcl: double [$config LookupFloat path:string] C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
static OT_ProcRet tcllcconfig_LcConfigC_LookupInt (LcConfigC_ARGS)
  Tcl: int32 [$config LookupInt path:string] C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
static OT_ProcRet tcllcconfig_LcConfigC_LookupInt64 (LcConfigC_ARGS)
  Tcl: int64 [$config LookupInt64 path:string] C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
static OT_ProcRet tcllcconfig_LcConfigC_LookupString (LcConfigC_ARGS)
  Tcl: string [$config LookupString path:string] C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
static OT_ProcRet tcllcconfig_LcConfigC_RootSetting (LcConfigC_ARGS)
  Tcl: LcSettingC [$config RootSetting] C-API
This function, which is implemented as a macro, returns the root setting for the configuration config
 
static OT_ProcRet tcllcconfig_LcConfigC_Clear (LcConfigC_ARGS)
  Tcl: $config Clear C-API
Since v1.7 This function clears the configuration config
 
static OT_ProcRet tcllcconfig_LcConfigC_Log (LcConfigC_ARGS)
  Tcl: $cfg Log ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the config
 
static OT_ProcRet tcllcconfig_LcConfigC_ReadFile (LcConfigC_ARGS)
  Tcl: $config ReadFile filename:string C-API
This function reads and parses a configuration from the file named filename into the configuration object config
 
static OT_ProcRet tcllcconfig_LcConfigC_ReadString (LcConfigC_ARGS)
  Tcl: $config ReadString str:string C-API
This function reads and parses a configuration from the string str into the configuration object config
 
static OT_ProcRet tcllcconfig_LcConfigC_WriteFile (LcConfigC_ARGS)
  Tcl: $config WriteFile filename:string C-API
This function writes the configuration config to the file named filename
 
static OT_ProcRet tcllcconfig_LcConfigC_WriteString (LcConfigC_ARGS)
  Tcl: string [$cfg WriteString] C-API
read the entire configuration cfg into the string val_out
 
static OT_ProcRet tcllcconfig_LcConfigC_SetDefaultFormat (LcConfigC_ARGS)
  Tcl: $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 tcllcconfig_LcConfigC_SetFloatPrecision (LcConfigC_ARGS)
  Tcl: $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 tcllcconfig_LcConfigC_SetIncludeDir (LcConfigC_ARGS)
  Tcl: $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 tcllcconfig_LcConfigC_SetIncludeFunc (LcConfigC_ARGS)
  Tcl: $cfg SetIncludeFunc ?fConfigIncludeData:LC_CBP="MK_NULL"? C-API
set the __parser__(callback-name) for the include-config-file
 
static OT_ProcRet tcllcconfig_LcConfigC_SetOption (LcConfigC_ARGS)
  Tcl: $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 tcllcconfig_LcConfigC_SetOptions (LcConfigC_ARGS)
  Tcl: $config SetOptions options:LcConfigOptionsEF C-API
These functions get and set the options for the configuration config
 
static OT_ProcRet tcllcconfig_LcConfigC_SetSettingDeleteFunc (LcConfigC_ARGS)
  Tcl: $cfg SetSettingDeleteFunc ?fSettingDeleteData:LC_CBP="MK_NULL"? C-API
set the callback-name for the setting-delete
 
static OT_ProcRet tcllcconfig_LcConfigC_SetTabWidth (LcConfigC_ARGS)
  Tcl: $config SetTabWidth width:int16 C-API
These functions, which are implemented as macros, get and set the tab width for the configuration config
 
static OT_ProcRet tcllcconfig_LcConfigC_CTOR (CONSTR_ARGS)
  Tcl: (constructor,static) LcConfigC [LcConfigC CTOR] C-API
create a LcConfigC instance …
 
static OT_ProcRet tcllcconfig_LcConfigC_Create (OtClass_ARGS)
  Tcl: (constructor,static) LcConfigC [LcConfigC Create] C-API
create a LcConfigC instance …
 
int tcllcconfig_pLcConfigC_Init (MK_RT mkrt, Tcl_Interp *interp, Tcl_Namespace *ns)
 

Variables

__thread OT_CLS_T OT_CLASS = NULL
 
static __thread MK_TYP LcConfigCTT = NULL
 
__thread OT_OBJ_T tcllcconfig_LcConfigC_MK_NULL = NULL
 
static Tcl_MethodType tcllcconfig_sOtClassDef []
 
static Tcl_MethodType tcllcconfig_sInstanceDef []
 

Detailed Description

tag: nhi1-release-250425

Definition in file LcConfigC_tcl.c.

Macro Definition Documentation

◆ ClassInit

#define ClassInit
Value:
/* if not already done, initialize NEW MQ type */ \
\
/* protect against double call */ \
if (LcConfigCTT->selfCreate == NS(LcConfigC_selfCreate)) return MK_OK; \
\
/* add "selfCreate" and "selfDelete" feature to the MQ-Class */ \
LcConfigCTT->selfCreate = NS(LcConfigC_selfCreate); \
LcConfigCTT->selfDelete = NS(LcConfigC_selfDelete); \
LcConfigCTT->selfUnlink = NS(LcConfigC_selfUnlink); \
\
/* create the TCL-class */ \
OT_SELF_T classO = MK(ClassDef)(interp,ns,LcConfigCTT); \
check_NULL(classO) goto error; \
OT_CLASS = Tcl_GetObjectAsClass(classO); \
\
/* create the TCL static Methods */ \
static MkThreadLocal OtUnknownS NS(sClassUnknown) = {OT_UNKNOWN_CLASS}; \
check_LNG(MK(UnknownSetup) (interp,classO,NS(sOtClassDef),&NS(sClassUnknown))) goto error; \
\
/* create the TCL instance Methods */ \
static MkThreadLocal OtUnknownS NS(sInstanceUnknown) = {OT_UNKNOWN_INSTANCE}; \
check_LNG(MK(UnknownSetup) (interp,classO,NS(sInstanceDef),&NS(sInstanceUnknown))) goto error; \
\
/* define the "NULL" object */ \
LC(LcConfigC_MK_NULL) = Tcl_GetObjectName(interp, \
MK(AtomCreate) (MK_RT_CALL interp, NULL /*obj*/, OT_CLASS, "MK_NULL" /*name*/, "::tcllcconfig::LcConfigC" /*ns*/) \
); \
Tcl_IncrRefCount(LC(LcConfigC_MK_NULL));
static __thread MK_TYP LcConfigCTT
#define OT_CLASS
#define NS(n)
#define LC(n)
#define MK(n)
@ OT_UNKNOWN_CLASS
@ OT_UNKNOWN_INSTANCE
Tcl_Object OT_SELF_T
#define LcConfigSTT
instance-type as MkTypeS-class-type (cast from LcConfigST into MkTypeS) …
MK_OK
#define MkThreadLocal
#define MK_RT_CALL
MkSelfUnlinkF selfUnlink
MkSelfDeleteF selfDelete
MkSelfCreateF selfCreate

Definition at line 77 of file LcConfigC_tcl.c.

77#define ClassInit \
78 /* if not already done, initialize NEW MQ type */ \
79 if (LcConfigCTT == NULL) LcConfigCTT = LcConfigSTT; \
80 \
81 /* protect against double call */ \
82 if (LcConfigCTT->selfCreate == NS(LcConfigC_selfCreate)) return MK_OK; \
83 \
84 /* add "selfCreate" and "selfDelete" feature to the MQ-Class */ \
85 LcConfigCTT->selfCreate = NS(LcConfigC_selfCreate); \
86 LcConfigCTT->selfDelete = NS(LcConfigC_selfDelete); \
87 LcConfigCTT->selfUnlink = NS(LcConfigC_selfUnlink); \
88 \
89 /* create the TCL-class */ \
90 OT_SELF_T classO = MK(ClassDef)(interp,ns,LcConfigCTT); \
91 check_NULL(classO) goto error; \
92 OT_CLASS = Tcl_GetObjectAsClass(classO); \
93 \
94 /* create the TCL static Methods */ \
95 static MkThreadLocal OtUnknownS NS(sClassUnknown) = {OT_UNKNOWN_CLASS}; \
96 check_LNG(MK(UnknownSetup) (interp,classO,NS(sOtClassDef),&NS(sClassUnknown))) goto error; \
97 \
98 /* create the TCL instance Methods */ \
99 static MkThreadLocal OtUnknownS NS(sInstanceUnknown) = {OT_UNKNOWN_INSTANCE}; \
100 check_LNG(MK(UnknownSetup) (interp,classO,NS(sInstanceDef),&NS(sInstanceUnknown))) goto error; \
101 \
102 /* define the "NULL" object */ \
103 LC(LcConfigC_MK_NULL) = Tcl_GetObjectName(interp, \
104 MK(AtomCreate) (MK_RT_CALL interp, NULL /*obj*/, OT_CLASS, "MK_NULL" /*name*/, "::tcllcconfig::LcConfigC" /*ns*/) \
105 ); \
106 Tcl_IncrRefCount(LC(LcConfigC_MK_NULL));

◆ Clear_doc

#define Clear_doc   "$config Clear"

Definition at line 130 of file LcConfigC_tcl.c.

◆ Create_doc

#define Create_doc   "LcConfigC [LcConfigC Create]"

Definition at line 116 of file LcConfigC_tcl.c.

◆ CTOR_doc

#define CTOR_doc   "LcConfigC [LcConfigC CTOR]"

Definition at line 115 of file LcConfigC_tcl.c.

◆ ErrorType_doc

#define ErrorType_doc   "LcErrorTypeE [$config ErrorType] (const)"

Definition at line 131 of file LcConfigC_tcl.c.

◆ GetDefaultFormat_doc

#define GetDefaultFormat_doc   "LcConfigFormatE [$config GetDefaultFormat] (const)"

Definition at line 132 of file LcConfigC_tcl.c.

◆ GetFloatPrecision_doc

#define GetFloatPrecision_doc   "int16 [$config GetFloatPrecision] (const)"

Definition at line 133 of file LcConfigC_tcl.c.

◆ GetIncludeDir_doc

#define GetIncludeDir_doc   "string [$config GetIncludeDir] (const)"

Definition at line 134 of file LcConfigC_tcl.c.

◆ GetNull_doc

#define GetNull_doc   "LcConfigC [LcConfigC GetNull]"

Definition at line 119 of file LcConfigC_tcl.c.

◆ GetOption_doc

#define GetOption_doc   "bool [$config GetOption option:LcConfigOptionsEF] (const)"

Definition at line 135 of file LcConfigC_tcl.c.

◆ GetOptions_doc

#define GetOptions_doc   "LcConfigOptionsEF [$config GetOptions] (const)"

Definition at line 136 of file LcConfigC_tcl.c.

◆ GetTabWidth_doc

#define GetTabWidth_doc   "int16 [$config GetTabWidth] (const)"

Definition at line 137 of file LcConfigC_tcl.c.

◆ HandleResolve_doc

#define HandleResolve_doc   "LcConfigC [LcConfigC HandleResolve netHdl:MK_HDL]"

Definition at line 120 of file LcConfigC_tcl.c.

◆ Instances_doc

#define Instances_doc   "LcConfigC [LcConfigC Instances]"

Definition at line 121 of file LcConfigC_tcl.c.

◆ Log_doc

#define Log_doc   "$cfg Log ?fmtobj:MkObjectC=\"MK_NULL\"? ?debug:int32=0? ?callfunc:string=\"MK_NULL\"? ?lvl:int32=0? (const)"

Definition at line 139 of file LcConfigC_tcl.c.

◆ Lookup_doc

#define Lookup_doc   "LcSettingC [$config Lookup path:string] (const)"

Definition at line 124 of file LcConfigC_tcl.c.

◆ LookupBool_doc

#define LookupBool_doc   "bool [$config LookupBool path:string] (const)"

Definition at line 153 of file LcConfigC_tcl.c.

◆ LookupFloat_doc

#define LookupFloat_doc   "double [$config LookupFloat path:string] (const)"

Definition at line 154 of file LcConfigC_tcl.c.

◆ LookupInt64_doc

#define LookupInt64_doc   "int64 [$config LookupInt64 path:string] (const)"

Definition at line 156 of file LcConfigC_tcl.c.

◆ LookupInt_doc

#define LookupInt_doc   "int32 [$config LookupInt path:string] (const)"

Definition at line 155 of file LcConfigC_tcl.c.

◆ LookupString_doc

#define LookupString_doc   "string [$config LookupString path:string] (const)"

Definition at line 157 of file LcConfigC_tcl.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "LcConfigC_tcl.c"

Definition at line 11 of file LcConfigC_tcl.c.

◆ Next_doc

#define Next_doc   "LcConfigC [$cfg Next]"

Definition at line 125 of file LcConfigC_tcl.c.

◆ OBJECT2CFG

#define OBJECT2CFG ( O)
Value:
MkAssertCastM(LcConfigC,(Tcl_ObjectGetMetadata(O, &MK(AtomMeta))))
#define MkAssertCastM(cls, m)

Definition at line 18 of file LcConfigC_tcl.c.

◆ OT_CLASS

#define OT_CLASS   NS(LcConfigC)

Definition at line 15 of file LcConfigC_tcl.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "LcConfigC"

Definition at line 16 of file LcConfigC_tcl.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   SetupHdlFromMetaData_2(CFG,LC_CFG);

Definition at line 59 of file LcConfigC_tcl.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(CFG,LC_CFG);

Definition at line 60 of file LcConfigC_tcl.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
int __skip=Tcl_ObjectContextSkippedArgs(objCtx); \
MK_RT_UNUSED OT_SELF_T selfO = Tcl_ObjectContextObject(objCtx); \
LC_CFG hdl = (LC_CFG) &MkERROR;
#define OT_SETUP_hdl_constr_pre
struct LcConfigS * LC_CFG
class-shortcut for struct LcConfigS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MkERROR
#define AllRtSetup_NULL
#define MK_RT_UNUSED
Struct to represent the data from the LcConfigC …

Definition at line 64 of file LcConfigC_tcl.c.

64#define OT_SETUP_hdl_constr \
65 OT_SETUP_hdl_constr_pre; \
66 int __skip=Tcl_ObjectContextSkippedArgs(objCtx); \
67 AllRtSetup_NULL; \
68 MK_RT_UNUSED OT_SELF_T selfO = Tcl_ObjectContextObject(objCtx); \
69 LC_CFG hdl = (LC_CFG) &MkERROR;

◆ OT_SETUP_hdl_constr_pre

#define OT_SETUP_hdl_constr_pre

Definition at line 63 of file LcConfigC_tcl.c.

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(CFG,LC_CFG);

Definition at line 61 of file LcConfigC_tcl.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static
Value:
int __skip=Tcl_ObjectContextSkippedArgs(objCtx); \
__attribute__((unused)) OT_SELF_T selfO = Tcl_ObjectContextObject(objCtx); \
__attribute__((unused)) MK_TYP hdl = LcConfigC##_TT;

Definition at line 53 of file LcConfigC_tcl.c.

53#define OT_SETUP_hdl_static \
54 int __skip=Tcl_ObjectContextSkippedArgs(objCtx); \
55 AllRtSetup_NULL; \
56 __attribute__((unused)) OT_SELF_T selfO = Tcl_ObjectContextObject(objCtx); \
57 __attribute__((unused)) MK_TYP hdl = LcConfigC##_TT;

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr
Value:
#define OT_SETUP_hdl_static_constr_pre
#define OT_SETUP_hdl_static

Definition at line 49 of file LcConfigC_tcl.c.

49#define OT_SETUP_hdl_static_constr \
50 OT_SETUP_hdl_static_constr_pre; \
51 OT_SETUP_hdl_static

◆ OT_SETUP_hdl_static_constr_pre

#define OT_SETUP_hdl_static_constr_pre

Definition at line 48 of file LcConfigC_tcl.c.

◆ Prev_doc

#define Prev_doc   "LcConfigC [$cfg Prev]"

Definition at line 126 of file LcConfigC_tcl.c.

◆ ReadFile_doc

#define ReadFile_doc   "$config ReadFile filename:string"

Definition at line 140 of file LcConfigC_tcl.c.

◆ ReadString_doc

#define ReadString_doc   "$config ReadString str:string"

Definition at line 141 of file LcConfigC_tcl.c.

◆ RootSetting_doc

#define RootSetting_doc   "LcSettingC [$config RootSetting] (const)"

Definition at line 127 of file LcConfigC_tcl.c.

◆ SetDefaultFormat_doc

#define SetDefaultFormat_doc   "$config SetDefaultFormat format:LcConfigFormatE"

Definition at line 142 of file LcConfigC_tcl.c.

◆ SetFloatPrecision_doc

#define SetFloatPrecision_doc   "$config SetFloatPrecision digits:int16"

Definition at line 143 of file LcConfigC_tcl.c.

◆ SetIncludeDir_doc

#define SetIncludeDir_doc   "$config SetIncludeDir include_dir:string"

Definition at line 144 of file LcConfigC_tcl.c.

◆ SetIncludeFunc_doc

#define SetIncludeFunc_doc   "$cfg SetIncludeFunc ?fConfigIncludeData:LC_CBP=\"MK_NULL\"?"

Definition at line 145 of file LcConfigC_tcl.c.

◆ SetOption_doc

#define SetOption_doc   "$config SetOption option:LcConfigOptionsEF flag:bool"

Definition at line 146 of file LcConfigC_tcl.c.

◆ SetOptions_doc

#define SetOptions_doc   "$config SetOptions options:LcConfigOptionsEF"

Definition at line 147 of file LcConfigC_tcl.c.

◆ SetSettingDeleteFunc_doc

#define SetSettingDeleteFunc_doc   "$cfg SetSettingDeleteFunc ?fSettingDeleteData:LC_CBP=\"MK_NULL\"?"

Definition at line 148 of file LcConfigC_tcl.c.

◆ SetTabWidth_doc

#define SetTabWidth_doc   "$config SetTabWidth width:int16"

Definition at line 149 of file LcConfigC_tcl.c.

◆ SetupRtFromHdl_X

#define SetupRtFromHdl_X ( hdl)
Value:
#define AllRtSetup_X(x)

Definition at line 73 of file LcConfigC_tcl.c.

◆ SetupRtFromHdl_XN

#define SetupRtFromHdl_XN ( hdl)
Value:
#define AllRtSetup_XN(x)

Definition at line 72 of file LcConfigC_tcl.c.

◆ VER

#define VER   TCL_OO_METHOD_VERSION_CURRENT

Definition at line 108 of file LcConfigC_tcl.c.

◆ WriteFile_doc

#define WriteFile_doc   "$config WriteFile filename:string"

Definition at line 150 of file LcConfigC_tcl.c.

◆ WriteString_doc

#define WriteString_doc   "string [$cfg WriteString] (const)"

Definition at line 158 of file LcConfigC_tcl.c.

Function Documentation

◆ tcllcconfig_LcConfigC_selfCreate()

static MK_PTR tcllcconfig_LcConfigC_selfCreate ( MK_RT mkrt,
MK_OBJ const obj,
MK_PTR const env )
static

Definition at line 28 of file LcConfigC_tcl.c.

28 {
29 OT_ENV_T interp = env;
30 return MK(AtomCreate) (MK_RT_CALL interp,obj,OT_CLASS,NULL,NULL);
31}
Tcl_Interp * OT_ENV_T

◆ tcllcconfig_LcConfigC_selfDelete()

static void tcllcconfig_LcConfigC_selfDelete ( MK_RT mkrt,
MK_PTR selfP,
MK_PTR const env )
static

Definition at line 33 of file LcConfigC_tcl.c.

33 {
34 OT_SELF_T selfO = selfP;
35 OT_ENV_T interp = env;
36 MK(AtomDeleteHard) (MK_RT_CALL interp, selfO);
37}

◆ tcllcconfig_LcConfigC_selfUnlink()

static void tcllcconfig_LcConfigC_selfUnlink ( MK_RT mkrt,
MK_PTR selfP,
MK_PTR const env )
static

Definition at line 39 of file LcConfigC_tcl.c.

39 {
40 OT_SELF_T selfO = selfP;
41 OT_ENV_T interp = env;
42 MK(AtomUnlink) (MK_RT_CALL interp, selfO);
43}

◆ tcllcconfig_pLcConfigC_Init()

int tcllcconfig_pLcConfigC_Init ( MK_RT mkrt,
Tcl_Interp * interp,
Tcl_Namespace * ns )

Public API

Definition at line 985 of file LcConfigC_tcl.c.

986{
988
989 return TCL_OK;
990error:
991 return TCL_ERROR;
992}
#define ClassInit

Variable Documentation

◆ LcConfigCTT

__thread MK_TYP LcConfigCTT = NULL
static

Definition at line 24 of file LcConfigC_tcl.c.

◆ OT_CLASS

__thread OT_CLS_T OT_CLASS = NULL

Definition at line 21 of file LcConfigC_tcl.c.

◆ tcllcconfig_LcConfigC_MK_NULL

__thread OT_OBJ_T tcllcconfig_LcConfigC_MK_NULL = NULL

Definition at line 25 of file LcConfigC_tcl.c.

◆ tcllcconfig_sInstanceDef

Tcl_MethodType tcllcconfig_sInstanceDef[]
static

Definition at line 931 of file LcConfigC_tcl.c.

931 {
932// {VER, "test" , NS(LcConfigC_test) , NULL, NULL},
933// BEGIN-OBJ - created by 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
934
935// doc-key: LcConfigC,LcConfig,oC_
936 {VER, "<constructor>" , NS(LcConfigC_CTOR) , NULL, NULL},
937
938// doc-key: LcConfigC,LcConfig,oc_
939 {VER, "Lookup" , NS(LcConfigC_Lookup) , NULL, NULL},
940 {VER, "Next" , NS(LcConfigC_Next) , NULL, NULL},
941 {VER, "Prev" , NS(LcConfigC_Prev) , NULL, NULL},
942 {VER, "RootSetting" , NS(LcConfigC_RootSetting) , NULL, NULL},
943
944// doc-key: LcConfigC,LcConfig,om_
945 {VER, "Clear" , NS(LcConfigC_Clear) , NULL, NULL},
946 {VER, "ErrorType" , NS(LcConfigC_ErrorType) , NULL, NULL},
947 {VER, "GetDefaultFormat" , NS(LcConfigC_GetDefaultFormat) , NULL, NULL},
948 {VER, "GetFloatPrecision" , NS(LcConfigC_GetFloatPrecision) , NULL, NULL},
949 {VER, "GetIncludeDir" , NS(LcConfigC_GetIncludeDir) , NULL, NULL},
950 {VER, "GetOption" , NS(LcConfigC_GetOption) , NULL, NULL},
951 {VER, "GetOptions" , NS(LcConfigC_GetOptions) , NULL, NULL},
952 {VER, "GetTabWidth" , NS(LcConfigC_GetTabWidth) , NULL, NULL},
953 // skip class-overload: LcConfigHandleGet → HandleGet, NS(LcConfigC_HandleGet)
954 {VER, "Log" , NS(LcConfigC_Log) , NULL, NULL},
955 {VER, "ReadFile" , NS(LcConfigC_ReadFile) , NULL, NULL},
956 {VER, "ReadString" , NS(LcConfigC_ReadString) , NULL, NULL},
957 {VER, "SetDefaultFormat" , NS(LcConfigC_SetDefaultFormat) , NULL, NULL},
958 {VER, "SetFloatPrecision" , NS(LcConfigC_SetFloatPrecision) , NULL, NULL},
959 {VER, "SetIncludeDir" , NS(LcConfigC_SetIncludeDir) , NULL, NULL},
960 {VER, "SetIncludeFunc" , NS(LcConfigC_SetIncludeFunc) , NULL, NULL},
961 {VER, "SetOption" , NS(LcConfigC_SetOption) , NULL, NULL},
962 {VER, "SetOptions" , NS(LcConfigC_SetOptions) , NULL, NULL},
963 {VER, "SetSettingDeleteFunc", NS(LcConfigC_SetSettingDeleteFunc) , NULL, NULL},
964 {VER, "SetTabWidth" , NS(LcConfigC_SetTabWidth) , NULL, NULL},
965 {VER, "WriteFile" , NS(LcConfigC_WriteFile) , NULL, NULL},
966
967// doc-key: LcConfigC,LcConfig,omo
968 {VER, "LookupBool" , NS(LcConfigC_LookupBool) , NULL, NULL},
969 {VER, "LookupFloat" , NS(LcConfigC_LookupFloat) , NULL, NULL},
970 {VER, "LookupInt" , NS(LcConfigC_LookupInt) , NULL, NULL},
971 {VER, "LookupInt64" , NS(LcConfigC_LookupInt64) , NULL, NULL},
972 {VER, "LookupString" , NS(LcConfigC_LookupString) , NULL, NULL},
973 {VER, "WriteString" , NS(LcConfigC_WriteString) , NULL, NULL},
974
975// END-OBJ - created by 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
976 {0, NULL, NULL, NULL, NULL}
977};
#define VER

◆ tcllcconfig_sOtClassDef

Tcl_MethodType tcllcconfig_sOtClassDef[]
static
Initial value:
= {
{VER, "Create" , tcllcconfig_LcConfigC_Create , NULL, NULL},
{VER, "GetNull" , tcllcconfig_LcConfigC_GetNull , NULL, NULL},
{VER, "HandleResolve" , tcllcconfig_LcConfigC_HandleResolve , NULL, NULL},
{VER, "Instances" , tcllcconfig_LcConfigC_Instances , NULL, NULL},
{0, NULL, NULL, NULL}
}
static OT_ProcRet tcllcconfig_LcConfigC_Instances(OtClass_ARGS)
Tcl: (static) LcConfigC [LcConfigC Instances] → C-API get head-instance from linked-list of LcCo...
static OT_ProcRet tcllcconfig_LcConfigC_GetNull(OtClass_ARGS)
Tcl: (static) LcConfigC [LcConfigC GetNull] → C-API Null-Slot - return a LcConfigC typed NULL in...
static OT_ProcRet tcllcconfig_LcConfigC_HandleResolve(OtClass_ARGS)
Tcl: (static) LcConfigC [LcConfigC HandleResolve netHdl:MK_HDL] → C-API Handle-Resolve-Slot - re...
static OT_ProcRet tcllcconfig_LcConfigC_Create(OtClass_ARGS)
Tcl: (constructor,static) LcConfigC [LcConfigC Create] → C-API create a LcConfigC instance …

Definition at line 914 of file LcConfigC_tcl.c.

914 {
915// BEGIN-CLASS - created by 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
916
917// doc-key: LcConfigC,LcConfig,sCc
918 {VER, "Create" , NS(LcConfigC_Create) , NULL, NULL},
919
920// doc-key: LcConfigC,LcConfig,sc_
921 {VER, "GetNull" , NS(LcConfigC_GetNull) , NULL, NULL},
922 {VER, "HandleResolve" , NS(LcConfigC_HandleResolve) , NULL, NULL},
923 {VER, "Instances" , NS(LcConfigC_Instances) , NULL, NULL},
924
925// END-CLASS - created by 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
926 {0, NULL, NULL, NULL}
927};