theLink 10.0
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 105 of file MqContextC_inline_cc.hh.

105 {
106 MK_UNUSED auto ctx = getCTXN();
107 MQ_FCT __retVal__L = MqClassFactoryGet(ctx);
108 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
109 }
#define MK_UNUSED
#define MK_RT_CALL
MQ_CTXN getCTXN() const
(const) return the LibMsgqueObject from current MqContextC instance
MQ_FCT const MqClassFactoryGet(MQ_CTXN const ctx)
get the MqFactoryC used by the MqContextC
static MqFactoryC * MqFactoryC_ObjNew(MK_RT_ARGS 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 122 of file MqContextC_inline_cc.hh.

122 {
123 MK_UNUSED auto ctx = getCTX();
124 const MQ_FCT item_hdl = MqFactoryC::getFCT(item);
125 enum MkErrorE errVal = MqClassFactorySet(ctx, item_hdl);
126 MkErrorC_Check(ctx, errVal);
127 }
MQ_CTX getCTX() const
return the LibMsgqueObject from current MqContextC instance
#define MqClassFactorySet(...)
MQ_FCT getFCT() 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 114 of file MqContextC_inline_cc.hh.

114 {
115 MK_UNUSED auto ctx = getCTX();
116 MQ_FCT item_hdl = MqFactoryC::getFCT(item);
117 enum MkErrorE errVal = MqClassFactorySet(ctx, item_hdl);
118 MkErrorC_Check(ctx, errVal);
119 }

◆ ClassIdentGet()

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

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

Definition at line 130 of file MqContextC_inline_cc.hh.

130 {
131 MK_UNUSED auto ctx = getCTXN();
132 MK_STRN __retVal__L = MqClassIdentGet(ctx);
133 return __retVal__L;
134 }
const MK_STRB * MK_STRN
MK_STRN MqClassIdentGet(MQ_CTXN const ctx)
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 144 of file MqContextC_inline_cc.hh.

144 {
145 MK_UNUSED auto ctx = getCTX();
146 const MK_STRN ident_hdl = ident.c_str();
147 enum MkErrorE errVal = MqClassIdentSet(ctx, ident_hdl);
148 MkErrorC_Check(ctx, errVal);
149 }
#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 137 of file MqContextC_inline_cc.hh.

137 {
138 MK_UNUSED auto ctx = getCTX();
139 enum MkErrorE errVal = MqClassIdentSet(ctx, ident);
140 MkErrorC_Check(ctx, errVal);
141 }

◆ 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 152 of file MqContextC_inline_cc.hh.

152 {
153 MK_UNUSED auto ctx = getCTXN();
154 MK_STRN __retVal__L = MqClassOriginalIdentGet(ctx);
155 return __retVal__L;
156 }
MK_STRN MqClassOriginalIdentGet(MQ_CTXN const ctx)
get the libmqmsgque::MqFactoryS::originalIdent from the MqContextC