theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3FileC_atl.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for Sq3FileC_atl.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "Sq3FileC_atl.c"
 
#define OT_CLASS   asq3rt->AtlSq3FileC
 
#define OT_NULL   asq3rt->AtlSq3FileC_MK_NULL
 
#define OT_CLASS_NAME   "Sq3FileC"
 
#define SELF2HDL(O)
 
#define OT_SETUP_hdl   SetupHdlFromMetaData_2(SQ3_FILE)
 
#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(SQ3_FILE)
 
#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(SQ3_FILE)
 
#define OT_SETUP_hdl_constr   SetupHdlConstr(Sq3FileC)
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static   SetupHdlStatic(Sq3FileC)
 
#define OT_retObj_CONSTR(x)
 
#define ClassInit
 
#define DatabaseObject_doc   "Sq3FileC [Sq3FileC::DatabaseObject X:string]"
 
#define GetNull_doc   "Sq3FileC [Sq3FileC::GetNull]"
 
#define HandleResolve_doc   "Sq3FileC [Sq3FileC::HandleResolve netHdl:MK_HDL]"
 
#define Instances_doc   "Sq3FileC [Sq3FileC::Instances]"
 
#define Next_doc   "Sq3FileC [Sq3FileC::Next $file]"
 
#define Prev_doc   "Sq3FileC [Sq3FileC::Prev $file]"
 

Functions

