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

tag: nhi1-release-250425 More...

+ Include dependency graph for Sq3BlobC_atl.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "Sq3BlobC_atl.c"
 
#define OT_CLASS   asq3rt->AtlSq3BlobC
 
#define OT_NULL   asq3rt->AtlSq3BlobC_MK_NULL
 
#define OT_CLASS_NAME   "Sq3BlobC"
 
#define SELF2HDL(O)
 
#define OT_SETUP_hdl   SetupHdlFromMetaData_2(SQ3_BLOB)
 
#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(SQ3_BLOB)
 
#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(SQ3_BLOB)
 
#define OT_SETUP_hdl_constr   SetupHdlConstr(Sq3BlobC)
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static   SetupHdlStatic(Sq3BlobC)
 
#define OT_retObj_CONSTR(x)
 
#define ClassInit
 
#define CTOR_doc   "Sq3BlobC [Sq3BlobC::CTOR sq3lite:Sq3LiteC zDb:string zTable:string zColumn:string iRow:int64 flags:int32]"
 
#define Open_doc   "Sq3BlobC [Sq3BlobC::Open sq3lite:Sq3LiteC zDb:string zTable:string zColumn:string iRow:int64 flags:int32]"
 
#define GetNull_doc   "Sq3BlobC [Sq3BlobC::GetNull]"
 
#define HandleResolve_doc   "Sq3BlobC [Sq3BlobC::HandleResolve netHdl:MK_HDL]"
 
#define Instances_doc   "Sq3BlobC [Sq3BlobC::Instances]"
 
#define Next_doc   "Sq3BlobC [Sq3BlobC::Next $blob]"
 
#define Prev_doc   "Sq3BlobC [Sq3BlobC::Prev $blob]"
 
#define Read_doc   "MkBufferC [Sq3BlobC::Read $sq3blob Z_inout:MkBufferC iOffset:int32]"
 
#define Bytes_doc   "int32 [Sq3BlobC::Bytes $sq3blob]"
 
#define Reopen_doc   "Sq3BlobC::Reopen $sq3blob arg1:int64"
 
#define Write_doc   "Sq3BlobC::Write $sq3blob z:MkBufferC iOffset:int32"
 

Functions

