Loading...
Searching...
No Matches
MqContextC_ClassApi_PY_API

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

+ Collaboration diagram for MqContextC_ClassApi_PY_API:

Functions

static OT_ProcRet py_mqmsgque_MqContextC_ClassFactoryGet (MqContextC_ARGS)
  Python: MqFactoryC ctx.ClassFactoryGet() C-API
get the MqFactoryC used by the MqContextC
 
static OT_ProcRet py_mqmsgque_MqContextC_ClassFactorySet (MqContextC_ARGS)
  Python: ctx.ClassFactorySet(item:MqFactoryC) C-API
link the MqContextC to a new MqFactoryC
 
static OT_ProcRet py_mqmsgque_MqContextC_ClassIdentGet (MqContextC_ARGS)
  Python: string ctx.ClassIdentGet() C-API
get the application-identification
 
static OT_ProcRet py_mqmsgque_MqContextC_ClassIdentSet (MqContextC_ARGS)
  Python: ctx.ClassIdentSet(ident:string) C-API
link the MqContextC to a new MqFactoryC identified by ident
 
static OT_ProcRet py_mqmsgque_MqContextC_ClassOriginalIdentGet (MqContextC_ARGS)
  Python: 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

◆ py_mqmsgque_MqContextC_ClassFactoryGet()

static OT_ProcRet py_mqmsgque_MqContextC_ClassFactoryGet ( MqContextC_ARGS )
static

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

Definition at line 562 of file MqContextC_py.c.

562 {
564 OT_SETUP_NOARG(ClassFactoryGet_doc)
565 OT_CHECK_NOARGS
566 MQ_FCT retVal = MqClassFactoryGet (hdl);
567 OT_retObj_SET_FCT(retVal)
568 goto end;
569 error:
570 OT_retObj_SET_Error
571 end:
573}
#define ClassFactoryGet_doc
#define OT_SETUP_hdl
#define OT_retObj_RETURN
#define error
MQ_EXTERN MQ_FCT const MqClassFactoryGet(MQ_CTXN const ctx) MK_ATTR_HDL
get the MqFactoryC used by the MqContextC
data used to define a factory

◆ py_mqmsgque_MqContextC_ClassFactorySet()

static OT_ProcRet py_mqmsgque_MqContextC_ClassFactorySet ( MqContextC_ARGS )
static

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

Definition at line 578 of file MqContextC_py.c.

578 {
580 OT_SETUP_ONEARG(ClassFactorySet_doc)
581 MQ_FCT item = 0;
582 OT_CHECK_REQUIRED(OT_CHECK_FCT (item,MK_NULL_NO))
583 OT_CHECK_NOARGS
584 MkErrorC_Check(hdl,MqClassFactorySet (hdl, item));
585 OT_retObj_SET_None
586 goto end;
587 error:
588 OT_retObj_SET_Error
589 end:
591}
#define ClassFactorySet_doc
#define MK_NULL_NO
#define MqClassFactorySet(...)

◆ py_mqmsgque_MqContextC_ClassIdentGet()

static OT_ProcRet py_mqmsgque_MqContextC_ClassIdentGet ( MqContextC_ARGS )
static

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

Definition at line 594 of file MqContextC_py.c.

594 {
596 OT_SETUP_NOARG(ClassIdentGet_doc)
597 OT_CHECK_NOARGS
598 OT_retObj_SET_STR(MqClassIdentGet (hdl))
599 goto end;
600 error:
601 OT_retObj_SET_Error
602 end:
604}
#define ClassIdentGet_doc
MQ_EXTERN MK_STRN MqClassIdentGet(MQ_CTXN const ctx) MK_ATTR_HDL
get the application-identification …

◆ py_mqmsgque_MqContextC_ClassIdentSet()

static OT_ProcRet py_mqmsgque_MqContextC_ClassIdentSet ( MqContextC_ARGS )
static

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

Definition at line 607 of file MqContextC_py.c.

607 {
609 OT_SETUP_ONEARG(ClassIdentSet_doc)
610 MK_STRN ident = 0;
611 OT_CHECK_REQUIRED(OT_CHECK_STRN (ident))
612 OT_CHECK_NOARGS
613 MkErrorC_Check(hdl,MqClassIdentSet (hdl, ident));
614 OT_retObj_SET_None
615 goto end;
616 error:
617 OT_retObj_SET_Error
618 end:
620}
#define ClassIdentSet_doc
const MK_STRB * MK_STRN
#define MqClassIdentSet(...)

◆ py_mqmsgque_MqContextC_ClassOriginalIdentGet()

static OT_ProcRet py_mqmsgque_MqContextC_ClassOriginalIdentGet ( MqContextC_ARGS )
static

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

Definition at line 623 of file MqContextC_py.c.

623 {
625 OT_SETUP_NOARG(ClassOriginalIdentGet_doc)
626 OT_CHECK_NOARGS
627 OT_retObj_SET_STR(MqClassOriginalIdentGet (hdl))
628 goto end;
629 error:
630 OT_retObj_SET_Error
631 end:
633}
#define ClassOriginalIdentGet_doc
MQ_EXTERN MK_STRN MqClassOriginalIdentGet(MQ_CTXN const ctx) MK_ATTR_HDL
get the MqFactoryS::originalIdent from the MqContextC