theLink 10.0
Loading...
Searching...
No Matches
MqContextC_ReadApi_Atom_PY_API

MqContextC - read a single-data-item outof a read-data-packageMore...

+ Collaboration diagram for MqContextC_ReadApi_Atom_PY_API:

Functions

static OT_ProcRet pymqmsgque_MqContextC_ReadALL (MqContextC_ARGS)
  Python: MkBufferListC ctx.ReadALL(?val_inout:MkBufferListC=None?) C-API
get a temporary MkBufferListC from all data in the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadBFL (MqContextC_ARGS)
  Python: MkBufferListC ctx.ReadBFL() C-API
get a temporary MkBufferListC from next list-item in the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadBUF (MqContextC_ARGS)
  Python: MkBufferC ctx.ReadBUF() C-API
get a temporary MkBufferC from the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadBIN (MqContextC_ARGS)
  Python: doc_mq_py_ReadBIN C-API
generic function to read an MK_BIN object from the read-data-package object …
 
static OT_ProcRet pymqmsgque_MqContextC_ReadBOL (MqContextC_ARGS)
  Python: doc_mq_py_ReadBOL C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadBinaryR (MqContextC_ARGS)
  Python: binary ctx.ReadBinaryR() C-API
read a MkBinaryR from the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadDBL (MqContextC_ARGS)
  Python: doc_mq_py_ReadDBL C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadFLT (MqContextC_ARGS)
  Python: doc_mq_py_ReadFLT C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadHDL (MqContextC_ARGS)
  Python: MK_HDL ctx.ReadHDL() C-API
read the handle from the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadI16 (MqContextC_ARGS)
  Python: doc_mq_py_ReadI16 C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadI32 (MqContextC_ARGS)
  Python: doc_mq_py_ReadI32 C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadI64 (MqContextC_ARGS)
  Python: doc_mq_py_ReadI64 C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadI8 (MqContextC_ARGS)
  Python: doc_mq_py_ReadI8 C-API
read a PRIMITIVE TYPE from the read-data-package
 
PyObject * pymqmsgque_MqContextC_ReadLIST (MqContextC_ARGS)
  Python: [list...] ctx.ReadLIST() C-API
get all arguments as native list …
 
static OT_ProcRet pymqmsgque_MqContextC_ReadLONG (MqContextC_ARGS)
  Python: long ctx.ReadLONG() C-API
read the long native object from the read-data-package
 
PyObject * pymqmsgque_MqContextC_ReadNEXT (MqContextC_ARGS)
  Python: obj ctx.ReadNEXT() C-API
get the next argument as native object …
 
static OT_ProcRet pymqmsgque_MqContextC_ReadSTR (MqContextC_ARGS)
  Python: doc_mq_py_ReadSTR C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet pymqmsgque_MqContextC_ReadStringR (MqContextC_ARGS)
  Python: string ctx.ReadStringR() C-API
read a MkStringR from the read-data-package
 

Detailed Description

MqContextC - read a single-data-item outof a read-data-package

Function Documentation

◆ pymqmsgque_MqContextC_ReadALL()

static OT_ProcRet pymqmsgque_MqContextC_ReadALL ( MqContextC_ARGS )
static

Python: MkBufferListC ctx.ReadALL(?val_inout:MkBufferListC=None?) C-API
get a temporary MkBufferListC from all data in the read-data-package

Definition at line 1936 of file MqContextC_py.c.

1936 {
1939 MkBufferListCreateTLS_T(val_inout,10);
1942 MkErrorC_Check(hdl,MqReadALL (hdl, &val_inout));
1943 OT_retObj_SET_BFL(val_inout);
1944 goto end;
1945 error:
1947 end:
1949}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_Error
#define OT_retObj_SET_BFL(nat)
#define OT_retObj_RETURN
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_SETUP_hdl
#define ReadALL_doc
#define error
Definition high_lng.h:339
#define MkBufferListCreateTLS_T(name, num)
#define MK_NULL_YES
#define MqReadALL(...)
#define OT_CHECK_BFL(val, nullB)

