theConfig 10.0
Loading...
Searching...
No Matches
LibLcConfig_private_rb.h File Reference

tag: nhi1-release-250425 More...

#include "LibLcConfig_rb.h"
+ Include dependency graph for LibLcConfig_private_rb.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void rblcconfig_LcConfigC_Init (MK_RT mkrt)
 
void rblcconfig_LcSettingC_Init (MK_RT mkrt)
 
void rblcconfig_ConfigIncludeFree (LcConfigIncludeFreeF_ARGS)
 
enum MkErrorE rblcconfig_ConfigIncludeCall (LcConfigIncludeCallF_ARGS)
 
void rblcconfig_SettingDeleteFree (LcSettingDeleteFreeF_ARGS)
 
enum MkErrorE rblcconfig_SettingDeleteCall (LcSettingDeleteCallF_ARGS)
 

Detailed Description

tag: nhi1-release-250425

Definition in file LibLcConfig_private_rb.h.

Function Documentation

◆ rblcconfig_ConfigIncludeCall()

enum MkErrorE rblcconfig_ConfigIncludeCall ( LcConfigIncludeCallF_ARGS )

Definition at line 55 of file LcCall_rb.c.

56{
58
59 struct MkCallS *call = cfg->fConfigIncludeData;
60 int argNum = 3;
61
62 // 1. check environment
63 if (OT_LNG_NULL_IS(call->procCallback)) return MK_OK;
64
65//printLngObj(call->procCallback)
66
67MkDbgDeepX_3(cfg, "AAA", "cmd=%s", VAL2STRN(rb_inspect(call->procCallback)));
68
69 // 2. if not already done initialize
70 if (call->procCall == NULL) {
71 switch (call->procType) {
72 case MkCallS_own_method: {
73 if (call->procArity != argNum) goto methode_arg_error;
74 call->procCall = NS(sCallMethod);
75 }
76 break;
77 default:
78 MkErrorSetV_3M(cfg, "WrongInitError", "found invalid procType for callback '%s'", VAL2STRN(call->procCallback));
79 goto error;
80 break;
81 }
82 }
83
84 VALUE ary = rb_ary_resize(call->procArgs,4);
85 rb_ary_store(ary,0,call->procCallback);
86 rb_ary_store(ary,1,STRN2VAL(incDir));
87 rb_ary_store(ary,2,STRN2VAL(path));
88 rb_ary_store(ary,3,OT_TMP_BFL_OBJ(ret_inout));
89 NS(sRescue)(MK_RT_CALL cfg,call->procCall,ary);
90
91 MkErrorCheck_0E();
92
93MkDbgDeepX_3(mqctx, "BBB", "cmd=%s", VAL2STRN(rb_inspect(call->procCallback)));
94 return MkErrorGetCode_0E();
95
96methode_arg_error:
97 MkErrorSetV_3M(cfg, "WrongNumberOfArgError", "for callback '%s' exactly '%d' argument is required, but '%d' was received",
98 VAL2STRN(call->procCallback), argNum, call->procArity);
99 goto error;
100
101error:
102MkDbgDeepX_3(cfg, "EEE", "cmd=%s", VAL2STRN(rb_inspect(call->procCallback)));
103//printSTACK_1(mqctx)
104 return MkErrorStack_0E();
105}
#define NS(n)
#define OT_LNG_NULL_IS(obj)
#define VAL2STRN(val)
#define OT_TMP_BFL_OBJ(val)
#define STRN2VAL(nat)
#define LcConfigIncludeCallF_CHECK
#define MkErrorGetCode_0E()
#define MkErrorStack_0E()
#define MkErrorSetV_3M(err, callfunc, printfmt,...)
MK_OK
#define MkDbgDeepX_3(m, ident, fmt,...)
#define MK_RT_CALL
VALUE procCallback
VALUE procArgs
MK_I32 procArity
enum MkCallS::@0 procType
rbmkkernel_procCallF procCall

◆ rblcconfig_ConfigIncludeFree()

void rblcconfig_ConfigIncludeFree ( LcConfigIncludeFreeF_ARGS )

Definition at line 107 of file LcCall_rb.c.

108{
109 MK(CallFree)(&cfg->fConfigIncludeData);
110}
#define MK(n)

◆ rblcconfig_LcConfigC_Init()

void rblcconfig_LcConfigC_Init ( MK_RT mkrt)

Definition at line 717 of file LcConfigC_rb.c.

