theKernel 10.0
Loading...
Searching...
No Matches
MkLogFileC_CC_API

MkLogFileC - the class known as lfl or log-file is used to control the target of the logging-outputMore...

+ Collaboration diagram for MkLogFileC_CC_API:

Topics

 MkLogFileC_TOR_CC_API
 MkLogFileC - various functions to 'create and delete' a MkLogFileS
 
 MkLogFileC_Write_CC_API
 MkLogFileC - various functions to 'write' into a MkLogFileS
 
 MkLogFileC_Introspection_CC_API
 
 MkLogFileC_Class_CC_API
 MkLogFileC - define the class …
 

Classes

struct  ccmkkernel::MkLogFileC_A
 define a MkLogFileC object … → C-API: libmkkernel::MkLogFileS More...
 
class  ccmkkernel::MkLogFileC
 define a MkLogFileC object … → C-API: libmkkernel::MkLogFileS More...
 

Functions

 ccmkkernel::MkLogFileC::MkLogFileC (MK_LFL hdl)
 
static MkLogFileCccmkkernel::MkLogFileC::MkLogFileC_ObjNew (MK_RT_ARGS MK_LFL hdl)
 return MkLogFileC from LibMsgqueObject
 
MK_LFL ccmkkernel::MkLogFileC::getLFL () const
 return the LibMsgqueObject from current MkLogFileC instance
 
MK_LFL ccmkkernel::MkLogFileC::getLFL__null_allow () const
 return the LibMsgqueObject from current MkLogFileC instance
 
MK_LFLN ccmkkernel::MkLogFileC::getLFLN () const
 (const) return the LibMsgqueObject from current MkLogFileC instance
 
MK_LFLN ccmkkernel::MkLogFileC::getLFLN__null_allow () const
 (const) return the LibMsgqueObject from current MkLogFileC instance
 
static MK_LFL ccmkkernel::MkLogFileC::getLFL (MkLogFileC *clsHdl)
 return LibMsgqueObject from current MkLogFileC pointer
 
static MK_LFL ccmkkernel::MkLogFileC::getLFL__null_allow (MkLogFileC *clsHdl)
 return LibMsgqueObject from current MkLogFileC pointer
 
static MK_LFLN ccmkkernel::MkLogFileC::getLFLN (const MkLogFileC *clsHdl)
 (const) return LibMsgqueObject from current MkLogFileC pointer
 
static MK_LFLN ccmkkernel::MkLogFileC::getLFLN__null_allow (const MkLogFileC *clsHdl)
 (const) return LibMsgqueObject from current MkLogFileC pointer
 
static MK_LFL ccmkkernel::MkLogFileC::getLFL (const MkLogFileC &clsHdl)
 return LibMsgqueObject from current MkLogFileC reference
 
static MK_LFL ccmkkernel::MkLogFileC::getLFL__null_allow (const MkLogFileC &clsHdl)
 return LibMsgqueObject from current MkLogFileC reference
 
static MK_LFLN ccmkkernel::MkLogFileC::getLFLN (const MkLogFileC &clsHdl)
 (const) return LibMsgqueObject from current MkLogFileC reference
 
static MK_LFLN ccmkkernel::MkLogFileC::getLFLN__null_allow (const MkLogFileC &clsHdl)
 (const) return LibMsgqueObject from current MkLogFileC reference
 
bool ccmkkernel::MkLogFileC::Check () const
 check if pointer is still valid
 

Variables

static thread_local MkLogFileC ccmkkernel::MkLogFileC::MK_NULL_REF = {(MK_OBJ)0}
 

Detailed Description

MkLogFileC - the class known as lfl or log-file is used to control the target of the logging-output

The logging-target is set direct by RuntimeLogTargetSet or using the class MkLogFileC.

The target is stored at the MkRuntimeC using a FILE-stream and can be set individually for each thread. The default is stderr.

possible values are:

value decription OS man-page
stdout the standart output stdio(3)
stderr the standart error output stdio(3)
fileName an arbitary fileName fopen(3)

Function Documentation

◆ Check()

bool ccmkkernel::MkLogFileC::Check ( ) const
inline

check if pointer is still valid

Definition at line 152 of file MkLogFileC_cc.hh.

152 {
153 return (hdl && MkLflCheck(hdl));
154 };
static bool MkLflCheck(MK_MNGN mng)
check MkLogFileS -> libmkkernel::MkObjectS::signature …

◆ getLFL() [1/3]

MK_LFL ccmkkernel::MkLogFileC::getLFL ( ) const
inline

return the LibMsgqueObject from current MkLogFileC instance

Definition at line 84 of file MkLogFileC_cc.hh.

84 {
85 MK_LFL ret = reinterpret_cast<MK_LFL>(hdl);
86 if (unlikely(ret == NULL)) InstHdlIsNullError();
87 return ret;
88 };
#define InstHdlIsNullError()
#define unlikely(x)
struct MkLogFileS * MK_LFL
class-shortcut for struct MkLogFileS *, all shortcut using the XX_YYY syntax (only for public API) …
+ Here is the caller graph for this function:

◆ getLFL() [2/3]

static MK_LFL ccmkkernel::MkLogFileC::getLFL ( const MkLogFileC & clsHdl)
inlinestatic

return LibMsgqueObject from current MkLogFileC reference

Definition at line 132 of file MkLogFileC_cc.hh.

132 {
133 return clsHdl.getLFL();
134 };

◆ getLFL() [3/3]

static MK_LFL ccmkkernel::MkLogFileC::getLFL ( MkLogFileC * clsHdl)
inlinestatic

return LibMsgqueObject from current MkLogFileC pointer