◆ pymqmsgque_MqContextC_ReadBFL()

static OT_ProcRet pymqmsgque_MqContextC_ReadBFL ( MqContextC_ARGS )
static

Python: MkBufferListC ctx.ReadBFL() C-API
get a temporary MkBufferListC from next list-item in the read-data-package

Definition at line 1954 of file MqContextC_py.c.

1954 {
1958 MK_BFL val_out;
1959 MkErrorC_Check(hdl,MqReadBFL (hdl, &val_out));
1960 OT_retObj_SET_BFL(val_out);
1961 goto end;
1962 error:
1964 end:
1966}
#define OT_SETUP_NOARG(d)
#define ReadBFL_doc
#define MqReadBFL(...)

◆ pymqmsgque_MqContextC_ReadBIN()

static OT_ProcRet pymqmsgque_MqContextC_ReadBIN ( MqContextC_ARGS )
static

Python: doc_mq_py_ReadBIN C-API
generic function to read an MK_BIN object from the read-data-package object …

Definition at line 1986 of file MqContextC_py.c.

1986 {
1990 MkBinaryR val_out;
1991 MkErrorC_Check(hdl,MqReadBIN (hdl, &val_out));
1992 MkBinaryR retVal = val_out;
1994 goto end;
1995 error:
1997 end:
1999}
#define OT_GET__ME_REF_MkBinaryR(b)
#define OT_retObj_SET(val)
#define ReadBIN_doc
#define MqReadBIN(...)

◆ pymqmsgque_MqContextC_ReadBinaryR()

static OT_ProcRet pymqmsgque_MqContextC_ReadBinaryR ( MqContextC_ARGS )
static

Python: binary ctx.ReadBinaryR() C-API
read a MkBinaryR from the read-data-package

Definition at line 2017 of file MqContextC_py.c.

2017 {
2021 MkBinaryR val_out;
2022 MkErrorC_Check(hdl,MqReadBinaryR (hdl, &val_out));
2023 MkBinaryR retVal = val_out;
2025 goto end;
2026 error:
2028 end:
2030}
#define ReadBinaryR_doc
#define MqReadBinaryR(...)

◆ pymqmsgque_MqContextC_ReadBOL()

static OT_ProcRet pymqmsgque_MqContextC_ReadBOL ( MqContextC_ARGS )
static

Python: doc_mq_py_ReadBOL C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 2002 of file MqContextC_py.c.

2002 {
2006 MK_BOL val_out;
2007 MkErrorC_Check(hdl,MqReadBOL (hdl, &val_out));
2008 OT_retObj_SET_BOL(val_out == 1);
2009 goto end;
2010 error:
2012 end:
2014}
#define OT_retObj_SET_BOL(nat)
#define ReadBOL_doc
unsigned char MK_BOL
#define MqReadBOL(...)

◆ pymqmsgque_MqContextC_ReadBUF()

static OT_ProcRet pymqmsgque_MqContextC_ReadBUF ( MqContextC_ARGS )
static

Python: MkBufferC ctx.ReadBUF() C-API
get a temporary MkBufferC from the read-data-package

Definition at line 1969 of file MqContextC_py.c.

1969 {
1973 MK_BUF val_out;
1974 MkErrorC_Check(hdl,MqReadBUF (hdl, &val_out));
1975 OT_retObj_SET_BUF(val_out);
1976 goto end;
1977 error:
1979 end:
1981}
#define OT_retObj_SET_BUF(nat)
#define ReadBUF_doc
#define MqReadBUF(...)

◆ pymqmsgque_MqContextC_ReadDBL()

static OT_ProcRet pymqmsgque_MqContextC_ReadDBL ( MqContextC_ARGS )
static

Python: doc_mq_py_ReadDBL C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 2033 of file MqContextC_py.c.

2033 {
2037 MK_DBL val_out;
2038 MkErrorC_Check(hdl,MqReadDBL (hdl, &val_out));
2039 OT_retObj_SET_DBL(val_out);
2040 goto end;
2041 error:
2043 end:
2045}
#define OT_retObj_SET_DBL(nat)
#define ReadDBL_doc
double MK_DBL
#define MqReadDBL(...)