717 {
718
719 // init type
721 S_INIT;
722
723// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
724
725// doc-key: LcConfigC,LcConfig,sCc
726OT_METH_S ( LcConfigC, Create, LcConfigC_Create )
727OT_METH_C ( LcConfigC, new, LcConfigC_new )
728
729// doc-key: LcConfigC,LcConfig,sc_
730OT_METH_O ( LcConfigC, GetNull, LcConfigC_GetNull )
731OT_METH_S ( LcConfigC, GetNull, LcConfigC_GetNull )
732OT_METH_O ( LcConfigC, HandleResolve, LcConfigC_HandleResolve )
733OT_METH_S ( LcConfigC, HandleResolve, LcConfigC_HandleResolve )
734OT_METH_O ( LcConfigC, Instances, LcConfigC_Instances )
735OT_METH_S ( LcConfigC, Instances, LcConfigC_Instances )
736
737// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
738
739// BEGIN-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
740
741// doc-key: LcConfigC,LcConfig,oc_
742OT_METH_O ( LcConfigC, Lookup, LcConfigC_Lookup )
743OT_METH_O ( LcConfigC, Next, LcConfigC_Next )
744OT_METH_O ( LcConfigC, Prev, LcConfigC_Prev )
745OT_METH_O ( LcConfigC, RootSetting, LcConfigC_RootSetting )
746
747// doc-key: LcConfigC,LcConfig,om_
748OT_METH_O ( LcConfigC, Clear, LcConfigC_Clear )
749OT_METH_O ( LcConfigC, ErrorType, LcConfigC_ErrorType )
750OT_METH_O ( LcConfigC, GetDefaultFormat, LcConfigC_GetDefaultFormat )
751OT_METH_O ( LcConfigC, GetFloatPrecision, LcConfigC_GetFloatPrecision )
752OT_METH_O ( LcConfigC, GetIncludeDir, LcConfigC_GetIncludeDir )
753OT_METH_O ( LcConfigC, GetOption, LcConfigC_GetOption )
754OT_METH_O ( LcConfigC, GetOptions, LcConfigC_GetOptions )
755OT_METH_O ( LcConfigC, GetTabWidth, LcConfigC_GetTabWidth )
756// skip class-overload: LcConfigHandleGet → HandleGet, LcConfigC_HandleGet
757OT_METH_O ( LcConfigC, Log, LcConfigC_Log )
758OT_METH_O ( LcConfigC, ReadFile, LcConfigC_ReadFile )
759OT_METH_O ( LcConfigC, ReadString, LcConfigC_ReadString )
760OT_METH_O ( LcConfigC, SetDefaultFormat, LcConfigC_SetDefaultFormat )
761OT_METH_O ( LcConfigC, SetFloatPrecision, LcConfigC_SetFloatPrecision )
762OT_METH_O ( LcConfigC, SetIncludeDir, LcConfigC_SetIncludeDir )
763OT_METH_O ( LcConfigC, SetIncludeFunc, LcConfigC_SetIncludeFunc )
764OT_METH_O ( LcConfigC, SetOption, LcConfigC_SetOption )
765OT_METH_O ( LcConfigC, SetOptions, LcConfigC_SetOptions )
766OT_METH_O ( LcConfigC, SetSettingDeleteFunc, LcConfigC_SetSettingDeleteFunc )
767OT_METH_O ( LcConfigC, SetTabWidth, LcConfigC_SetTabWidth )
768OT_METH_O ( LcConfigC, WriteFile, LcConfigC_WriteFile )
769
770// doc-key: LcConfigC,LcConfig,omo
771OT_METH_O ( LcConfigC, LookupBool, LcConfigC_LookupBool )
772OT_METH_O ( LcConfigC, LookupFloat, LcConfigC_LookupFloat )
773OT_METH_O ( LcConfigC, LookupInt, LcConfigC_LookupInt )
774OT_METH_O ( LcConfigC, LookupInt64, LcConfigC_LookupInt64 )
775OT_METH_O ( LcConfigC, LookupString, LcConfigC_LookupString )
776OT_METH_O ( LcConfigC, WriteString, LcConfigC_WriteString )
777
778// END-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
779
780}
static MK_TYP LcConfigCTT
#define S_INIT
#define OT_METH_S(c, s, f)
#define OT_METH_O(c, s, f)
#define OT_METH_C(c, s, f)
__thread MK_TYP LcConfigC_TT
class as MkTypeDefS-class-type …

◆ rblcconfig_LcSettingC_Init()

void rblcconfig_LcSettingC_Init ( MK_RT mkrt)

Definition at line 998 of file LcSettingC_rb.c.

