Loading...
Searching...
No Matches
MqContextC_ClassApi_Class_CC_API

MqContextC - access data related to the factory-type of the object … More...

+ Collaboration diagram for MqContextC_ClassApi_Class_CC_API:

Functions

MqFactoryCccmqmsgque::MqContextC::ClassFactoryGet () const
  C++: MqFactoryC* ctx.ClassFactoryGet() C-API
get the MqFactoryC used by the MqContextC
 
void ccmqmsgque::MqContextC::ClassFactorySet (MqFactoryC *item)
  C++: ctx.ClassFactorySet(MqFactoryC* item) C-API
link the MqContextC to a new MqFactoryC
 
void ccmqmsgque::MqContextC::ClassFactorySet (const MqFactoryC &item)
  C++: ctx.ClassFactorySet(MqFactoryC* item) C-API
link the MqContextC to a new MqFactoryC
 
MK_STRN ccmqmsgque::MqContextC::ClassIdentGet () const
  C++: MK_STRN ctx.ClassIdentGet() C-API
get the application-identification
 
void ccmqmsgque::MqContextC::ClassIdentSet (MK_STRN ident)
  C++: ctx.ClassIdentSet(MK_STRN ident) C-API
link the MqContextC to a new MqFactoryC identified by ident
 
void ccmqmsgque::MqContextC::ClassIdentSet (const std::string &ident)
  C++: ctx.ClassIdentSet(MK_STRN ident) C-API
link the MqContextC to a new MqFactoryC identified by ident
 
MK_STRN ccmqmsgque::MqContextC::ClassOriginalIdentGet () const
  C++: MK_STRN ctx.ClassOriginalIdentGet() C-API
get the libmqmsgque::MqFactoryS::originalIdent from the MqContextC
 

Detailed Description

MqContextC - access data related to the factory-type of the object …

The type of an object is related to the MqFactoryC. The factory decide which class a new created object has. The factory has two identifiers:

The relevance of the MqContextC CLASS API based type system, provided by MqFactoryC, decreased with the rise of the MANAGED OBJECT technology.
The MqContextC CLASS API based type system has more influence for target-languages without reflection, like C or C++.
The factory is something like a constructor but only support the application-context MqContextC .
The MqContextC ROUTE API using the MqClassIdentGet from MqFactoryC to identify an application from remote.

The type of an object is related to the MqFactoryC. The factory decide which class a new created object has. The factory has two identifiers:

The relevance of the MqContextC CLASS API based type system, provided by MqFactoryC, decreased with the rise of the MANAGED OBJECT technology.
The MqContextC CLASS API based type system has more influence for target-languages without reflection, like C or C++.
The factory is something like a constructor but only support the application-context MqContextC .
The MqContextC ROUTE API using the MqClassIdentGet from MqFactoryC to identify an application from remote.

Function Documentation

◆ ClassFactoryGet()

MqFactoryC * ccmqmsgque::MqContextC::ClassFactoryGet ( ) const
inline

C++: MqFactoryC* ctx.ClassFactoryGet() C-API
get the MqFactoryC used by the MqContextC

Definition at line 108 of file MqContextC_inline_cc.hh.

108 {
109 MK_UNUSED auto ctx = getCTXN(MK_NULL_NO);
110 MkRtSetup_X(ctx);
111 MQ_FCT __retVal__L = MqClassFactoryGet(ctx);
112 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
113 }
#define MK_NULL_NO
#define MK_UNUSED
#define MK_RT_CALL
#define MkRtSetup_X(x)
MQ_CTXN getCTXN(bool nullB=MK_NULL_NO) const
(const) return the LibMsgqueObject from current MqContextC instance
MQ_EXTERN MQ_FCT const MqClassFactoryGet(MQ_CTXN const ctx) MK_ATTR_HDL
get the MqFactoryC used by the MqContextC
static MqFactoryC * MqFactoryC_ObjNew(MK_RT const mkrt, MQ_FCT hdl)
return MqFactoryC from LibMsgqueObject
struct MqFactoryS * MQ_FCT
class-shortcut for struct MqFactoryS *, all shortcut using the XX_YYY syntax (only for public API) …

◆ ClassFactorySet() [1/2]

void ccmqmsgque::MqContextC::ClassFactorySet ( const MqFactoryC & item)
inline

