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);