theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Class_CS_API

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

+ Collaboration diagram for MqContextC_Class_CS_API:

Functions

MqFactoryC csmqmsgque.MqContextC.ClassFactoryGet ()
  C#: MqFactoryC ctx.ClassFactoryGet() C-API
get the MqFactoryC used by the MqContextC
 
void csmqmsgque.MqContextC.ClassFactorySet (MqFactoryC item)
  C#: ctx.ClassFactorySet(MqFactoryC item) C-API
link the MqContextC to a new MqFactoryC
 
string csmqmsgque.MqContextC.ClassIdentGet ()
  C#: string ctx.ClassIdentGet() C-API
get the application-identification
 
void csmqmsgque.MqContextC.ClassIdentSet (string ident)
  C#: ctx.ClassIdentSet(string ident) C-API
link the MqContextC to a new MqFactoryC identified by ident
 
string csmqmsgque.MqContextC.ClassOriginalIdentGet ()
  C#: string ctx.ClassOriginalIdentGet() C-API
get the 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.

Function Documentation

◆ ClassFactoryGet()

MqFactoryC csmqmsgque.MqContextC.ClassFactoryGet ( )
inline

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

Definition at line 339 of file MqContextC.cs.

339 {
340 IntPtr __retVal__L = Mq.MqClassFactoryGet(hdl);
341 return MqFactoryC.MqFactoryC_ObjNew(__retVal__L);
342 }
csmqmsgque.MqMsgque Mq

◆ ClassFactorySet()

void csmqmsgque.MqContextC.ClassFactorySet ( MqFactoryC item)
inline

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

Definition at line 347 of file MqContextC.cs.

347 {
348 IntPtr item_hdl = MqFactoryC.getOBJ("MqFactoryC",item);
349 MkErrorE errVal = Mq.MqClassFactorySet(mkrt, hdl, item_hdl);
350 MkErrorC.Check(hdl, errVal);
351 }
static void Check(IntPtr ctx, MkErrorE err)
MkErrorE

◆ ClassIdentGet()

string csmqmsgque.MqContextC.ClassIdentGet ( )
inline

C#: string ctx.ClassIdentGet() C-API
get the application-identification

Definition at line 354 of file MqContextC.cs.

354 {
355 IntPtr __retVal__L = Mq.MqClassIdentGet(hdl);
356 return Marshal.PtrToStringAnsi(__retVal__L);
357 }

◆ ClassIdentSet()

void csmqmsgque.MqContextC.ClassIdentSet ( string ident)
inline

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

Definition at line 360 of file MqContextC.cs.

360 {
361 IntPtr ident_cstr = Marshal.StringToHGlobalAnsi(ident);
362 MkErrorE errVal = Mq.MqClassIdentSet(mkrt, hdl, ident_cstr);
363 Marshal.FreeHGlobal(ident_cstr);
364 MkErrorC.Check(hdl, errVal);
365 }

◆ ClassOriginalIdentGet()

string csmqmsgque.MqContextC.ClassOriginalIdentGet ( )
inline

C#: string ctx.ClassOriginalIdentGet() C-API
get the MqFactoryS.originalIdent from the MqContextC

Definition at line 368 of file MqContextC.cs.

368 {
369 IntPtr __retVal__L = Mq.MqClassOriginalIdentGet(hdl);
370 return Marshal.PtrToStringAnsi(__retVal__L);
371 }