theKernel 10.0
Loading...
Searching...
No Matches
MkLogFileC_inline_cc.hh
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11/*****************************************************************************/
12/* */
13/* context */
14/* */
15/*****************************************************************************/
16
17namespace ccmkkernel {
18
19/*
20 inline MK_PTR MkLogFileC::MkLogFileC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
21 return new MkLogFileC(obj);
22 }
23*/
24
25 // BEGIN-MkLogFileC - created by 'cc_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
26
30
31 // doc-key: MkLogFileC,MkLogFileC-Class-Export,sc_
32
36 MK_LFL __retVal__L = MkLogFileHandleResolve(netHdl);
37 return MkLogFileC::MkLogFileC_ObjNew(MK_RT_CALL __retVal__L);
38 }
39
40 // doc-key: MkLogFileC,MkLogFileC-Class-Export,om_
41
42 // skip class-overload: HandleGet = MkLogFileHandleGet → MkObjectHandleGet
43
45 // MkLogFileC_Class_CC_API
46
50
51 // doc-key: MkLogFileC,MkLogFileC-Class-Introspection,oc_
52
55 MK_UNUSED auto lfl = getLFL();
56 MK_LFL __retVal__L = MkLogFileNext(lfl);
57 return MkLogFileC::MkLogFileC_ObjNew(MK_RT_CALL __retVal__L);
58 }
59
62 MK_UNUSED auto lfl = getLFL();
63 MK_LFL __retVal__L = MkLogFilePrev(lfl);
64 return MkLogFileC::MkLogFileC_ObjNew(MK_RT_CALL __retVal__L);
65 }
66
67 // doc-key: MkLogFileC,MkLogFileC-Class-Introspection,sc_
68
72 MK_LFL __retVal__L = MkLogFileInstances();
73 return MkLogFileC::MkLogFileC_ObjNew(MK_RT_CALL __retVal__L);
74 }
75
77 // MkLogFileC_Class_CC_API
78
82
83 // doc-key: MkLogFileC,MkLogFileC-Class-Misc,sc_
84
88 MK_LFL __retVal__L = MkLogFileGetNull();
89 return MkLogFileC::MkLogFileC_ObjNew(MK_RT_CALL __retVal__L);
90 }
91
93 // MkLogFileC_Class_CC_API
94
98
99 // doc-key: MkLogFileC,MkLogFileC-TOR,sCo
100
102 inline MK_OBJ MkLogFileC::CTOR (const MkObjectC* fmtobj, MK_STRN file) {
104 MK_LFL lfh_out;
105 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
106 enum MkErrorE errVal = MkLogFileOpen(fmtobj_hdl, file, &lfh_out);
107 MkErrorC_Check(NULL, errVal);
108 return (MK_OBJ)lfh_out;
109 }
110
112 inline MK_OBJ MkLogFileC::CTOR (const MkObjectC* fmtobj, const std::string& file) {
114 MK_LFL lfh_out;
115 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
116 const MK_STRN file_hdl = file.c_str();
117 enum MkErrorE errVal = MkLogFileOpen(fmtobj_hdl, file_hdl, &lfh_out);
118 MkErrorC_Check(NULL, errVal);
119 return (MK_OBJ)lfh_out;
120 }
121
123 inline MkLogFileC* MkLogFileC::Open (const MkObjectC* fmtobj, MK_STRN file) {
125 MK_LFL lfh_out;
126 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
127 enum MkErrorE errVal = MkLogFileOpen(fmtobj_hdl, file, &lfh_out);
128 MkErrorC_Check(NULL, errVal);
129 return MkLogFileC::MkLogFileC_ObjCreate(MK_RT_CALL lfh_out);
130 }
131
133 inline MkLogFileC* MkLogFileC::Open (const MkObjectC* fmtobj, const std::string& file) {
135 MK_LFL lfh_out;
136 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
137 const MK_STRN file_hdl = file.c_str();
138 enum MkErrorE errVal = MkLogFileOpen(fmtobj_hdl, file_hdl, &lfh_out);
139 MkErrorC_Check(NULL, errVal);
140 return MkLogFileC::MkLogFileC_ObjCreate(MK_RT_CALL lfh_out);
141 }
142
144 // MkLogFileC_TOR_CC_API
145
149
150 // doc-key: MkLogFileC,MkLogFileC-Write,om_
151
153 inline void MkLogFileC::WriteC (MK_STRN text) const {
154 MK_UNUSED auto lfl = getLFLN__null_allow();
155 enum MkErrorE errVal = MkLogFileWriteC(lfl, text);
156 MkErrorC_Check(lfl, errVal);
157 }
158
160 inline void MkLogFileC::WriteC (const std::string& text) const {
161 MK_UNUSED auto lfl = getLFLN__null_allow();
162 const MK_STRN text_hdl = text.c_str();
163 enum MkErrorE errVal = MkLogFileWriteC(lfl, text_hdl);
164 MkErrorC_Check(lfl, errVal);
165 }
166
168 inline void MkLogFileC::WriteV (MK_FST printfmt, ... ) const {
169 MK_UNUSED auto lfl = getLFLN__null_allow();
170 va_list ap;
171 va_start (ap, printfmt);
172 enum MkErrorE errVal = MkLogFileWriteVL(lfl, printfmt, ap);
173 va_end (ap);
174 MkErrorC_Check(lfl, errVal);
175 }
176
178 inline void MkLogFileC::WriteVL (MK_FST printfmt, va_list var_list) const {
179 MK_UNUSED auto lfl = getLFLN__null_allow();
180 enum MkErrorE errVal = MkLogFileWriteVL(lfl, printfmt, var_list);
181 MkErrorC_Check(lfl, errVal);
182 }
183
184 // doc-key: MkLogFileC,MkLogFileC-Write,omo
185
187 inline MK_STRN MkLogFileC::GetFile () const {
188 MK_UNUSED auto lfl = getLFLN();
189 MK_STRN file_out;
190 enum MkErrorE errVal = MkLogFileGetFile(lfl, &file_out);
191 MkErrorC_Check(lfl, errVal);
192 return file_out;
193 }
194
196 // MkLogFileC_Write_CC_API
197
198 // END-MkLogFileC - created by 'cc_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
199
200} // END - namespace "ccmkkernel"
#define MkErrorC_Check(errObj, errVal)
define a MkLogFileC object … → C-API: libmkkernel::MkLogFileS
object header … → C-API: libmkkernel::MkObjectS
#define MK_UNUSED
mark unnused variables and functions
MkErrorE
collection for the different error-codes …
MK_STRB const * MK_FST
const format string pointer data-type
int32_t MK_HDL
4 byte int handle data-type
const MK_STRB * MK_STRN
constant string pointer data-type
static MkLogFileC * MkLogFileC_ObjNew(MK_RT_ARGS MK_LFL hdl)
return MkLogFileC from LibMsgqueObject
MK_LFLN getLFLN__null_allow() const
(const) return the LibMsgqueObject from current MkLogFileC instance
MK_LFLN getLFLN() const
(const) return the LibMsgqueObject from current MkLogFileC instance
MK_LFL getLFL() const
return the LibMsgqueObject from current MkLogFileC instance
static MkLogFileC * GetNull()
C++: [static] MkLogFileC* MkLogFileC::GetNull() → C-API Null-Slot - return a MkLogFileC typed NU...
MkLogFileC * Prev()
C++: MkLogFileC* lfl.Prev() → C-API get previous instance from linked-list of MkLogFileS type
MkLogFileC * Next()
C++: MkLogFileC* lfl.Next() → C-API get next instance from linked-list of MkLogFileS type
static MkLogFileC * Instances()
C++: [static] MkLogFileC* MkLogFileC::Instances() → C-API get head-instance from linked-list of ...
static MkLogFileC * HandleResolve(MK_HDL netHdl)
C++: [static] MkLogFileC* MkLogFileC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot -...
#define MkLogFileHandleResolve(...)
static MK_LFL MkLogFileGetNull(void)
Null-Slot - return a MkLogFileC typed NULL instance …
#define MkLogFileInstances()
struct MkLogFileS * MK_LFL
class-shortcut for struct MkLogFileS *, all shortcut using the XX_YYY syntax (only for public API) …
static MK_LFL MkLogFilePrev(MK_LFL const lfl)
get previous instance from linked-list of MkLogFileS type
static MK_LFL MkLogFileNext(MK_LFL const lfl)
get next instance from linked-list of MkLogFileS type
static MkLogFileC * Open(const MkObjectC *fmtobj, MK_STRN file)
C++: [constructor,static] MkLogFileC* MkLogFileC::Open(const MkObjectC* fmtobj, MK_STRN file) → C-AP...
#define MkLogFileOpen(...)
void WriteVL(MK_FST printfmt, va_list var_list) const
C++: lfl.WriteVL(MK_FST printfmt, va_list var_list) → C-API write to log-file …
MK_STRN GetFile() const
C++: MK_STRN lfl.GetFile() → C-API get the log-file …
void WriteC(MK_STRN text) const
C++: lfl.WriteC(MK_STRN text) → C-API write to log-file …
void WriteV(MK_FST printfmt,...) const
C++: lfl.WriteV(MK_FST printfmt, ... ) → C-API write to log-file …
#define MkLogFileWriteVL(...)
#define MkLogFileGetFile(...)
#define MkLogFileWriteC(...)
MK_OBJN getOBJN__null_allow() const
(const) return the LibMsgqueObject from current MkObjectC instance
const struct MkObjectS * MK_OBJN
class-shortcut for const struct MkObjectS *, all const shortcut using the XX_YYYC syntax (only for pu...
struct MkObjectS * MK_OBJ
class-shortcut for struct MkObjectS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MK_RT_CALL
#define MkRtSetup_NULL
namespace for the CcMkKernel "C++"-API
define a MkLogFileC object …