theLink 10.0
Loading...
Searching...
No Matches
MqContextC_ReadLIST_lng.h
Go to the documentation of this file.
1
10/* LABEL-NO */
11
12//#error "MqC_ReadLIST_lng.h: use ReadALL→ToList
13
14#include "tmpl/mq_type_S_lng.h"
15
16// **************************************************************************************************
17OT_ProcRet NS(MqContextC_ReadLIST) (MqContextC_ARGS) {
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}
60// **************************************************************************************************
#define OT_MK_CALL_0(obj, cls, meth, ret)
#define OT_SETUP_NOARG(d)
#define OT_TMP_DBL_OBJ(val)
#define OT_retObj_SET_Error
#define OT_retObj_SET_List
#define OT_TMP_I16_OBJ(val)
#define OT_OBJ_T
#define OT_TMP_I32_OBJ(val)
#define OT_TMP_I64_OBJ(val)
#define OT_retObj_RETURN
#define OT_TMP_BIN_OBJ(val, len)
#define OT_retObj_APPEND(var)
#define OT_TMP_STR_OBJ(val)
#define OT_TMP_I8_OBJ(val)
#define OT_LNG_NULL
#define OT_TMP_BOL_OBJ(val)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_ProcRet
#define OT_TMP_FLT_OBJ(val)
#define NS(n)
#define MqContextC_ARGS
#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)
#define MqReadBUF(...)
bool MqReadItemExists(MQ_CTX const ctx)
check if an item exists in the read-data-package …
goto error
Definition high_lng.h:251
tag: nhi1-release-250425
union MkBufferU first
struct MkBufferS::@5 storage
struct MkBufferS::@4 var
MK_NUM cursize
enum MkTypeE type
MK_STRN C
MK_BIN B