static MK_PTR atlsq3lite_Sq3FileC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void atlsq3lite_Sq3FileC_selfDelete (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static void atlsq3lite_Sq3FileC_selfUnlink (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static OT_ProcRet atlsq3lite_Sq3FileC_HandleResolve (OtClass_ARGS)
  Atl: (static) Sq3FileC [Sq3FileC::HandleResolve netHdl:MK_HDL] C-API
Handle-Resolve-Slot - return a Sq3FileC from netHdl or "MK_NULL" if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet atlsq3lite_Sq3FileC_HandleGet (Sq3FileC_ARGS)
 
static OT_ProcRet atlsq3lite_Sq3FileC_Next (Sq3FileC_ARGS)
  Atl: Sq3FileC [Sq3FileC::Next $file] C-API
get next instance from linked-list of Sq3FileS type
 
static OT_ProcRet atlsq3lite_Sq3FileC_Prev (Sq3FileC_ARGS)
  Atl: Sq3FileC [Sq3FileC::Prev $file] C-API
get previous instance from linked-list of Sq3FileS type
 
static OT_ProcRet atlsq3lite_Sq3FileC_Instances (OtClass_ARGS)
  Atl: (static) Sq3FileC [Sq3FileC::Instances] C-API
get head-instance from linked-list of Sq3FileS type …
 
static OT_ProcRet atlsq3lite_Sq3FileC_GetNull (OtClass_ARGS)
  Atl: (static) Sq3FileC [Sq3FileC::GetNull] C-API
Null-Slot - return a Sq3FileC typed NULL instance …
 
static OT_ProcRet atlsq3lite_Sq3FileC_DatabaseObject (OtClass_ARGS)
  Atl: (constructor,static) Sq3FileC [Sq3FileC::DatabaseObject X:string] C-API
Database File Corresponding To A Journal …
 
int atlsq3lite_pSq3FileC_Init (OT_SQ3_ARGS OT_NS_T ns)
 

Variables

static const OtObjProcDefS atlsq3lite_sOtClassDef []
 
static const OtObjProcDefS atlsq3lite_sInstanceDef []
 

Detailed Description

tag: nhi1-release-250425

Definition in file Sq3FileC_atl.c.

Macro Definition Documentation

◆ ClassInit

#define ClassInit

Definition at line 57 of file Sq3FileC_atl.c.

57#define ClassInit \
58 /* if not already done, initialize NEW META type */ \
59 if (Sq3FileCTT == NULL) Sq3FileCTT = Sq3FileSTT; \
60 \
61 /* protect against double call */ \
62 if (Sq3FileCTT->selfCreate == NS(Sq3FileC_selfCreate)) return MK_OK; \
63 \
64 /* add "selfCreate" and "selfDelete" feature to the META-Class */ \
65 Sq3FileCTT->selfCreate = NS(Sq3FileC_selfCreate); \
66 Sq3FileCTT->selfDelete = NS(Sq3FileC_selfDelete); \
67 Sq3FileCTT->selfUnlink = NS(Sq3FileC_selfUnlink); \
68 \
69 /* create the ATL-class */ \
70 OT_CLASS = AltClassDef(Sq3FileCTT,&asq3rt->AtlSq3FileC_NS); \
71 if (OT_CLASS == NULL) goto error; \
72 OT_REF_INCR(OT_CLASS); \
73 \
74 /* create the ATL static Methods */ \
75 check_LNG(AtlUnknownSetup (NS(sOtClassDef),asq3rt)) goto error; \
76 \
77 /* create the ATL instance Methods */ \
78 check_LNG(AtlUnknownSetup (NS(sInstanceDef),asq3rt)) goto error; \
79 \
80 /* after class was modified, recompile the class */ \
81 RL_init(2, recompile, RL_T(0,RecompileN)); RL_O(1,OT_CLASS) ; \
82 int retI = RL_EvalEx(0); \
83 if (retI != TCL_OK) return retI; \
84 \
85 /* define the "NULL" object */ \
86 OT_NULL = AtomCreateNULL(OT_CLASS, "::Sq3FileC::MK_NULL", (MK_PTR)asq3rt); \
87 if (OT_NULL == NULL) goto error; \
88 OT_REF_INCR(OT_NULL);

◆ DatabaseObject_doc

#define DatabaseObject_doc   "Sq3FileC [Sq3FileC::DatabaseObject X:string]"

Definition at line 94 of file Sq3FileC_atl.c.

◆ GetNull_doc

#define GetNull_doc   "Sq3FileC [Sq3FileC::GetNull]"

Definition at line 97 of file Sq3FileC_atl.c.

◆ HandleResolve_doc

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

Definition at line 98 of file Sq3FileC_atl.c.

◆ Instances_doc

#define Instances_doc   "Sq3FileC [Sq3FileC::Instances]"

Definition at line 99 of file Sq3FileC_atl.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "Sq3FileC_atl.c"

Definition at line 11 of file Sq3FileC_atl.c.

◆ Next_doc

#define Next_doc   "Sq3FileC [Sq3FileC::Next $file]"

Definition at line 102 of file Sq3FileC_atl.c.

◆ OT_CLASS

#define OT_CLASS   asq3rt->AtlSq3FileC

Definition at line 15 of file Sq3FileC_atl.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "Sq3FileC"

Definition at line 17 of file Sq3FileC_atl.c.

◆ OT_NULL

#define OT_NULL   asq3rt->AtlSq3FileC_MK_NULL

Definition at line 16 of file Sq3FileC_atl.c.

◆ OT_retObj_CONSTR

#define OT_retObj_CONSTR ( x)
Value:
#define OT_SELF
#define AtomInit(...)
#define OT_retObj_SET(val)
#define Sq3FileC_X2obj(x)

Definition at line 54 of file Sq3FileC_atl.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   SetupHdlFromMetaData_2(SQ3_FILE)

Definition at line 47 of file Sq3FileC_atl.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(SQ3_FILE)

Definition at line 48 of file Sq3FileC_atl.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr   SetupHdlConstr(Sq3FileC)

Definition at line 50 of file Sq3FileC_atl.c.

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(SQ3_FILE)

Definition at line 49 of file Sq3FileC_atl.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static   SetupHdlStatic(Sq3FileC)

Definition at line 52 of file Sq3FileC_atl.c.

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 51 of file Sq3FileC_atl.c.

◆ Prev_doc

#define Prev_doc   "Sq3FileC [Sq3FileC::Prev $file]"

Definition at line 103 of file Sq3FileC_atl.c.

◆ SELF2HDL

#define SELF2HDL ( O)
Value:
#define VAL2MNG(val)
static SQ3_FILE Sq3File(MK_MNG mng)
cast a unknown-object into an Sq3FileS pointer or NULL if not possible

Definition at line 19 of file Sq3FileC_atl.c.

Function Documentation

◆ atlsq3lite_pSq3FileC_Init()

int atlsq3lite_pSq3FileC_Init ( OT_SQ3_ARGS OT_NS_T ns)

Public API

Definition at line 295 of file Sq3FileC_atl.c.

296{
298
299 return TCL_OK;
300error:
301 return TCL_ERROR;
302}
#define ClassInit

◆ atlsq3lite_Sq3FileC_selfCreate()

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

Definition at line 28 of file Sq3FileC_atl.c.

28 {
29 SETUP_asq3rt(env);
30 return AtomMake(obj,OT_CLASS,NULL,NULL,env);
31}
#define AtomMake(...)
#define SETUP_asq3rt(r)
#define OT_CLASS

◆ atlsq3lite_Sq3FileC_selfDelete()

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

Definition at line 34 of file Sq3FileC_atl.c.

34 {
35 OT_SELF_T selfO = selfP;
36 SETUP_asq3rt(env);
37 MK(AtomDeleteHard) (OT_MK_CALL selfO);
38}
#define MK(n)
MOX_OBJ_T OT_SELF_T
#define OT_MK_CALL

◆ atlsq3lite_Sq3FileC_selfUnlink()

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

Definition at line 41 of file Sq3FileC_atl.c.

41 {
42 OT_SELF_T selfO = selfP;
43 SETUP_asq3rt(env);
44 return MK(AtomUnlink) (OT_MK_CALL selfO);
45}

Variable Documentation

◆ atlsq3lite_sInstanceDef

const OtObjProcDefS atlsq3lite_sInstanceDef[]
static
Initial value:
= {
{ "::Sq3FileC::Next" , atlsq3lite_Sq3FileC_Next },
{ "::Sq3FileC::Prev" , atlsq3lite_Sq3FileC_Prev },
{ NULL }
}
static OT_ProcRet atlsq3lite_Sq3FileC_Prev(Sq3FileC_ARGS)
Atl: Sq3FileC [Sq3FileC::Prev $file] → C-API get previous instance from linked-list of Sq3FileS...
static OT_ProcRet atlsq3lite_Sq3FileC_Next(Sq3FileC_ARGS)
Atl: Sq3FileC [Sq3FileC::Next $file] → C-API get next instance from linked-list of Sq3FileS typ...

Definition at line 275 of file Sq3FileC_atl.c.

275 {
276 // BEGIN-OBJ - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
277
278 // doc-key: Sq3FileC,Sq3File,oc_
279 { "::Sq3FileC::Next" , NS(Sq3FileC_Next) },
280 { "::Sq3FileC::Prev" , NS(Sq3FileC_Prev) },
281
282 // doc-key: Sq3FileC,Sq3File,om_
283 // skip class-overload: HandleGet → MkObjectHandleGet
284
285 // END-OBJ - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
286 { NULL }
287};
#define NS(n)

◆ atlsq3lite_sOtClassDef

const OtObjProcDefS atlsq3lite_sOtClassDef[]
static
Initial value:
= {
{ "::Sq3FileC::DatabaseObject" , atlsq3lite_Sq3FileC_DatabaseObject },
{ "::Sq3FileC::GetNull" , atlsq3lite_Sq3FileC_GetNull },
{ "::Sq3FileC::HandleResolve" , atlsq3lite_Sq3FileC_HandleResolve },
{ "::Sq3FileC::Instances" , atlsq3lite_Sq3FileC_Instances },
{ NULL }
}
static OT_ProcRet atlsq3lite_Sq3FileC_Instances(OtClass_ARGS)
Atl: (static) Sq3FileC [Sq3FileC::Instances] → C-API get head-instance from linked-list of Sq3Fi...
static OT_ProcRet atlsq3lite_Sq3FileC_GetNull(OtClass_ARGS)
Atl: (static) Sq3FileC [Sq3FileC::GetNull] → C-API Null-Slot - return a Sq3FileC typed NULL inst...
static OT_ProcRet atlsq3lite_Sq3FileC_HandleResolve(OtClass_ARGS)
Atl: (static) Sq3FileC [Sq3FileC::HandleResolve netHdl:MK_HDL] → C-API Handle-Resolve-Slot - ret...
static OT_ProcRet atlsq3lite_Sq3FileC_DatabaseObject(OtClass_ARGS)
Atl: (constructor,static) Sq3FileC [Sq3FileC::DatabaseObject X:string] → C-API Database File Cor...

Definition at line 258 of file Sq3FileC_atl.c.

258 {
259 // BEGIN-CLASS - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
260
261 // doc-key: Sq3FileC,Sq3File,sCc
262 { "::Sq3FileC::DatabaseObject" , NS(Sq3FileC_DatabaseObject) },
263
264 // doc-key: Sq3FileC,Sq3File,sc_
265 { "::Sq3FileC::GetNull" , NS(Sq3FileC_GetNull) },
266 { "::Sq3FileC::HandleResolve" , NS(Sq3FileC_HandleResolve) },
267 { "::Sq3FileC::Instances" , NS(Sq3FileC_Instances) },
268
269 // END-CLASS - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
270 { NULL }
271};