theKernel 10.0
Loading...
Searching...
No Matches
MkLogFileC_tcl.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for MkLogFileC_tcl.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "MkLogFileC_tcl.c"
 
#define OT_CLASS   NS(MkLogFileC)
 
#define OT_CLASS_NAME   "MkLogFileC"
 
#define OBJECT2LFL(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(LFL,MK_LFL);
 
#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(LFL,MK_LFL);
 
#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(LFL,MK_LFL);
 
#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   "MkLogFileC [MkLogFileC CTOR fmtobj:MkObjectC file:string]"
 
#define Open_doc   "MkLogFileC [MkLogFileC Open fmtobj:MkObjectC file:string]"
 
#define GetNull_doc   "MkLogFileC [MkLogFileC GetNull]"
 
#define HandleResolve_doc   "MkLogFileC [MkLogFileC HandleResolve netHdl:MK_HDL]"
 
#define Instances_doc   "MkLogFileC [MkLogFileC Instances]"
 
#define Next_doc   "MkLogFileC [$lfl Next]"
 
#define Prev_doc   "MkLogFileC [$lfl Prev]"
 
#define WriteC_doc   "$lfl WriteC text:string (const)"
 
#define GetFile_doc   "string [$lfl GetFile] (const)"
 

Functions

static MK_PTR tclmkkernel_MkLogFileC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void tclmkkernel_MkLogFileC_selfDelete (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static void tclmkkernel_MkLogFileC_selfUnlink (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static OT_ProcRet tclmkkernel_MkLogFileC_HandleResolve (OtClass_ARGS)
  Tcl: (static) MkLogFileC [MkLogFileC HandleResolve netHdl:MK_HDL] C-API
Handle-Resolve-Slot - return a MkLogFileC from netHdl or "MK_NULL" if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmkkernel_MkLogFileC_HandleGet (MkLogFileC_ARGS)
 
static OT_ProcRet tclmkkernel_MkLogFileC_Next (MkLogFileC_ARGS)
  Tcl: MkLogFileC [$lfl Next] C-API
get next instance from linked-list of MkLogFileS type
 
static OT_ProcRet tclmkkernel_MkLogFileC_Prev (MkLogFileC_ARGS)
  Tcl: MkLogFileC [$lfl Prev] C-API
get previous instance from linked-list of MkLogFileS type
 
static OT_ProcRet tclmkkernel_MkLogFileC_Instances (OtClass_ARGS)
  Tcl: (static) MkLogFileC [MkLogFileC Instances] C-API
get head-instance from linked-list of MkLogFileS type …
 
static OT_ProcRet tclmkkernel_MkLogFileC_GetNull (OtClass_ARGS)
  Tcl: (static) MkLogFileC [MkLogFileC GetNull] C-API
Null-Slot - return a MkLogFileC typed NULL instance …
 
static OT_ProcRet tclmkkernel_MkLogFileC_CTOR (CONSTR_ARGS)
  Tcl: (constructor,static) MkLogFileC [MkLogFileC CTOR fmtobj:MkObjectC file:string] C-API
open the log-file in append mode …
 
static OT_ProcRet tclmkkernel_MkLogFileC_Open (OtClass_ARGS)
  Tcl: (constructor,static) MkLogFileC [MkLogFileC Open fmtobj:MkObjectC file:string] C-API
open the log-file in append mode …
 
static OT_ProcRet tclmkkernel_MkLogFileC_WriteC (MkLogFileC_ARGS)
  Tcl: $lfl WriteC text:string C-API
write to log-file
 
static OT_ProcRet tclmkkernel_MkLogFileC_GetFile (MkLogFileC_ARGS)
  Tcl: string [$lfl GetFile] C-API
get the log-file
 
int tclmkkernel_pMkLogFileC_Init (MK_RT mkrt, OT_ENV_T interp, OT_NS_T ns)
 

Variables

__thread OT_CLS_T OT_CLASS = NULL
 
static __thread MK_TYP MkLogFileCTT = NULL
 
__thread OT_OBJ_T tclmkkernel_MkLogFileC_MK_NULL = NULL
 
static const Tcl_MethodType tclmkkernel_sOtClassDef []
 
static const Tcl_MethodType tclmkkernel_sInstanceDef []
 

Detailed Description

tag: nhi1-release-250425

Definition in file MkLogFileC_tcl.c.

Macro Definition Documentation

◆ ClassInit

#define ClassInit
Value:
/* if not already done, initialize NEW MQ type */ \
\
/* protect against double call */ \
if (MkLogFileCTT->selfCreate == NS(MkLogFileC_selfCreate)) return MK_OK; \
\
/* add "selfCreate" and "selfDelete" feature to the MQ-Class */ \
MkLogFileCTT->selfCreate = NS(MkLogFileC_selfCreate); \
MkLogFileCTT->selfDelete = NS(MkLogFileC_selfDelete); \
MkLogFileCTT->selfUnlink = NS(MkLogFileC_selfUnlink); \
\
/* create the TCL-class */ \
OT_SELF_T classO = MK(ClassDef)(interp,ns,MkLogFileCTT); \
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 */ \
MK(MkLogFileC_MK_NULL) = Tcl_GetObjectName(interp, \
MK(AtomCreate) (MK_RT_CALL interp, NULL /*obj*/, OT_CLASS, "MK_NULL" /*name*/, "::tclmkkernel::MkLogFileC" /*ns*/) \
); \
Tcl_IncrRefCount(MK(MkLogFileC_MK_NULL));
#define MK(n)
@ OT_UNKNOWN_CLASS
@ OT_UNKNOWN_INSTANCE
#define NS(n)
Tcl_Object OT_SELF_T
#define OT_CLASS
static __thread MK_TYP MkLogFileCTT
@ MK_OK
(persistent) everything is OK.
#define MkLogFileSTT
instance-type as MkTypeS-class-type (cast from MkLogFileST into MkTypeS) …
#define MkThreadLocal
#define MK_RT_CALL
MkSelfUnlinkF selfUnlink
"unlink" the "self" pointer from META-Kernel
MkSelfDeleteF selfDelete
"delete" the "self" pointer
MkSelfCreateF selfCreate
"create" the "self" pointer

Definition at line 77 of file MkLogFileC_tcl.c.

77#define ClassInit \
78 /* if not already done, initialize NEW MQ type */ \
79 if (MkLogFileCTT == NULL) MkLogFileCTT = MkLogFileSTT; \
80 \
81 /* protect against double call */ \
82 if (MkLogFileCTT->selfCreate == NS(MkLogFileC_selfCreate)) return MK_OK; \
83 \
84 /* add "selfCreate" and "selfDelete" feature to the MQ-Class */ \
85 MkLogFileCTT->selfCreate = NS(MkLogFileC_selfCreate); \
86 MkLogFileCTT->selfDelete = NS(MkLogFileC_selfDelete); \
87 MkLogFileCTT->selfUnlink = NS(MkLogFileC_selfUnlink); \
88 \
89 /* create the TCL-class */ \
90 OT_SELF_T classO = MK(ClassDef)(interp,ns,MkLogFileCTT); \
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 MK(MkLogFileC_MK_NULL) = Tcl_GetObjectName(interp, \
104 MK(AtomCreate) (MK_RT_CALL interp, NULL /*obj*/, OT_CLASS, "MK_NULL" /*name*/, "::tclmkkernel::MkLogFileC" /*ns*/) \
105 ); \
106 Tcl_IncrRefCount(MK(MkLogFileC_MK_NULL));

◆ CTOR_doc

#define CTOR_doc   "MkLogFileC [MkLogFileC CTOR fmtobj:MkObjectC file:string]"

Definition at line 115 of file MkLogFileC_tcl.c.

◆ GetFile_doc

#define GetFile_doc   "string [$lfl GetFile] (const)"

Definition at line 132 of file MkLogFileC_tcl.c.

◆ GetNull_doc

#define GetNull_doc   "MkLogFileC [MkLogFileC GetNull]"

Definition at line 119 of file MkLogFileC_tcl.c.

◆ HandleResolve_doc

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

Definition at line 120 of file MkLogFileC_tcl.c.

◆ Instances_doc

#define Instances_doc   "MkLogFileC [MkLogFileC Instances]"

Definition at line 121 of file MkLogFileC_tcl.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "MkLogFileC_tcl.c"

Definition at line 11 of file MkLogFileC_tcl.c.

◆ Next_doc

#define Next_doc   "MkLogFileC [$lfl Next]"

Definition at line 124 of file MkLogFileC_tcl.c.

◆ OBJECT2LFL

#define OBJECT2LFL ( O)
Value:
MkAssertCastM(MkLogFileC,(Tcl_ObjectGetMetadata(O, &MK(AtomMeta))))
#define MkAssertCastM(cls, m)
}

Definition at line 18 of file MkLogFileC_tcl.c.

◆ Open_doc

#define Open_doc   "MkLogFileC [MkLogFileC Open fmtobj:MkObjectC file:string]"

Definition at line 116 of file MkLogFileC_tcl.c.

◆ OT_CLASS

#define OT_CLASS   NS(MkLogFileC)

Definition at line 15 of file MkLogFileC_tcl.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "MkLogFileC"

Definition at line 16 of file MkLogFileC_tcl.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   SetupHdlFromMetaData_2(LFL,MK_LFL);

Definition at line 59 of file MkLogFileC_tcl.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(LFL,MK_LFL);

Definition at line 60 of file MkLogFileC_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); \
MK_LFL hdl = (MK_LFL) &MkERROR;
#define OT_SETUP_hdl_constr_pre
#define MkERROR
struct MkLogFileS * MK_LFL
class-shortcut for struct MkLogFileS *, all shortcut using the XX_YYY syntax (only for public API) …
#define AllRtSetup_NULL
#define MK_RT_UNUSED
define a MkLogFileC object …