◆ pymqmsgque_MqContextC_ReadFLT()

static OT_ProcRet pymqmsgque_MqContextC_ReadFLT ( MqContextC_ARGS )
static

Python: doc_mq_py_ReadFLT C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 2048 of file MqContextC_py.c.

2048 {
2052 MK_FLT val_out;
2053 MkErrorC_Check(hdl,MqReadFLT (hdl, &val_out));
2054 OT_retObj_SET_FLT(val_out);
2055 goto end;
2056 error:
2058 end:
2060}
#define OT_retObj_SET_FLT(nat)
#define ReadFLT_doc
float MK_FLT
#define MqReadFLT(...)

◆ pymqmsgque_MqContextC_ReadHDL()

static OT_ProcRet pymqmsgque_MqContextC_ReadHDL ( MqContextC_ARGS )
static

Python: MK_HDL ctx.ReadHDL() C-API
read the handle from the read-data-package

Definition at line 2063 of file MqContextC_py.c.

2063 {
2067 MK_HDL val_out;
2068 MkErrorC_Check(hdl,MqReadHDL (hdl, &val_out));
2069 OT_retObj_SET_HDL(val_out);
2070 goto end;
2071 error:
2073 end:
2075}
#define OT_retObj_SET_HDL(nat)
#define ReadHDL_doc
int32_t MK_HDL
#define MqReadHDL(...)

◆ pymqmsgque_MqContextC_ReadI16()

static OT_ProcRet pymqmsgque_MqContextC_ReadI16 ( MqContextC_ARGS )
static

Python: doc_mq_py_ReadI16 C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 2078 of file MqContextC_py.c.

2078 {
2082 MK_I16 val_out;
2083 MkErrorC_Check(hdl,MqReadI16 (hdl, &val_out));
2084 OT_retObj_SET_I16(val_out);
2085 goto end;
2086 error:
2088 end:
2090}
#define OT_retObj_SET_I16(nat)
#define ReadI16_doc
signed short int MK_I16
#define MqReadI16(...)

◆ pymqmsgque_MqContextC_ReadI32()

static OT_ProcRet pymqmsgque_MqContextC_ReadI32 ( MqContextC_ARGS )
static

Python: doc_mq_py_ReadI32 C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 2093 of file MqContextC_py.c.

2093 {
2097 MK_I32 val_out;
2098 MkErrorC_Check(hdl,MqReadI32 (hdl, &val_out));
2099 OT_retObj_SET_I32(val_out);
2100 goto end;
2101 error:
2103 end:
2105}
#define OT_retObj_SET_I32(nat)
#define ReadI32_doc
signed int MK_I32
#define MqReadI32(...)

◆ pymqmsgque_MqContextC_ReadI64()

static OT_ProcRet pymqmsgque_MqContextC_ReadI64 ( MqContextC_ARGS )
static

Python: doc_mq_py_ReadI64 C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 2108 of file MqContextC_py.c.

2108 {
2112 MK_I64 val_out;
2113 MkErrorC_Check(hdl,MqReadI64 (hdl, &val_out));
2114 OT_retObj_SET_I64(val_out);
2115 goto end;
2116 error:
2118 end:
2120}
#define OT_retObj_SET_I64(nat)
#define ReadI64_doc
signed long long MK_I64
#define MqReadI64(...)

◆ pymqmsgque_MqContextC_ReadI8()

static OT_ProcRet pymqmsgque_MqContextC_ReadI8 ( MqContextC_ARGS )
static

Python: doc_mq_py_ReadI8 C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 2123 of file MqContextC_py.c.

2123 {
2127 MK_I8 val_out;
2128 MkErrorC_Check(hdl,MqReadI8 (hdl, &val_out));
2129 OT_retObj_SET_I8(val_out);
2130 goto end;
2131 error:
2133 end:
2135}
#define OT_retObj_SET_I8(nat)
#define ReadI8_doc
signed char MK_I8
#define MqReadI8(...)

