MkObjectC - various functions related to the MkObjectS … More...
Collaboration diagram for MkObjectC_Misc_C_API:Macros | |
| #define | MkObjectToName_1X(x) |
| #define | MkObjectToNameOfType_1X(x) |
| #define | MkObjectToNameOfClass_1X(x) |
| #define | MkObjectToString_1X(x) |
| #define | MkObjectToString_1M(m) |
| #define | MkObjectToError_1X(obj) |
Functions | |
| MK_STRN const | MkObjectToName_RT (MK_RT mkrt, MK_OBJN const obj) |
| Info-Slot - returns brief information about the obj as a string | |
| MK_STRN | MkObjectToNameOfType_RT (MK_RT mkrt, MK_OBJN const obj) |
| Type-Slot - returns the LibMkKernel-Type-Name of the obj as a string | |
| MK_STRN | MkObjectToNameOfClass_RT (MK_RT mkrt, MK_OBJ const obj) |
| Class-Slot - returns the Tcl-Class-Name of the obj as string | |
| MK_STRN | MkObjectToString_RT (MK_RT mkrt, MK_OBJN const inst) |
| String-Slot - returns the string representation of the inst … | |
| static bool | MkObjectIsNull (MK_OBJ const obj) |
ckeck if the object is "MK_NULL" | |
| MK_ERR | MkObjectErrorCatch_RT (MK_RT mkrt, MK_OBJN const obj, MK_EXP const exception, MK_STRN const callfunc) |
| convert a programming-language-error into an tclmkkernel error … | |
| static MK_ERR | MkObjectToError_RT (MK_RT mkrt, MK_OBJ const obj) |
| Error-Slot - return an error-object pre initialized with obj data. | |
MkObjectC - MkObjectC_Misc_C_API - function | |
| MK_ERR | MkObjectToErrorP (MK_RT mkrt, MK_OBJ const obj) |
| Non-inline replacement for MkObjectToError … | |
| MK_BOOL | MkObjectIsNullP (MK_OBJ const obj) |
| Non-inline replacement for MkObjectIsNull … | |
MkObjectC - MkObjectC_Misc_C_API - overload | |
| #define | MkObjectErrorCatch_NULL(...) |
| #define | MkObjectErrorCatch(...) |
| #define | MkObjectErrorCatch_2(obj, exception) |
| #define | MkObjectErrorCatch_1(obj) |
| #define | MkObjectToError_NULL(...) |
| #define | MkObjectToError(...) |
| #define | MkObjectInstancesOfType_NULL(...) |
| #define | MkObjectInstancesOfType(...) |
| #define | MkObjectToName_NULL(...) |
| #define | MkObjectToName(...) |
| #define | MkObjectToNameOfClass_NULL(...) |
| #define | MkObjectToNameOfClass(...) |
| #define | MkObjectToNameOfType_NULL(...) |
| #define | MkObjectToNameOfType(...) |
| #define | MkObjectToString_NULL(...) |
| #define | MkObjectToString(...) |
MkObjectC - various functions related to the MkObjectS …
| #define MkObjectErrorCatch | ( | ... | ) |
Definition at line 1644 of file kernel_overload_mk.h.
| #define MkObjectErrorCatch_1 | ( | obj | ) |
Definition at line 1646 of file kernel_overload_mk.h.
| #define MkObjectErrorCatch_2 | ( | obj, | |
| exception ) |
Definition at line 1645 of file kernel_overload_mk.h.
| #define MkObjectErrorCatch_NULL | ( | ... | ) |
Definition at line 1643 of file kernel_overload_mk.h.
| #define MkObjectInstancesOfType | ( | ... | ) |
Definition at line 1652 of file kernel_overload_mk.h.
| #define MkObjectInstancesOfType_NULL | ( | ... | ) |
Definition at line 1651 of file kernel_overload_mk.h.
| #define MkObjectToError | ( | ... | ) |
Definition at line 1648 of file kernel_overload_mk.h.
| #define MkObjectToError_1X | ( | obj | ) |
Definition at line 13543 of file LibMkKernel_mk.h.
| #define MkObjectToError_NULL | ( | ... | ) |
Definition at line 1647 of file kernel_overload_mk.h.
| #define MkObjectToName | ( | ... | ) |
Definition at line 1656 of file kernel_overload_mk.h.
| #define MkObjectToName_1X | ( | x | ) |
Definition at line 5233 of file LibMkKernel_mk.h.
| #define MkObjectToName_NULL | ( | ... | ) |
Definition at line 1655 of file kernel_overload_mk.h.
| #define MkObjectToNameOfClass | ( | ... | ) |
Definition at line 1658 of file kernel_overload_mk.h.
| #define MkObjectToNameOfClass_1X | ( | x | ) |
Definition at line 5273 of file LibMkKernel_mk.h.
| #define MkObjectToNameOfClass_NULL | ( | ... | ) |
Definition at line 1657 of file kernel_overload_mk.h.
| #define MkObjectToNameOfType | ( | ... | ) |
Definition at line 1660 of file kernel_overload_mk.h.
| #define MkObjectToNameOfType_1X | ( | x | ) |
Definition at line 5255 of file LibMkKernel_mk.h.
| #define MkObjectToNameOfType_NULL | ( | ... | ) |
Definition at line 1659 of file kernel_overload_mk.h.
| #define MkObjectToString | ( | ... | ) |
Definition at line 1662 of file kernel_overload_mk.h.
| #define MkObjectToString_1M | ( | m | ) |
Definition at line 5291 of file LibMkKernel_mk.h.
| #define MkObjectToString_1X | ( | x | ) |
Definition at line 5290 of file LibMkKernel_mk.h.
| #define MkObjectToString_NULL | ( | ... | ) |
Definition at line 1661 of file kernel_overload_mk.h.
| MK_ERR MkObjectErrorCatch_RT | ( | MK_RT | mkrt, |
| MK_OBJN const | obj, | ||
| MK_EXP const | exception, | ||
| MK_STRN const | callfunc ) |
convert a programming-language-error into an tclmkkernel error …
This function is a placeholder and have to be overloaded by the Target-Programming-Language (TPL). The goal is to handel an error-catch condition and convert an programming-language-error into an tclmkkernel-error.
This is the same as (example form c++):
Example from server.tcl → catch-send and reset an error
$cl SendSTART try { my ProxyItem $cl $cl SendEND_AND_WAIT "ECOI" 5 } on error {} { set err [$cl ErrorCatch] my SendI32 [$err GetNum] my SendSTR [$err GetText] $err Reset }
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | obj | the MkObjectS instance to work on - a MANAGED OBJECT after type-check and able to be supported by the MkObjectS API |
| [in] | exception | the exception object from Tcl, if "MK_NULL" the global exception object is used |
| [in] | callfunc | a user-defined postfix to identify the calling-function or the environment (default = name-of-function, "MK_NULL" = resolve-own-name) |
|
inlinestatic |
ckeck if the object is "MK_NULL"
Definition at line 5295 of file LibMkKernel_mk.h.
Here is the caller graph for this function:Non-inline replacement for MkObjectIsNull …
Error-Slot - return an error-object pre initialized with obj data.
This slot is the same as ErrorDEFAULT with fmtobj set to this
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | obj | the MkObjectS instance to work on - a MANAGED OBJECT after type-check and able to be supported by the MkObjectS API |
"MK_NULL" for a non-error result.Definition at line 13535 of file LibMkKernel_mk.h.
Non-inline replacement for MkObjectToError …
Info-Slot - returns brief information about the obj as a string
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | obj | the MkObjectS instance to work on - a MANAGED OBJECT after type-check and able to be supported by the MkObjectS API |
"MK_NULL" for a non-error result.Class-Slot - returns the Tcl-Class-Name of the obj as string
The Programming-Language-Micro-Kernel (PLMK) connect the Tcl language with the tclmkkernel runtime. Every class-object in Tcl has an conterpart as tclmkkernel type-object in the Programming-Language-Micro-Kernel (PLMK).
| ObjectToNameOfType | returns the name of the tclmkkernel type |
| ObjectToNameOfClass | returns the name of the Tcl class |
Type-Slot - returns the LibMkKernel-Type-Name of the obj as a string
The Programming-Language-Micro-Kernel (PLMK) connect the Tcl language with the tclmkkernel runtime. Every class-object in Tcl has an conterpart as tclmkkernel type-object in the Programming-Language-Micro-Kernel (PLMK).
| ObjectToNameOfType | returns the name of the libmsgque type |
| ObjectToNameOfClass | returns the name of the Tcl class |
| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | obj | the MkObjectS instance to work on - a MANAGED OBJECT after type-check and able to be supported by the MkObjectS API |
String-Slot - returns the string representation of the inst …
The string is a human-readable form of the data stored in the object.
ToString function by default.| [in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| [in] | inst | - the instance to work on |
"MK_NULL" on error "MK_NULL" for a non-error result.