static MK_PTR atlsq3lite_Sq3BlobC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void atlsq3lite_Sq3BlobC_selfDelete (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static void atlsq3lite_Sq3BlobC_selfUnlink (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static OT_ProcRet atlsq3lite_Sq3BlobC_HandleResolve (OtClass_ARGS)
  Atl: (static) Sq3BlobC [Sq3BlobC::HandleResolve netHdl:MK_HDL] C-API
Handle-Resolve-Slot - return a Sq3BlobC from netHdl or "MK_NULL" if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet atlsq3lite_Sq3BlobC_HandleGet (Sq3BlobC_ARGS)
 
static OT_ProcRet atlsq3lite_Sq3BlobC_Next (Sq3BlobC_ARGS)
  Atl: Sq3BlobC [Sq3BlobC::Next $blob] C-API
get next instance from linked-list of Sq3BlobS type
 
static OT_ProcRet atlsq3lite_Sq3BlobC_Prev (Sq3BlobC_ARGS)
  Atl: Sq3BlobC [Sq3BlobC::Prev $blob] C-API
get previous instance from linked-list of Sq3BlobS type
 
static OT_ProcRet atlsq3lite_Sq3BlobC_Instances (OtClass_ARGS)
  Atl: (static) Sq3BlobC [Sq3BlobC::Instances] C-API
get head-instance from linked-list of Sq3BlobS type …
 
static OT_ProcRet atlsq3lite_Sq3BlobC_GetNull (OtClass_ARGS)
  Atl: (static) Sq3BlobC [Sq3BlobC::GetNull] C-API
Null-Slot - return a Sq3BlobC typed NULL instance …
 
static OT_ProcRet atlsq3lite_Sq3BlobC_Read (Sq3BlobC_ARGS)
  Atl: MkBufferC [Sq3BlobC::Read $sq3blob Z_inout:MkBufferC iOffset:int32] C-API
Read Data From A BLOB Incrementally …
 
static OT_ProcRet atlsq3lite_Sq3BlobC_Bytes (Sq3BlobC_ARGS)
  Atl: int32 [Sq3BlobC::Bytes $sq3blob] C-API
Return The Size Of An Open BLOB …
 
static OT_ProcRet atlsq3lite_Sq3BlobC_Reopen (Sq3BlobC_ARGS)
  Atl: Sq3BlobC::Reopen $sq3blob arg1:int64 C-API
Move a BLOB Handle to a New Row …
 
static OT_ProcRet atlsq3lite_Sq3BlobC_Write (Sq3BlobC_ARGS)
  Atl: Sq3BlobC::Write $sq3blob z:MkBufferC iOffset:int32 C-API
Write Data Into A BLOB Incrementally …
 
static OT_ProcRet atlsq3lite_Sq3BlobC_CTOR (CONSTR_ARGS)
  Atl: (constructor,static) Sq3BlobC [Sq3BlobC::CTOR sq3lite:Sq3LiteC zDb:string zTable:string zColumn:string iRow:int64 flags:int32] C-API
Open A BLOB For Incremental I/O …
 
static OT_ProcRet atlsq3lite_Sq3BlobC_Open (OtClass_ARGS)
  Atl: (constructor,static) Sq3BlobC [Sq3BlobC::Open sq3lite:Sq3LiteC zDb:string zTable:string zColumn:string iRow:int64 flags:int32] C-API
Open A BLOB For Incremental I/O …
 
int atlsq3lite_pSq3BlobC_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 Sq3BlobC_atl.c.

Macro Definition Documentation

◆ Bytes_doc

#define Bytes_doc   "int32 [Sq3BlobC::Bytes $sq3blob]"

Definition at line 110 of file Sq3BlobC_atl.c.

◆ ClassInit

#define ClassInit

Definition at line 57 of file Sq3BlobC_atl.c.

57#define ClassInit \
58 /* if not already done, initialize NEW META type */ \
59 if (Sq3BlobCTT == NULL) Sq3BlobCTT = Sq3BlobSTT; \
60 \
61 /* protect against double call */ \
62 if (Sq3BlobCTT->selfCreate == NS(Sq3BlobC_selfCreate)) return MK_OK; \
63 \
64 /* add "selfCreate" and "selfDelete" feature to the META-Class */ \
65 Sq3BlobCTT->selfCreate = NS(Sq3BlobC_selfCreate); \
66 Sq3BlobCTT->selfDelete = NS(Sq3BlobC_selfDelete); \
67 Sq3BlobCTT->selfUnlink = NS(Sq3BlobC_selfUnlink); \
68 \
69 /* create the ATL-class */ \
70 OT_CLASS = AltClassDef(Sq3BlobCTT,&asq3rt->AtlSq3BlobC_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, "::Sq3BlobC::MK_NULL", (MK_PTR)asq3rt); \
87 if (OT_NULL == NULL) goto error; \
88 OT_REF_INCR(OT_NULL);

◆ CTOR_doc

#define CTOR_doc   "Sq3BlobC [Sq3BlobC::CTOR sq3lite:Sq3LiteC zDb:string zTable:string zColumn:string iRow:int64 flags:int32]"

Definition at line 94 of file Sq3BlobC_atl.c.

◆ GetNull_doc

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

Definition at line 98 of file Sq3BlobC_atl.c.

◆ HandleResolve_doc

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

Definition at line 99 of file Sq3BlobC_atl.c.

◆ Instances_doc

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

Definition at line 100 of file Sq3BlobC_atl.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "Sq3BlobC_atl.c"

Definition at line 11 of file Sq3BlobC_atl.c.

◆ Next_doc

#define Next_doc   "Sq3BlobC [Sq3BlobC::Next $blob]"

Definition at line 103 of file Sq3BlobC_atl.c.

◆ Open_doc

#define Open_doc   "Sq3BlobC [Sq3BlobC::Open sq3lite:Sq3LiteC zDb:string zTable:string zColumn:string iRow:int64 flags:int32]"

Definition at line 95 of file Sq3BlobC_atl.c.

◆ OT_CLASS

#define OT_CLASS   asq3rt->AtlSq3BlobC

Definition at line 15 of file Sq3BlobC_atl.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "Sq3BlobC"

Definition at line 17 of file Sq3BlobC_atl.c.

◆ OT_NULL

#define OT_NULL   asq3rt->AtlSq3BlobC_MK_NULL

Definition at line 16 of file Sq3BlobC_atl.c.

◆ OT_retObj_CONSTR

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

Definition at line 54 of file Sq3BlobC_atl.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   SetupHdlFromMetaData_2(SQ3_BLOB)

Definition at line 47 of file Sq3BlobC_atl.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(SQ3_BLOB)

Definition at line 48 of file Sq3BlobC_atl.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr   SetupHdlConstr(Sq3BlobC)

Definition at line 50 of file Sq3BlobC_atl.c.

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(SQ3_BLOB)

Definition at line 49 of file Sq3BlobC_atl.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static   SetupHdlStatic(Sq3BlobC)

Definition at line 52 of file Sq3BlobC_atl.c.

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 51 of file Sq3BlobC_atl.c.

◆ Prev_doc

#define Prev_doc   "Sq3BlobC [Sq3BlobC::Prev $blob]"

Definition at line 104 of file Sq3BlobC_atl.c.

◆ Read_doc

#define Read_doc   "MkBufferC [Sq3BlobC::Read $sq3blob Z_inout:MkBufferC iOffset:int32]"

Definition at line 107 of file Sq3BlobC_atl.c.

◆ Reopen_doc

#define Reopen_doc   "Sq3BlobC::Reopen $sq3blob arg1:int64"

Definition at line 112 of file Sq3BlobC_atl.c.

◆ SELF2HDL

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

Definition at line 19 of file Sq3BlobC_atl.c.

◆ Write_doc

#define Write_doc   "Sq3BlobC::Write $sq3blob z:MkBufferC iOffset:int32"

Definition at line 113 of file Sq3BlobC_atl.c.

Function Documentation

◆ atlsq3lite_pSq3BlobC_Init()

int atlsq3lite_pSq3BlobC_Init ( OT_SQ3_ARGS OT_NS_T ns)

Public API

Definition at line 434 of file Sq3BlobC_atl.c.

435{
437
438 return TCL_OK;
439error:
440 return TCL_ERROR;
441}
#define ClassInit

◆ atlsq3lite_Sq3BlobC_selfCreate()

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

Definition at line 28 of file Sq3BlobC_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_Sq3BlobC_selfDelete()

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

Definition at line 34 of file Sq3BlobC_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_Sq3BlobC_selfUnlink()

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

Definition at line 41 of file Sq3BlobC_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:
= {
{ "::Sq3BlobC::Sq3BlobC" , atlsq3lite_Sq3BlobC_CTOR },
{ "::Sq3BlobC::Next" , atlsq3lite_Sq3BlobC_Next },
{ "::Sq3BlobC::Prev" , atlsq3lite_Sq3BlobC_Prev },
{ "::Sq3BlobC::Read" , atlsq3lite_Sq3BlobC_Read },
{ "::Sq3BlobC::Bytes" , atlsq3lite_Sq3BlobC_Bytes },
{ "::Sq3BlobC::Reopen" , atlsq3lite_Sq3BlobC_Reopen },
{ "::Sq3BlobC::Write" , atlsq3lite_Sq3BlobC_Write },
{ NULL }
}
static OT_ProcRet atlsq3lite_Sq3BlobC_Next(Sq3BlobC_ARGS)
Atl: Sq3BlobC [Sq3BlobC::Next $blob] → C-API get next instance from linked-list of Sq3BlobS typ...
static OT_ProcRet atlsq3lite_Sq3BlobC_Prev(Sq3BlobC_ARGS)
Atl: Sq3BlobC [Sq3BlobC::Prev $blob] → C-API get previous instance from linked-list of Sq3BlobS...
static OT_ProcRet atlsq3lite_Sq3BlobC_Read(Sq3BlobC_ARGS)
Atl: MkBufferC [Sq3BlobC::Read $sq3blob Z_inout:MkBufferC iOffset:int32] → C-API Read Data Fr...
static OT_ProcRet atlsq3lite_Sq3BlobC_Write(Sq3BlobC_ARGS)
Atl: Sq3BlobC::Write $sq3blob z:MkBufferC iOffset:int32 → C-API Write Data Into A BLOB Increm...
static OT_ProcRet atlsq3lite_Sq3BlobC_Reopen(Sq3BlobC_ARGS)
Atl: Sq3BlobC::Reopen $sq3blob arg1:int64 → C-API Move a BLOB Handle to a New Row …
static OT_ProcRet atlsq3lite_Sq3BlobC_Bytes(Sq3BlobC_ARGS)
Atl: int32 [Sq3BlobC::Bytes $sq3blob] → C-API Return The Size Of An Open BLOB …
static OT_ProcRet atlsq3lite_Sq3BlobC_CTOR(CONSTR_ARGS)
Atl: (constructor,static) Sq3BlobC [Sq3BlobC::CTOR sq3lite:Sq3LiteC zDb:string zTable:string zColumn:...

Definition at line 405 of file Sq3BlobC_atl.c.

405 {
406 // BEGIN-OBJ - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
407
408 // doc-key: Sq3BlobC,Sq3Blob,oC_
409 { "::Sq3BlobC::Sq3BlobC" , NS(Sq3BlobC_CTOR) },
410
411 // doc-key: Sq3BlobC,Sq3Blob,oc_
412 { "::Sq3BlobC::Next" , NS(Sq3BlobC_Next) },
413 { "::Sq3BlobC::Prev" , NS(Sq3BlobC_Prev) },
414
415 // doc-key: Sq3BlobC,Sq3Blob,oci
416 { "::Sq3BlobC::Read" , NS(Sq3BlobC_Read) },
417
418 // doc-key: Sq3BlobC,Sq3Blob,om_
419 { "::Sq3BlobC::Bytes" , NS(Sq3BlobC_Bytes) },
420 // skip class-overload: HandleGet → MkObjectHandleGet
421 { "::Sq3BlobC::Reopen" , NS(Sq3BlobC_Reopen) },
422 { "::Sq3BlobC::Write" , NS(Sq3BlobC_Write) },
423
424 // END-OBJ - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
425 { NULL }
426};
#define NS(n)

◆ atlsq3lite_sOtClassDef

const OtObjProcDefS atlsq3lite_sOtClassDef[]
static
Initial value:
= {
{ "::Sq3BlobC::Open" , atlsq3lite_Sq3BlobC_Open },
{ "::Sq3BlobC::GetNull" , atlsq3lite_Sq3BlobC_GetNull },
{ "::Sq3BlobC::HandleResolve" , atlsq3lite_Sq3BlobC_HandleResolve },
{ "::Sq3BlobC::Instances" , atlsq3lite_Sq3BlobC_Instances },
{ NULL }
}
static OT_ProcRet atlsq3lite_Sq3BlobC_HandleResolve(OtClass_ARGS)
Atl: (static) Sq3BlobC [Sq3BlobC::HandleResolve netHdl:MK_HDL] → C-API Handle-Resolve-Slot - ret...
static OT_ProcRet atlsq3lite_Sq3BlobC_GetNull(OtClass_ARGS)
Atl: (static) Sq3BlobC [Sq3BlobC::GetNull] → C-API Null-Slot - return a Sq3BlobC typed NULL inst...
static OT_ProcRet atlsq3lite_Sq3BlobC_Instances(OtClass_ARGS)
Atl: (static) Sq3BlobC [Sq3BlobC::Instances] → C-API get head-instance from linked-list of Sq3Bl...
static OT_ProcRet atlsq3lite_Sq3BlobC_Open(OtClass_ARGS)
Atl: (constructor,static) Sq3BlobC [Sq3BlobC::Open sq3lite:Sq3LiteC zDb:string zTable:string zColumn:...

Definition at line 388 of file Sq3BlobC_atl.c.

388 {
389 // BEGIN-CLASS - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
390
391 // doc-key: Sq3BlobC,Sq3Blob,sCo
392 { "::Sq3BlobC::Open" , NS(Sq3BlobC_Open) },
393
394 // doc-key: Sq3BlobC,Sq3Blob,sc_
395 { "::Sq3BlobC::GetNull" , NS(Sq3BlobC_GetNull) },
396 { "::Sq3BlobC::HandleResolve" , NS(Sq3BlobC_HandleResolve) },
397 { "::Sq3BlobC::Instances" , NS(Sq3BlobC_Instances) },
398
399 // END-CLASS - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
400 { NULL }
401};