◆ pymqmsgque_MqContextC_ReadLIST()

PyObject * pymqmsgque_MqContextC_ReadLIST ( MqContextC_ARGS )

Python: [list...] ctx.ReadLIST() C-API
get all arguments as native list …

Definition at line 17 of file MqContextC_ReadLIST_lng.h.

17 {
23 MK_BUF buf = NULL;
24 while (MqReadItemExists(hdl)) {
25 MqReadBUF (hdl, &buf);
26 switch (buf->var.type) {
27 case MK_I8T: { RET = OT_TMP_I8_OBJ(MkBuf2I8(buf)); break; }
28 case MK_BOLT: { RET = OT_TMP_BOL_OBJ(MkBuf2BOL(buf)); break; }
29 case MK_I16T: { RET = OT_TMP_I16_OBJ(MkBuf2I16(buf)); break; }
30 case MK_I32T: { RET = OT_TMP_I32_OBJ(MkBuf2I32(buf)); break; }
31 case MK_FLTT: { RET = OT_TMP_FLT_OBJ(MkBuf2FLT(buf)); break; }
32 case MK_I64T: { RET = OT_TMP_I64_OBJ(MkBuf2I64(buf)); break; }
33 case MK_DBLT: { RET = OT_TMP_DBL_OBJ(MkBuf2DBL(buf)); break; }
34 case MK_BINT: { RET = OT_TMP_BIN_OBJ(buf->storage.first.B,buf->var.cursize); break; }
35 case MK_STRT: { RET = OT_TMP_STR_OBJ(buf->storage.first.C); break; }
36 case MK_LSTT: {
38 MkErrorC_Check(hdl,MkBufferGetBFL (buf, &bfl));
39 OT_MK_CALL_0(bfl,MkBufferListC,ToList,RET);
40 MkRefDecr_X(bfl);
41 break;
42 }
43/*
44 case MQ_ROUT:
45 case MQ_LTRT: {
46 OT_ERROR_TYPE("unable to convert an 'internal' object into a 'public' object");
47 RET = OT_LNG_NULL;
48 }
49*/
50 }
51 if (RET == OT_LNG_NULL) goto error;
53 }
54 goto end;
55 error:
57 end:
59}
#define OT_MK_CALL_0(obj, cls, meth, ret)
#define OT_TMP_DBL_OBJ(val)
#define OT_retObj_SET_List
#define OT_TMP_I16_OBJ(val)
#define OT_TMP_I32_OBJ(val)
#define OT_TMP_I64_OBJ(val)
#define OT_TMP_BIN_OBJ(val, len)
#define OT_retObj_APPEND(var)
PyObject * OT_OBJ_T
#define OT_TMP_STR_OBJ(val)
#define OT_TMP_I8_OBJ(val)
#define OT_LNG_NULL
#define OT_TMP_BOL_OBJ(val)
#define OT_TMP_FLT_OBJ(val)
#define OT_SETUP_hdl
#define ReadLIST_doc
#define MkBuf2I64(buf)
#define MkBuf2BOL(buf)
#define MkBuf2DBL(buf)
#define MkBuf2I8(buf)
#define MkBuf2I16(buf)
#define MkBuf2FLT(buf)
#define MkBuf2I32(buf)
#define MkBufferGetBFL(...)
#define MkBufferListCreate(...)
MK_I8T
MK_I64T
MK_FLTT
MK_BINT
MK_I16T
MK_BOLT
MK_DBLT
MK_I32T
MK_STRT
MK_LSTT
#define MkRefDecr_X(x)
bool MqReadItemExists(MQ_CTX const ctx)
check if an item exists in the read-data-package …
union MkBufferU first
struct MkBufferS::@5 storage
struct MkBufferS::@4 var
MK_NUM cursize
enum MkTypeE type
MK_STRN C
MK_BIN B

◆ pymqmsgque_MqContextC_ReadLONG()

static OT_ProcRet pymqmsgque_MqContextC_ReadLONG ( MqContextC_ARGS )
static

Python: long ctx.ReadLONG() C-API
read the long native object from the read-data-package