Definition at line 64 of file MkLogFileC_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 MK_LFL hdl = (MK_LFL) &MkERROR;

◆ OT_SETUP_hdl_constr_pre

#define OT_SETUP_hdl_constr_pre

Definition at line 63 of file MkLogFileC_tcl.c.

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(LFL,MK_LFL);

Definition at line 61 of file MkLogFileC_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 = MkLogFileC##_TT;
MkTypeS - class known as typ or type is used as class-base for a Managed-Object-Technology (MOT) type...

Definition at line 53 of file MkLogFileC_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 = MkLogFileC##_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 MkLogFileC_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 MkLogFileC_tcl.c.

◆ Prev_doc

#define Prev_doc   "MkLogFileC [$lfl Prev]"

Definition at line 125 of file MkLogFileC_tcl.c.

◆ SetupRtFromHdl_X

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

Definition at line 73 of file MkLogFileC_tcl.c.

◆ SetupRtFromHdl_XN

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

Definition at line 72 of file MkLogFileC_tcl.c.

◆ VER

#define VER   TCL_OO_METHOD_VERSION_CURRENT

Definition at line 108 of file MkLogFileC_tcl.c.

◆ WriteC_doc

#define WriteC_doc   "$lfl WriteC text:string (const)"

Definition at line 129 of file MkLogFileC_tcl.c.

