theLink 10.0
Loading...
Searching...
No Matches
MqFactoryC_TOR_CS_API

MqFactoryC - various functions to create, initialize and destroy a factoryMore...

+ Collaboration diagram for MqFactoryC_TOR_CS_API:

Functions

MqFactoryC csmqmsgque.MqFactoryC.Dup2 (string ident)
  C#: [constructor] MqFactoryC fct.Dup2(string ident) C-API
create a duplicate of the singleton object MqFactoryC using a new factory-identifer
 
 csmqmsgque.MqFactoryC.MqFactoryC (Type constructor, string ident=null)
 CONSTRUCTOR.
 
static MqFactoryC csmqmsgque.MqFactoryC.Add (Type constructor, string ident=null)
  C#: [constructor,static] MqFactoryC MqFactoryC.Add(Type constructor, string ident = null) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 
static IntPtr csmqmsgque.MqFactoryC.CTOR (Type constructor, string ident=null)
  C#: [constructor,static] MqFactoryC MqFactoryC.Add(Type constructor, string ident = null) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 

Detailed Description

MqFactoryC - various functions to create, initialize and destroy a factory

Function Documentation

◆ Add()

static MqFactoryC csmqmsgque.MqFactoryC.Add ( Type constructor,
string ident = null )
inlinestatic

C#: [constructor,static] MqFactoryC MqFactoryC.Add(Type constructor, string ident = null) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor

Definition at line 349 of file MqFactoryC.cs.

349 {
350 if (ident == null) {ident = constructor.Name;}
351 if (ident == null) {ident = constructor.Name;}
352 IntPtr constructor_c;
353 // this require an Class-Constructor with Signature 'CLASS(MqContextC)' and will be implemented as
354 // 'CLASS(MqContextC tmpl=null) : base(tmpl) {...}' to support the Default-Constructor as well.
355 ConstructorInfo constr = constructor.GetConstructor(new Type[] {typeof(MqContextC)});
356 if (constr == null) {
357 throw new System.Exception("unable to get Factory constructor");
358 } else {
359 constructor_c = (IntPtr) GCHandle.Alloc(constr);
360 }
361 IntPtr ident_cstr = Marshal.StringToHGlobalAnsi(ident);
362 IntPtr __retVal__L = Mq.MqFactoryAdd(IntPtr.Zero, IntPtr.Zero, fFactoryCreate, constructor_c, fFactoryDataFree, fFactoryDataCopy, fFactoryDelete, IntPtr.Zero, null, null, ident_cstr);
363 Marshal.FreeHGlobal(ident_cstr);
364 if (__retVal__L == IntPtr.Zero) {
365 throw new MkInitError("MqFactoryC.Add");
366 }
367 return MqFactoryC.MqFactoryC_ObjCreate(__retVal__L);
368 }
csmqmsgque.MqMsgque Mq

◆ CTOR()

static IntPtr csmqmsgque.MqFactoryC.CTOR ( Type constructor,
string ident = null )
inlinestaticprotected

C#: [constructor,static] MqFactoryC MqFactoryC.Add(Type constructor, string ident = null) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor

Definition at line 371 of file MqFactoryC.cs.

371 {
372 if (ident == null) {ident = constructor.Name;}
373 IntPtr constructor_c;
374 // this require an Class-Constructor with Signature 'CLASS(MqContextC)' and will be implemented as
375 // 'CLASS(MqContextC tmpl=null) : base(tmpl) {...}' to support the Default-Constructor as well.
376 ConstructorInfo constr = constructor.GetConstructor(new Type[] {typeof(MqContextC)});
377 if (constr == null) {
378 throw new System.Exception("unable to get Factory constructor");
379 } else {
380 constructor_c = (IntPtr) GCHandle.Alloc(constr);
381 }
382 IntPtr ident_cstr = Marshal.StringToHGlobalAnsi(ident);
383 IntPtr __retVal__L = Mq.MqFactoryAdd(IntPtr.Zero, IntPtr.Zero, fFactoryCreate, constructor_c, fFactoryDataFree, fFactoryDataCopy, fFactoryDelete, IntPtr.Zero, null, null, ident_cstr);
384 Marshal.FreeHGlobal(ident_cstr);
385 if (__retVal__L == IntPtr.Zero) {
386 throw new MkInitError("MqFactoryC.CTOR");
387 }
388 return (IntPtr)__retVal__L;
389 }
+ Here is the caller graph for this function:

◆ Dup2()

MqFactoryC csmqmsgque.MqFactoryC.Dup2 ( string ident)
inline

C#: [constructor] MqFactoryC fct.Dup2(string ident) C-API
create a duplicate of the singleton object MqFactoryC using a new factory-identifer

Definition at line 333 of file MqFactoryC.cs.

333 {
334 IntPtr ident_cstr = Marshal.StringToHGlobalAnsi(ident);
335 IntPtr __retVal__L = Mq.MqFactoryDup2(mkrt, hdl, ident_cstr);
336 Marshal.FreeHGlobal(ident_cstr);
337 if (__retVal__L == IntPtr.Zero) {
338 throw new MkInitError("MqFactoryC.Dup2");
339 }
340 return MqFactoryC.MqFactoryC_ObjCreate(__retVal__L);
341 }

◆ MqFactoryC()

csmqmsgque.MqFactoryC.MqFactoryC ( Type constructor,
string ident = null )
inline

CONSTRUCTOR.

C#: [constructor,static] MqFactoryC MqFactoryC.Add(Type constructor, string ident = null) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor

Definition at line 346 of file MqFactoryC.cs.

346: this(CTOR(constructor, ident)) {}
static IntPtr CTOR(Type constructor, string ident=null)
C#: [constructor,static] MqFactoryC MqFactoryC.Add(Type constructor, string ident = null) → C-API ...