Definition at line 2141 of file MqContextC_py.c.

2141 {
2145 MK_LONG val_out;
2146 MkErrorC_Check(hdl,MqReadLONG (hdl, &val_out));
2147 OT_retObj_SET_LONG(val_out);
2148 goto end;
2149 error:
2151 end:
2153}
#define OT_retObj_SET_LONG(nat)
#define ReadLONG_doc
long MK_LONG
#define MqReadLONG(...)

◆ pymqmsgque_MqContextC_ReadNEXT()

OT_ProcRet pymqmsgque_MqContextC_ReadNEXT ( MqContextC_ARGS )

Python: obj ctx.ReadNEXT() C-API
get the next argument as native object …

Definition at line 18 of file MqContextC_ReadNEXT_lng.h.

18 {
23 MK_BUF buf = NULL;
24 MqReadBUF_E(hdl, &buf);
25 switch (buf->var.type) {
26 case MK_I8T: { RET = OT_TMP_I8_OBJ(MkBuf2I8(buf)); break; }
27 case MK_BOLT: { RET = OT_TMP_BOL_OBJ(MkBuf2BOL(buf)); break; }
28 case MK_I16T: { RET = OT_TMP_I16_OBJ(MkBuf2I16(buf)); break; }
29 case MK_I32T: { RET = OT_TMP_I32_OBJ(MkBuf2I32(buf)); break; }
30 case MK_FLTT: { RET = OT_TMP_FLT_OBJ(MkBuf2FLT(buf)); break; }
31 case MK_I64T: { RET = OT_TMP_I64_OBJ(MkBuf2I64(buf)); break; }
32 case MK_DBLT: { RET = OT_TMP_DBL_OBJ(MkBuf2DBL(buf)); break; }
33 case MK_BINT: { RET = OT_TMP_BIN_OBJ(buf->storage.first.B,buf->var.cursize); break; }
34 case MK_STRT: { RET = OT_TMP_STR_OBJ(buf->storage.first.C); break; }
35 case MK_LSTT: {
37 MkErrorC_Check(hdl,MkBufferGetBFL (buf, &bfl));
38 OT_MK_CALL_0(bfl,MkBufferListC,ToList,RET);
39 MkRefDecr_X(bfl);
40 break;
41 }
42/*
43 case MQ_ROUT:
44 case MQ_LTRT: {
45 OT_ERROR_TYPE("unable to convert an 'internal' object into a 'public' object");
46 RET = OT_LNG_NULL;
47 }
48*/
49 }
50 if (RET == OT_LNG_NULL) goto error;
51 OT_retObj_SET(RET);
52 goto end;
53 error:
55 end:
57}
#define ReadNEXT_doc
#define MqReadBUF_E(...)

◆ pymqmsgque_MqContextC_ReadSTR()

static OT_ProcRet pymqmsgque_MqContextC_ReadSTR ( MqContextC_ARGS )
static

Python: doc_mq_py_ReadSTR C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 2159 of file MqContextC_py.c.

2159 {
2163 MK_STRN val_out;
2164 MkErrorC_Check(hdl,MqReadSTR (hdl, &val_out));
2165 OT_retObj_SET_STR(val_out);
2166 goto end;
2167 error:
2169 end:
2171}
#define OT_retObj_SET_STR(nat)
#define ReadSTR_doc
const MK_STRB * MK_STRN
#define MqReadSTR(...)

◆ pymqmsgque_MqContextC_ReadStringR()

static OT_ProcRet pymqmsgque_MqContextC_ReadStringR ( MqContextC_ARGS )
static

Python: string ctx.ReadStringR() C-API
read a MkStringR from the read-data-package

Definition at line 2174 of file MqContextC_py.c.

2174 {
2178 MkStringR val_out;
2179 MkErrorC_Check(hdl,MqReadStringR (hdl, &val_out));
2180 MkStringR retVal = val_out;
2182 goto end;
2183 error:
2185 end:
2187}
#define OT_GET__ME_REF_MkStringR(b)
#define ReadStringR_doc
#define MqReadStringR(...)