Function Documentation

◆ tclmkkernel_MkLogFileC_selfCreate()

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

Definition at line 28 of file MkLogFileC_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

◆ tclmkkernel_MkLogFileC_selfDelete()

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

Definition at line 33 of file MkLogFileC_tcl.c.

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

◆ tclmkkernel_MkLogFileC_selfUnlink()

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

Definition at line 39 of file MkLogFileC_tcl.c.

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

◆ tclmkkernel_pMkLogFileC_Init()

int tclmkkernel_pMkLogFileC_Init ( MK_RT mkrt,
OT_ENV_T interp,
OT_NS_T ns )

Public API

Definition at line 389 of file MkLogFileC_tcl.c.

390{
392
393 return TCL_OK;
394error:
395 return TCL_ERROR;
396}
#define ClassInit

Variable Documentation

◆ MkLogFileCTT

__thread MK_TYP MkLogFileCTT = NULL
static

Definition at line 24 of file MkLogFileC_tcl.c.

◆ OT_CLASS

__thread OT_CLS_T OT_CLASS = NULL

Definition at line 21 of file MkLogFileC_tcl.c.

◆ tclmkkernel_MkLogFileC_MK_NULL

__thread OT_OBJ_T tclmkkernel_MkLogFileC_MK_NULL = NULL

Definition at line 25 of file MkLogFileC_tcl.c.

◆ tclmkkernel_sInstanceDef