C++: ctx.ClassFactorySet(MqFactoryC* item) C-API
link the MqContextC to a new MqFactoryC

Definition at line 127 of file MqContextC_inline_cc.hh.

127 {
128 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
129 MkRtSetup_X(ctx);
130 const MQ_FCT item_hdl = MqFactoryC::getFCT(item,MK_NULL_NO);
131 enum MkErrorE errVal = MqClassFactorySet(ctx, item_hdl);
132 MkErrorC_Check(ctx, errVal);
133 }
MQ_CTX getCTX(bool nullB=MK_NULL_NO) const
return the LibMsgqueObject from current MqContextC instance
#define MqClassFactorySet(...)
MQ_FCT getFCT(bool nullB=MK_NULL_NO) const
return the LibMsgqueObject from current MqFactoryC instance

◆ ClassFactorySet() [2/2]

void ccmqmsgque::MqContextC::ClassFactorySet ( MqFactoryC * item)
inline

C++: ctx.ClassFactorySet(MqFactoryC* item) C-API
link the MqContextC to a new MqFactoryC

Definition at line 118 of file MqContextC_inline_cc.hh.

118 {
119 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
120 MkRtSetup_X(ctx);
121 MQ_FCT item_hdl = MqFactoryC::getFCT(item,MK_NULL_NO);
122 enum MkErrorE errVal = MqClassFactorySet(ctx, item_hdl);
123 MkErrorC_Check(ctx, errVal);
124 }

◆ ClassIdentGet()

MK_STRN ccmqmsgque::MqContextC::ClassIdentGet ( ) const
inline

C++: MK_STRN ctx.ClassIdentGet() C-API
get the application-identification

Definition at line 136 of file MqContextC_inline_cc.hh.

136 {
137 MK_UNUSED auto ctx = getCTXN(MK_NULL_NO);
138 MkRtSetup_X(ctx);
139 MK_STRN __retVal__L = MqClassIdentGet(ctx);
140 return __retVal__L;
141 }
const MK_STRB * MK_STRN
MQ_EXTERN MK_STRN MqClassIdentGet(MQ_CTXN const ctx) MK_ATTR_HDL
get the application-identification …

◆ ClassIdentSet() [1/2]

void ccmqmsgque::MqContextC::ClassIdentSet ( const std::string & ident)
inline

C++: ctx.ClassIdentSet(MK_STRN ident) C-API
link the MqContextC to a new MqFactoryC identified by ident

Definition at line 152 of file MqContextC_inline_cc.hh.

152 {
153 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
154 MkRtSetup_X(ctx);
155 const MK_STRN ident_hdl = ident.c_str();
156 enum MkErrorE errVal = MqClassIdentSet(ctx, ident_hdl);
157 MkErrorC_Check(ctx, errVal);
158 }
#define MqClassIdentSet(...)

◆ ClassIdentSet() [2/2]

void ccmqmsgque::MqContextC::ClassIdentSet ( MK_STRN ident)
inline

C++: ctx.ClassIdentSet(MK_STRN ident) C-API
link the MqContextC to a new MqFactoryC identified by ident

Definition at line 144 of file MqContextC_inline_cc.hh.

144 {
145 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
146 MkRtSetup_X(ctx);
147 enum MkErrorE errVal = MqClassIdentSet(ctx, ident);
148 MkErrorC_Check(ctx, errVal);
149 }

◆ ClassOriginalIdentGet()

MK_STRN ccmqmsgque::MqContextC::ClassOriginalIdentGet ( ) const
inline

C++: MK_STRN ctx.ClassOriginalIdentGet() C-API
get the libmqmsgque::MqFactoryS::originalIdent from the MqContextC

Definition at line 161 of file MqContextC_inline_cc.hh.

161 {
162 MK_UNUSED auto ctx = getCTXN(MK_NULL_NO);
163 MkRtSetup_X(ctx);
164 MK_STRN __retVal__L = MqClassOriginalIdentGet(ctx);
165 return __retVal__L;
166 }
MQ_EXTERN MK_STRN MqClassOriginalIdentGet(MQ_CTXN const ctx) MK_ATTR_HDL
get the libmqmsgque::MqFactoryS::originalIdent from the MqContextC