998 {
999
1000 // init type
1002 S_INIT;
1003
1004// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
1005
1006// doc-key: LcSettingC,LcSetting,sc_
1007OT_METH_O ( LcSettingC, GetNull, LcSettingC_GetNull )
1008OT_METH_S ( LcSettingC, GetNull, LcSettingC_GetNull )
1009OT_METH_O ( LcSettingC, HandleResolve, LcSettingC_HandleResolve )
1010OT_METH_S ( LcSettingC, HandleResolve, LcSettingC_HandleResolve )
1011OT_METH_O ( LcSettingC, Instances, LcSettingC_Instances )
1012OT_METH_S ( LcSettingC, Instances, LcSettingC_Instances )
1013
1014// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
1015
1016// BEGIN-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
1017
1018// doc-key: LcSettingC,LcSetting,oC_
1019OT_METH_O ( LcSettingC, Add, LcSettingC_Add )
1020
1021// doc-key: LcSettingC,LcSetting,oc_
1022OT_METH_O ( LcSettingC, AddIfNotExists, LcSettingC_AddIfNotExists )
1023OT_METH_O ( LcSettingC, GetConfig, LcSettingC_GetConfig )
1024OT_METH_O ( LcSettingC, GetElem, LcSettingC_GetElem )
1025OT_METH_O ( LcSettingC, GetMember, LcSettingC_GetMember )
1026OT_METH_O ( LcSettingC, Lookup, LcSettingC_Lookup )
1027OT_METH_O ( LcSettingC, LookupAll, LcSettingC_LookupAll )
1028OT_METH_O ( LcSettingC, Next, LcSettingC_Next )
1029OT_METH_O ( LcSettingC, Parent, LcSettingC_Parent )
1030OT_METH_O ( LcSettingC, Prev, LcSettingC_Prev )
1031OT_METH_O ( LcSettingC, SetBoolElem, LcSettingC_SetBoolElem )
1032OT_METH_O ( LcSettingC, SetFloatElem, LcSettingC_SetFloatElem )
1033OT_METH_O ( LcSettingC, SetInt64Elem, LcSettingC_SetInt64Elem )
1034OT_METH_O ( LcSettingC, SetIntElem, LcSettingC_SetIntElem )
1035OT_METH_O ( LcSettingC, SetStringElem, LcSettingC_SetStringElem )
1036
1037// doc-key: LcSettingC,LcSetting,om_
1038OT_METH_O ( LcSettingC, Exists, LcSettingC_Exists )
1039OT_METH_O ( LcSettingC, GetBool, LcSettingC_GetBool )
1040OT_METH_O ( LcSettingC, GetBoolElem, LcSettingC_GetBoolElem )
1041OT_METH_O ( LcSettingC, GetFloat, LcSettingC_GetFloat )
1042OT_METH_O ( LcSettingC, GetFloatElem, LcSettingC_GetFloatElem )
1043OT_METH_O ( LcSettingC, GetFormat, LcSettingC_GetFormat )
1044OT_METH_O ( LcSettingC, GetInt, LcSettingC_GetInt )
1045OT_METH_O ( LcSettingC, GetInt64, LcSettingC_GetInt64 )
1046OT_METH_O ( LcSettingC, GetInt64Elem, LcSettingC_GetInt64Elem )
1047OT_METH_O ( LcSettingC, GetIntElem, LcSettingC_GetIntElem )
1048OT_METH_O ( LcSettingC, GetString, LcSettingC_GetString )
1049OT_METH_O ( LcSettingC, GetStringElem, LcSettingC_GetStringElem )
1050// skip class-overload: LcSettingHandleGet → HandleGet, LcSettingC_HandleGet
1051OT_METH_O ( LcSettingC, Index, LcSettingC_Index )
1052OT_METH_O ( LcSettingC, IsAggregate, LcSettingC_IsAggregate )
1053OT_METH_O ( LcSettingC, IsArray, LcSettingC_IsArray )
1054OT_METH_O ( LcSettingC, IsGroup, LcSettingC_IsGroup )
1055OT_METH_O ( LcSettingC, IsList, LcSettingC_IsList )
1056OT_METH_O ( LcSettingC, IsNumber, LcSettingC_IsNumber )
1057OT_METH_O ( LcSettingC, IsRoot, LcSettingC_IsRoot )
1058OT_METH_O ( LcSettingC, IsScalar, LcSettingC_IsScalar )
1059OT_METH_O ( LcSettingC, Length, LcSettingC_Length )
1060// skip class-overload: LcSettingLog → Log, LcSettingC_Log
1061OT_METH_O ( LcSettingC, Name, LcSettingC_Name )
1062OT_METH_O ( LcSettingC, Remove, LcSettingC_Remove )
1063OT_METH_O ( LcSettingC, RemoveElem, LcSettingC_RemoveElem )
1064OT_METH_O ( LcSettingC, SetBool, LcSettingC_SetBool )
1065OT_METH_O ( LcSettingC, SetFloat, LcSettingC_SetFloat )
1066OT_METH_O ( LcSettingC, SetFormat, LcSettingC_SetFormat )
1067OT_METH_O ( LcSettingC, SetInt, LcSettingC_SetInt )
1068OT_METH_O ( LcSettingC, SetInt64, LcSettingC_SetInt64 )
1069OT_METH_O ( LcSettingC, SetString, LcSettingC_SetString )
1070OT_METH_O ( LcSettingC, SourceFile, LcSettingC_SourceFile )
1071OT_METH_O ( LcSettingC, SourceLine, LcSettingC_SourceLine )
1072OT_METH_O ( LcSettingC, Type, LcSettingC_Type )
1073
1074// doc-key: LcSettingC,LcSetting,omo
1075OT_METH_O ( LcSettingC, LookupBool, LcSettingC_LookupBool )
1076OT_METH_O ( LcSettingC, LookupFloat, LcSettingC_LookupFloat )
1077OT_METH_O ( LcSettingC, LookupInt, LcSettingC_LookupInt )
1078OT_METH_O ( LcSettingC, LookupInt64, LcSettingC_LookupInt64 )
1079OT_METH_O ( LcSettingC, LookupString, LcSettingC_LookupString )
1080
1081// END-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
1082
1083}
static MK_TYP LcSettingCTT
#define S_INIT
__thread MK_TYP LcSettingC_TT
class as MkTypeDefS-class-type …