const Tcl_MethodType tclmkkernel_sInstanceDef[]
static
Initial value:
= {
{VER, "<constructor>" , tclmkkernel_MkLogFileC_CTOR , NULL, NULL},
{VER, "Next" , tclmkkernel_MkLogFileC_Next , NULL, NULL},
{VER, "Prev" , tclmkkernel_MkLogFileC_Prev , NULL, NULL},
{VER, "WriteC" , tclmkkernel_MkLogFileC_WriteC , NULL, NULL},
{VER, "GetFile" , tclmkkernel_MkLogFileC_GetFile , NULL, NULL},
{0, NULL, NULL, NULL, NULL}
}
#define VER
static OT_ProcRet tclmkkernel_MkLogFileC_Prev(MkLogFileC_ARGS)
Tcl: MkLogFileC [$lfl Prev] → C-API get previous instance from linked-list of MkLogFileS type
static OT_ProcRet tclmkkernel_MkLogFileC_Next(MkLogFileC_ARGS)
Tcl: MkLogFileC [$lfl Next] → C-API get next instance from linked-list of MkLogFileS type
static OT_ProcRet tclmkkernel_MkLogFileC_CTOR(CONSTR_ARGS)
Tcl: (constructor,static) MkLogFileC [MkLogFileC CTOR fmtobj:MkObjectC file:string] → C-API open...
static OT_ProcRet tclmkkernel_MkLogFileC_GetFile(MkLogFileC_ARGS)
Tcl: string [$lfl GetFile] → C-API get the log-file …
static OT_ProcRet tclmkkernel_MkLogFileC_WriteC(MkLogFileC_ARGS)
Tcl: $lfl WriteC text:string → C-API write to log-file …

Definition at line 362 of file MkLogFileC_tcl.c.

362 {
363// BEGIN-OBJ - created by 'tcl_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
364
365// doc-key: MkLogFileC,MkLogFile,oC_
366 {VER, "<constructor>" , NS(MkLogFileC_CTOR) , NULL, NULL},
367
368// doc-key: MkLogFileC,MkLogFile,oc_
369 {VER, "Next" , NS(MkLogFileC_Next) , NULL, NULL},
370 {VER, "Prev" , NS(MkLogFileC_Prev) , NULL, NULL},
371
372// doc-key: MkLogFileC,MkLogFile,om_
373 // skip class-overload: MkLogFileHandleGet → HandleGet, NS(MkLogFileC_HandleGet)
374 {VER, "WriteC" , NS(MkLogFileC_WriteC) , NULL, NULL},
375
376// doc-key: MkLogFileC,MkLogFile,omo
377 {VER, "GetFile" , NS(MkLogFileC_GetFile) , NULL, NULL},
378
379// END-OBJ - created by 'tcl_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
380 {0, NULL, NULL, NULL, NULL}
381};

◆ tclmkkernel_sOtClassDef

const Tcl_MethodType tclmkkernel_sOtClassDef[]
static
Initial value:
= {
{VER, "Open" , tclmkkernel_MkLogFileC_Open , NULL, NULL},
{VER, "GetNull" , tclmkkernel_MkLogFileC_GetNull , NULL, NULL},
{VER, "HandleResolve" , tclmkkernel_MkLogFileC_HandleResolve , NULL, NULL},
{VER, "Instances" , tclmkkernel_MkLogFileC_Instances , NULL, NULL},
{0, NULL, NULL, NULL}
}
static OT_ProcRet tclmkkernel_MkLogFileC_Instances(OtClass_ARGS)
Tcl: (static) MkLogFileC [MkLogFileC Instances] → C-API get head-instance from linked-list of Mk...
static OT_ProcRet tclmkkernel_MkLogFileC_HandleResolve(OtClass_ARGS)
Tcl: (static) MkLogFileC [MkLogFileC HandleResolve netHdl:MK_HDL] → C-API Handle-Resolve-Slot - ...
static OT_ProcRet tclmkkernel_MkLogFileC_GetNull(OtClass_ARGS)
Tcl: (static) MkLogFileC [MkLogFileC GetNull] → C-API Null-Slot - return a MkLogFileC typed NULL...
static OT_ProcRet tclmkkernel_MkLogFileC_Open(OtClass_ARGS)
Tcl: (constructor,static) MkLogFileC [MkLogFileC Open fmtobj:MkObjectC file:string] → C-API open...

Definition at line 345 of file MkLogFileC_tcl.c.

345 {
346// BEGIN-CLASS - created by 'tcl_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
347
348// doc-key: MkLogFileC,MkLogFile,sCo
349 {VER, "Open" , NS(MkLogFileC_Open) , NULL, NULL},
350
351// doc-key: MkLogFileC,MkLogFile,sc_
352 {VER, "GetNull" , NS(MkLogFileC_GetNull) , NULL, NULL},
353 {VER, "HandleResolve" , NS(MkLogFileC_HandleResolve) , NULL, NULL},
354 {VER, "Instances" , NS(MkLogFileC_Instances) , NULL, NULL},
355
356// END-CLASS - created by 'tcl_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
357 {0, NULL, NULL, NULL}
358};