Universal Messaging Developer Guide : The Enterprise Client APIs : The Enterprise Developer Guide for C++ : General Features : Universal Messaging C++ - Universal Messaging Events
Universal Messaging C++ - Universal Messaging Events
Each nConsumeEvent object has an nEventAtrributes object associated with it which contains all available meta data associated with the event.
Constructing an Event
In this C++ code snippet, we construct our Universal Messaging Event object (nConsumeEvent), and, in this example, pass a byte array data into the constructor:

std::string strLine = "Hello World";
int length = 0;
unsigned char *pLine = nConstants::encode(strLine, length);
nEventProperties *pProps = new nEventProperties();
nConsumeEvent *evt = new nConsumeEvent(pProps, pLine, length);
Copyright © 2013-2014 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback