Sq3FileC - define the class … More...
Topics | |
Sq3FileC_Class_Define_C_API | |
Sq3FileC - low level definition, access and cast … | |
Macros | |
#define | Sq3GetFileFromNat(_nat) |
helper for libsq3lite::Sq3FileC_ObjNew … | |
Typedefs | |
typedef struct Sq3FileS * | libsq3lite::SQ3_FILE |
class-shortcut for struct Sq3FileS * , all shortcut using the XX_YYY syntax (only for public API) … | |
typedef const struct Sq3FileS * | libsq3lite::SQ3_FILEN |
class-shortcut for const struct Sq3FileS * , all const shortcut using the XX_YYYC syntax (only for public API) … | |
typedef struct Sq3FileS | libsq3lite::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 | libsq3lite::Sq3FileC_ObjNew (sqlite3_file *hdl) |
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl … | |
static SQ3_FILE | libsq3lite::Sq3FileC_ObjCreate (sqlite3_file *hdl) |
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl … | |
static MK_HDL | libsq3lite::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 | libsq3lite::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 | libsq3lite::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 | libsq3lite::Sq3FileInstances_RT (MK_RT mkrt) |
get head-instance from linked-list of Sq3FileS type … | |
static SQ3_FILE | libsq3lite::Sq3FileNext (SQ3_FILE const file) |
get next instance from linked-list of Sq3FileS type | |
static SQ3_FILE | libsq3lite::Sq3FilePrev (SQ3_FILE const file) |
get previous instance from linked-list of Sq3FileS type | |
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 96 of file sqlite3_overload_sq3.h.
#define Sq3FileHandleGet_NULL | ( | ... | ) |
Definition at line 95 of file sqlite3_overload_sq3.h.
#define Sq3FileHandleResolve | ( | ... | ) |
Definition at line 92 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 262 of file Sq3FileC_def_sq3.h.
#define Sq3FileHandleResolve_NULL | ( | ... | ) |
Definition at line 91 of file sqlite3_overload_sq3.h.
#define Sq3FileInstances | ( | ) |
Definition at line 107 of file sqlite3_overload_sq3.h.
#define Sq3FileInstances_NULL | ( | ) |
Definition at line 106 of file sqlite3_overload_sq3.h.
#define Sq3GetFileFromNat | ( | _nat | ) |
helper for libsq3lite::Sq3FileC_ObjNew …
Definition at line 184 of file Sq3FileC_def_sq3.h.
typedef struct Sq3FileS* libsq3lite::SQ3_FILE |
class-shortcut for struct Sq3FileS *
, all shortcut using the XX_YYY
syntax (only for public API) …
Definition at line 390 of file LibSq3Lite_sq3.h.
typedef const struct Sq3FileS* libsq3lite::SQ3_FILEN |
class-shortcut for const struct Sq3FileS *
, all const shortcut using the XX_YYYC
syntax (only for public API) …
Definition at line 393 of file LibSq3Lite_sq3.h.
typedef struct Sq3FileS libsq3lite::SQ3_FILER |
reference-shortcut for struct Sq3FileS
, all shortcut using the XX_YYYR
syntax (only for public API) …
Definition at line 396 of file LibSq3Lite_sq3.h.
|
inlinestatic |
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
Definition at line 207 of file Sq3FileC_def_sq3.h.
|
inlinestatic |
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
Definition at line 200 of file Sq3FileC_def_sq3.h.
|
inlinestatic |
Null-Slot - return a Sq3FileC typed NULL
instance …
Definition at line 287 of file Sq3FileC_def_sq3.h.
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 229 of file Sq3FileC_def_sq3.h.
|
inlinestatic |
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 246 of file Sq3FileC_def_sq3.h.
get head-instance from linked-list of Sq3FileS type …
The head-instance is the last instance created.
Definition at line 311 of file Sq3FileC_def_sq3.h.
get next instance from linked-list of Sq3FileS type
Definition at line 318 of file Sq3FileC_def_sq3.h.
get previous instance from linked-list of Sq3FileS type
Definition at line 325 of file Sq3FileC_def_sq3.h.