Sq3FileC - define the class … More...
Topics | |
Sq3FileC_Class_Define_C_API | |
Sq3FileC - low level definition, access and cast … | |
Macros | |
#define | Sq3GetFileFromNat(_nat) |
helper for Sq3FileC_ObjNew … | |
Typedefs | |
typedef struct Sq3FileS * | SQ3_FILE |
class-shortcut for struct Sq3FileS * , all shortcut using the XX_YYY syntax (only for public API) … | |
typedef const struct Sq3FileS * | SQ3_FILEN |
class-shortcut for const struct Sq3FileS * , all const shortcut using the XX_YYYC syntax (only for public API) … | |
typedef struct Sq3FileS | SQ3_FILER |
reference-shortcut for struct Sq3FileS , all shortcut using the XX_YYYR syntax (only for public API) … | |
Sq3FileC - Export - inline - interact with an external software | |
static MK_ARTIFICIAL SQ3_FILE | Sq3FileC_ObjNew (sqlite3_file *hdl) |
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl … | |
static SQ3_FILE | Sq3FileC_ObjCreate (sqlite3_file *hdl) |
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl … | |
static MK_HDL | Sq3FileHandleGet_RT (MK_RT mkrt, SQ3_FILE const file) |
Handle-Get-Slot - returns a export-hdl to the Sq3FileC useable for external storage | |
static SQ3_FILE | Sq3FileHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl) |
Handle-Resolve-Slot - return a Sq3FileC from netHdl or "MK_NULL" if invalid… | |
#define | Sq3FileHandleResolve_e(netHdl) |
wrapper for Sq3FileHandleResolve with error-handline | |
Sq3FileC - Misc - function - unspecified functions to perform different tasks | |
static SQ3_FILE | Sq3FileGetNull (void) |
Null-Slot - return a Sq3FileC typed NULL instance … | |
Sq3FileC - Introspection - inline - access to all instances created by class starting with the last one | |
static SQ3_FILE | Sq3FileInstances_RT (MK_RT mkrt) |
get head-instance from linked-list of Sq3FileS type … | |
static SQ3_FILE | Sq3FileNext (SQ3_FILE const file) |
get next instance from linked-list of Sq3FileS type | |
static SQ3_FILE | Sq3FilePrev (SQ3_FILE const file) |
get previous instance from linked-list of Sq3FileS type | |
Sq3FileC - Export - function | |
SQ3_FILE | Sq3FileHandleResolveP (MK_RT mkrt, MK_HDL const netHdl) |
Non-inline replacement for Sq3FileHandleResolve … | |
MK_HDL | Sq3FileHandleGetP (MK_RT mkrt, SQ3_FILE const file) |
Non-inline replacement for Sq3FileHandleGet … | |
Sq3FileC - Introspection - function | |
SQ3_FILE | Sq3FileNextP (SQ3_FILE const file) |
Non-inline replacement for Sq3FileNext … | |
SQ3_FILE | Sq3FilePrevP (SQ3_FILE const file) |
Non-inline replacement for Sq3FilePrev … | |
SQ3_FILE | Sq3FileInstancesP (MK_RT mkrt) |
Non-inline replacement for Sq3FileInstances … | |
Sq3FileC - Misc - function | |
SQ3_FILE | Sq3FileGetNullP (void) |
Non-inline replacement for Sq3FileGetNull … | |
Sq3FileC - Export - overload | |
#define | Sq3FileHandleResolve_NULL(...) |
#define | Sq3FileHandleResolve(...) |
#define | Sq3FileHandleGet_NULL(...) |
#define | Sq3FileHandleGet(...) |
Sq3FileC - Introspection - overload | |
#define | Sq3FileInstances_NULL() |
#define | Sq3FileInstances() |
Sq3FileC - define the class …
#define Sq3FileHandleGet | ( | ... | ) |
Definition at line 99 of file sqlite3_overload_sq3.h.
#define Sq3FileHandleGet_NULL | ( | ... | ) |
Definition at line 98 of file sqlite3_overload_sq3.h.
#define Sq3FileHandleResolve | ( | ... | ) |
Definition at line 95 of file sqlite3_overload_sq3.h.
#define Sq3FileHandleResolve_e | ( | netHdl | ) |
wrapper for Sq3FileHandleResolve with error-handline
[in] | netHdl | The handle previously returned by MkObjectHandleGet. |
"MK_NULL"
with an error set.0
than "MK_NULL"
is returned and the upper-code decide how to deal with it."MK_NULL"
if the netHdl is invalid or the underlying object has already been deleted."MK_NULL"
is returned than an error-message is created and a jump to the label error is done.Definition at line 265 of file Sq3FileC_def_sq3.h.
#define Sq3FileHandleResolve_NULL | ( | ... | ) |
Definition at line 94 of file sqlite3_overload_sq3.h.
#define Sq3FileInstances | ( | ) |
Definition at line 110 of file sqlite3_overload_sq3.h.
#define Sq3FileInstances_NULL | ( | ) |
Definition at line 109 of file sqlite3_overload_sq3.h.
#define Sq3GetFileFromNat | ( | _nat | ) |
helper for Sq3FileC_ObjNew …
Definition at line 187 of file Sq3FileC_def_sq3.h.
class-shortcut for struct Sq3FileS *
, all shortcut using the XX_YYY
syntax (only for public API) …
Definition at line 393 of file LibSq3Lite_sq3.h.
class-shortcut for const struct Sq3FileS *
, all const shortcut using the XX_YYYC
syntax (only for public API) …
Definition at line 396 of file LibSq3Lite_sq3.h.
reference-shortcut for struct Sq3FileS
, all shortcut using the XX_YYYR
syntax (only for public API) …
Definition at line 399 of file LibSq3Lite_sq3.h.
|
inlinestatic |
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
Definition at line 210 of file Sq3FileC_def_sq3.h.
|
inlinestatic |
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
Definition at line 203 of file Sq3FileC_def_sq3.h.
|
inlinestatic |
SQ3_FILE Sq3FileGetNullP | ( | void | ) |
Non-inline replacement for Sq3FileGetNull …
Handle-Get-Slot - returns a export-hdl to the Sq3FileC useable for external storage
The export-hdl is a reference to an instance that can be stored in software and converted back into an instance using the Sq3FileHandleResolve.
By default, the export-hdl is initialized to "0", which is equivalent to does not exist. This function returns a non-zero and unique export-hdl that is recreated if necessary.
The export-hdl is only valid until the Programming-Language-Micro-Kernel (PLMK) ends.
example: The export-hdl is used in rpc to identify an object across the network.
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | file | Programming-Language-Micro-Kernel (PLMK) instance from sqlite3_file |
Definition at line 232 of file Sq3FileC_def_sq3.h.
Non-inline replacement for Sq3FileHandleGet …
Handle-Resolve-Slot - return a Sq3FileC from netHdl or "MK_NULL"
if invalid…
The Sq3FileHandleResolve undo the Sq3FileHandleGet and is intended to export a unique identifer into external code not belonging to the Programming-Language-Micro-Kernel (PLMK).
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | netHdl | handle former exported with Sq3FileHandleGet |
"MK_NULL"
if netHdl is invalid Definition at line 249 of file Sq3FileC_def_sq3.h.
Non-inline replacement for Sq3FileHandleResolve …
get head-instance from linked-list of Sq3FileS type …
The head-instance is the last instance created.
Definition at line 314 of file Sq3FileC_def_sq3.h.
Non-inline replacement for Sq3FileInstances …
get next instance from linked-list of Sq3FileS type
Definition at line 321 of file Sq3FileC_def_sq3.h.
Non-inline replacement for Sq3FileNext …
get previous instance from linked-list of Sq3FileS type
Definition at line 328 of file Sq3FileC_def_sq3.h.
Non-inline replacement for Sq3FilePrev …