Definition at line 108 of file MkLogFileC_cc.hh.

108 {
109 MK_LFL ret = clsHdl ? reinterpret_cast<MK_LFL>(clsHdl->hdl) : NULL;
110 if (unlikely(ret == NULL)) ClassHdlIsNullError(MkLogFileC);
111 return ret;
112 };
#define ClassHdlIsNullError(cls)

◆ getLFL__null_allow() [1/3]

MK_LFL ccmkkernel::MkLogFileC::getLFL__null_allow ( ) const
inline

return the LibMsgqueObject from current MkLogFileC instance

Definition at line 91 of file MkLogFileC_cc.hh.

91 {
92 return reinterpret_cast<MK_LFL>(hdl);
93 };
+ Here is the caller graph for this function:

◆ getLFL__null_allow() [2/3]

static MK_LFL ccmkkernel::MkLogFileC::getLFL__null_allow ( const MkLogFileC & clsHdl)
inlinestatic

return LibMsgqueObject from current MkLogFileC reference

Definition at line 137 of file MkLogFileC_cc.hh.

137 {
138 return clsHdl.getLFL__null_allow();
139 };

◆ getLFL__null_allow() [3/3]

static MK_LFL ccmkkernel::MkLogFileC::getLFL__null_allow ( MkLogFileC * clsHdl)
inlinestatic

return LibMsgqueObject from current MkLogFileC pointer

Definition at line 115 of file MkLogFileC_cc.hh.

115 {
116 return clsHdl ? reinterpret_cast<MK_LFL>(clsHdl->hdl) : NULL;
117 };

◆ getLFLN() [1/3]

MK_LFLN ccmkkernel::MkLogFileC::getLFLN ( ) const
inline

(const) return the LibMsgqueObject from current MkLogFileC instance

Definition at line 96 of file MkLogFileC_cc.hh.

96 {
97 MK_LFLN ret = reinterpret_cast<MK_LFLN>(hdl);
98 if (unlikely(ret == NULL)) InstHdlIsNullError();
99 return ret;
100 };
const struct MkLogFileS * MK_LFLN
class-shortcut for const struct MkLogFileS *, all const shortcut using the XX_YYYC syntax (only for p...
+ Here is the caller graph for this function:

◆ getLFLN() [2/3]

static MK_LFLN ccmkkernel::MkLogFileC::getLFLN ( const MkLogFileC & clsHdl)
inlinestatic

(const) return LibMsgqueObject from current MkLogFileC reference

Definition at line 142 of file MkLogFileC_cc.hh.

142 {
143 return clsHdl.getLFLN();
144 };

◆ getLFLN() [3/3]

static MK_LFLN ccmkkernel::MkLogFileC::getLFLN ( const MkLogFileC * clsHdl)
inlinestatic

(const) return LibMsgqueObject from current MkLogFileC pointer

Definition at line 120 of file MkLogFileC_cc.hh.

120 {
121 MK_LFLN ret = clsHdl ? reinterpret_cast<MK_LFLN>(clsHdl->hdl) : NULL;
122 if (unlikely(ret == NULL)) ClassHdlIsNullError(MkLogFileC);
123 return ret;
124 };

◆ getLFLN__null_allow() [1/3]

MK_LFLN ccmkkernel::MkLogFileC::getLFLN__null_allow ( ) const
inline

(const) return the LibMsgqueObject from current MkLogFileC instance

Definition at line 103 of file MkLogFileC_cc.hh.

103 {
104 return reinterpret_cast<MK_LFLN>(hdl);
105 };
+ Here is the caller graph for this function:

◆ getLFLN__null_allow() [2/3]

static MK_LFLN ccmkkernel::MkLogFileC::getLFLN__null_allow ( const MkLogFileC & clsHdl)
inlinestatic

(const) return LibMsgqueObject from current MkLogFileC reference

Definition at line 147 of file MkLogFileC_cc.hh.

147 {
148 return clsHdl.getLFLN__null_allow();
149 };

◆ getLFLN__null_allow() [3/3]

static MK_LFLN ccmkkernel::MkLogFileC::getLFLN__null_allow ( const MkLogFileC * clsHdl)
inlinestatic

(const) return LibMsgqueObject from current MkLogFileC pointer

Definition at line 127 of file MkLogFileC_cc.hh.

127 {
128 return clsHdl ? reinterpret_cast<MK_LFLN>(clsHdl->hdl) : NULL;
129 };

◆ MkLogFileC()

ccmkkernel::MkLogFileC::MkLogFileC ( MK_LFL hdl)
inline

Definition at line 75 of file MkLogFileC_cc.hh.

◆ MkLogFileC_ObjNew()

static MkLogFileC * ccmkkernel::MkLogFileC::MkLogFileC_ObjNew ( MK_RT_ARGS MK_LFL hdl)
inlinestatic

return MkLogFileC from LibMsgqueObject

Definition at line 79 of file MkLogFileC_cc.hh.

79 {
80 return (hdl ? static_cast<MkLogFileC*>(MkObjectC::atomObjNew(MK_RT_CALL MkLogFileC_X2obj(hdl))) : &MK_NULL_REF);
81 }
static thread_local MkLogFileC MK_NULL_REF
static MK_PTR atomObjNew(MK_RT_ARGS MK_OBJ obj)
#define MK_RT_CALL
+ Here is the caller graph for this function:

Variable Documentation

◆ MK_NULL_REF

thread_local MkLogFileC ccmkkernel::MkLogFileC::MK_NULL_REF = {(MK_OBJ)0}
static

Definition at line 36 of file MkLogFileC_cc.hh.