◆ rblcconfig_SettingDeleteCall()

enum MkErrorE rblcconfig_SettingDeleteCall ( LcSettingDeleteCallF_ARGS )

Definition at line 125 of file LcCall_rb.c.

126{
128
129 struct MkCallS *call = cfg->fSettingDeleteData;
130 int argNum = 1;
131
132 // 1. check environment
133 if (OT_LNG_NULL_IS(call->procCallback)) return MK_OK;
134
135//printLngObj(call->procCallback)
136
137MkDbgDeepX_3(cfg, "AAA", "cmd=%s", VAL2STRN(rb_inspect(call->procCallback)));
138
139 // 2. if not already done initialize
140 if (call->procCall == NULL) {
141 switch (call->procType) {
142 case MkCallS_own_method: {
143 if (call->procArity != argNum) goto methode_arg_error;
144 call->procCall = NS(sCallMethod);
145 }
146 break;
147 default:
148 MkErrorSetV_3M(cfg, "WrongInitError", "found invalid procType for callback '%s'", VAL2STRN(call->procCallback));
149 goto error;
150 break;
151 }
152 }
153
154 VALUE ary = rb_ary_resize(call->procArgs,2);
155 rb_ary_store(ary,0,call->procCallback);
156 rb_ary_store(ary,1,LONG2VAL(MkObjectHandleGet_1X(cfs)));
157 NS(sRescue)(MK_RT_CALL cfg,call->procCall,ary);
158
159 MkErrorCheck_0E();
160
161MkDbgDeepX_3(mqctx, "BBB", "cmd=%s", VAL2STRN(rb_inspect(call->procCallback)));
162 return MkErrorGetCode_0E();
163
164methode_arg_error:
165 MkErrorSetV_3M(cfg, "WrongNumberOfArgError", "for callback '%s' exactly '%d' argument is required, but '%d' was received",
166 VAL2STRN(call->procCallback), argNum, call->procArity);
167 goto error;
168
169error:
170MkDbgDeepX_3(cfg, "EEE", "cmd=%s", VAL2STRN(rb_inspect(call->procCallback)));
171//printSTACK_1(mqctx)
172 return MkErrorStack_0E();
173}
#define LONG2VAL(nat)
#define LcSettingDeleteCallF_CHECK
#define MkObjectHandleGet_1X(x)

◆ rblcconfig_SettingDeleteFree()

void rblcconfig_SettingDeleteFree ( LcSettingDeleteFreeF_ARGS )

Definition at line 175 of file LcCall_rb.c.

176{
177 MK(CallFree)(&cfg->fSettingDeleteData);
178}