theLink 10.0
Loading...
Searching...
No Matches
MqFactoryC_Get_C_API

MqFactoryC - various functions to 'get' data out of a factoryMore...

+ Collaboration diagram for MqFactoryC_Get_C_API:

Functions

MK_PTR MqFactoryItemGetCreateData (MQ_FCTN const fct)
 helper function to return MqFactoryS::Create::data
 
MK_PTR MqFactoryItemGetDeleteData (MQ_FCTN const fct)
 helper function to return MqFactoryS::Delete::data
 
MK_STRN MqFactoryGetOriginalIdent (MQ_FCTN const fct)
 helper function to return MqFactoryS::originalIdent
 
MQ_FCT MqFactoryGet_RT (MK_RT mkrt, MK_STRN const ident)
 return the MqFactoryC
 
MQ_FCT MqFactoryGetCalled_RT (MK_RT mkrt, MK_STRN const ident)
 returns the MqFactoryC identified by ident
 
MQ_FCT MqFactoryGetCalledL_RT (MK_RT mkrt, MK_BFLN largs)
 returns the MqFactoryC identified as first argument in the largs MkBufferListC
 

MqFactoryC - MqFactoryC_Get_C_API - overload

#define MqFactoryGet_NULL(...)
 
#define MqFactoryGet(...)
 
#define MqFactoryGet_0()
 
#define MqFactoryGetCalled_NULL(...)
 
#define MqFactoryGetCalled(...)
 
#define MqFactoryGetCalled_0()
 
#define MqFactoryGetCalledL_NULL(...)
 
#define MqFactoryGetCalledL(...)
 

Detailed Description

MqFactoryC - various functions to 'get' data out of a factory

Macro Definition Documentation

◆ MqFactoryGet

#define MqFactoryGet ( ...)
Value:
#define MK_RT_CALL
MQ_FCT MqFactoryGet_RT(MK_RT mkrt, MK_STRN const ident)
return the MqFactoryC

Definition at line 995 of file msgque_overload_mq.h.

◆ MqFactoryGet_0

#define MqFactoryGet_0 ( )
Value:
#define MqFactoryGet(...)

Definition at line 996 of file msgque_overload_mq.h.

◆ MqFactoryGet_NULL

#define MqFactoryGet_NULL ( ...)
Value:
#define MK_RT_CALL_NULL

Definition at line 994 of file msgque_overload_mq.h.

◆ MqFactoryGetCalled

#define MqFactoryGetCalled ( ...)
Value:
MQ_FCT MqFactoryGetCalled_RT(MK_RT mkrt, MK_STRN const ident)
returns the MqFactoryC identified by ident …

Definition at line 998 of file msgque_overload_mq.h.

◆ MqFactoryGetCalled_0

#define MqFactoryGetCalled_0 ( )
Value:
#define MqFactoryGetCalled(...)

Definition at line 999 of file msgque_overload_mq.h.

◆ MqFactoryGetCalled_NULL

#define MqFactoryGetCalled_NULL ( ...)
Value:

Definition at line 997 of file msgque_overload_mq.h.

◆ MqFactoryGetCalledL

#define MqFactoryGetCalledL ( ...)
Value:
MQ_FCT MqFactoryGetCalledL_RT(MK_RT mkrt, MK_BFLN largs)
returns the MqFactoryC identified as first argument in the largs MkBufferListC …

Definition at line 1001 of file msgque_overload_mq.h.

◆ MqFactoryGetCalledL_NULL

#define MqFactoryGetCalledL_NULL ( ...)
Value:

Definition at line 1000 of file msgque_overload_mq.h.

Function Documentation

◆ MqFactoryGet_RT()

MQ_FCT MqFactoryGet_RT ( MK_RT mkrt,
MK_STRN const ident )

return the MqFactoryC

The ident is the factory-name used with MqFactoryAdd - usually the class-name.

The following ident are also supported:

"initial"belongs to the factory with MqFactoryInitial
"default" or ""belongs to the factory with MqFactoryDefault
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]identthe factory-identifier to search for
Returns
the MqFactoryC or MK_NULL if ident was not found

◆ MqFactoryGetCalled_RT()

MQ_FCT MqFactoryGetCalled_RT ( MK_RT mkrt,
MK_STRN const ident )

returns the MqFactoryC identified by ident

If multiple factories (MqFactoryAdd) are available the startup code have to choose which factory to use.
The selection is done by the factory-identifer and is taken from the ident or from the first argument of the commandline-arguments-list.

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]identthe factory-identifier or "" for the default MqFactoryC
Returns
the MqFactoryC or MK_NULL if nothing was found
See also
MqFactoryGetCalledL

◆ MqFactoryGetCalledL_RT()

MQ_FCT MqFactoryGetCalledL_RT ( MK_RT mkrt,
MK_BFLN largs )

returns the MqFactoryC identified as first argument in the largs MkBufferListC

Like MqFactoryGetCalled but the ident is taken from the MkBufferListC object that was created from the commandline-arguments-list.

Command-Line-Arguments-List
The Commandline-Argumentis-List begins with the first argument after the executable and/or the script file.
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]largsthe command-line-args or "" for the default MqFactoryC
Returns
the MqFactoryC or MK_NULL if nothing was found
See also
MqFactoryGetCalled

◆ MqFactoryGetOriginalIdent()

MK_STRN MqFactoryGetOriginalIdent ( MQ_FCTN const fct)

helper function to return MqFactoryS::originalIdent

Attention
The MK_STRN returned belongs to libmqmsgque… do not free the data.

◆ MqFactoryItemGetCreateData()

MK_PTR MqFactoryItemGetCreateData ( MQ_FCTN const fct)

helper function to return MqFactoryS::Create::data

◆ MqFactoryItemGetDeleteData()

MK_PTR MqFactoryItemGetDeleteData ( MQ_FCTN const fct)

helper function to return MqFactoryS::Delete::data