theLink 10.0
Loading...
Searching...
No Matches
manfilter.cc
Go to the documentation of this file.
1
9/* LABEL-START */
10
11#include "debug_mq.h"
12#include "LibMqMsgque_cc.hh"
13
14/* LABEL-END */
15
17#include "LibMqMsgque_cc.hh"
18
19using namespace ccmqmsgque;
20
21class manfilter : public MqContextC {
22 public:
23 void fFTR () {
25 MkBufferC temp;
26 ftr->SendSTART();
27 while (ReadItemExists()) {
28 ftr->SendBUF(temp.SetV("<%s>", ReadSTR()));
29 }
30 ftr->SendEND_AND_WAIT("+FTR");
31 return SendRETURN();
32 }
33};
34
35int MK_CDECL main (int argc, MK_STRN argv[])
36{
38 static manfilter filter;
39 try {
40 filter.ConfigSetName ("manfilter");
41 filter.ConfigSetIsServer (true);
42 filter.LinkCreate(MkBufferListC {argc, argv});
44 filter.ServiceProxy ("+EOF");
46 } catch (const std::exception& e) {
47 filter.ErrorCatch(e);
48 }
49 return filter.Exit();
50}
52
tag: nhi1-release-250425
PUBLIC data structure for the ccmqmsgque-specific-data → C-API: libmqmsgque::MqContextS
void fFTR()
Definition manfilter.cc:23
MkBufferC * SetV(MK_FST val,...)
#define MK_CDECL
const MK_STRB * MK_STRN
MkErrorC * ErrorCatch(std::exception *exception=NULL, MK_STRN callfunc=__builtin_FUNCTION()) const
void ConfigSetName(MK_STRN data)
C++: ctx.ConfigSetName(MK_STRN data) → C-API set the libmqmsgque::MqConfigS::dispName value and...
void ConfigSetIsServer(MK_BOOL data)
C++: ctx.ConfigSetIsServer(MK_BOOL data) → C-API set the libmqmsgque::MqSetupS::isServer value
void ProcessEvent(MqWaitOnEventE wait=MQ_WAIT_NO, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
C++: ctx.ProcessEvent(MqWaitOnEventE wait = MQ_WAIT_NO, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) → C...
MK_I32 Exit(MK_STRN callfunc=__builtin_FUNCTION(), MK_STRN callfile=__builtin_FILE(), MK_I32 callline=__builtin_LINE())
C++: MK_I32 ctx.Exit(MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE(),...
MK_STRN ReadSTR()
C++: doc_mq_cc_ReadSTR → C-API read a PRIMITIVE TYPE from the read-data-package …
MK_BOOL ReadItemExists()
C++: MK_BOOL ctx.ReadItemExists() → C-API check if an item exists in the read-data-package …
void SendBUF(const MkBufferC *val)
C++: ctx.SendBUF(const MkBufferC* val) → C-API append a MkBufferC object to the send-data-packa...
void SendSTART()
C++: ctx.SendSTART() → C-API initialize the send-data-package. …
void SendEND_AND_WAIT(MQ_TOK token, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
C++: ctx.SendEND_AND_WAIT(MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) → C-API finish ...
void SendRETURN()
C++: ctx.SendRETURN() → C-API MqContextC - finish the send-data-block on the server and optiona...
void ServiceProxy(MQ_TOK token, MQ_SLAVE_ID id=MQ_SLAVE_OTHER)
C++: ctx.ServiceProxy(MQ_TOK token, MQ_SLAVE_ID id = MQ_SLAVE_OTHER) → C-API create a service t...
void ServiceCreate(MQ_TOK token, MqServiceCCB callback)
C++: ctx.ServiceCreate(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* cal...
MqContextC * SlaveGetFilter()
C++: MqContextC* ctx.SlaveGetFilter() → C-API get the filter-ctx or the master-ctx …
@ MQ_WAIT_FOREVER
Wait maximum timeout seconds for an event or raise an timeout-error …
static void CcMqSetup()
C++: [static] MqMsgque::Setup() → C-API setup ccmqmsgque internal memory …
int main(int argc, MK_STRN argv[])
Definition manfilter.cc:35
namespace for the CcMqMsgque "C++"-API