Universal Messaging 9.7 | Universal Messaging Developer Guide | Enterprise APIs | Enterprise Developer's Guide for C++ | General Features | Universal Messaging Event Dictionaries
 
Universal Messaging Event Dictionaries
Constructing an Event
In this code snippet, we assume we want to publish an event containing the definition of a bond, say, with a name of "bond1":

nEventProperties *props = new nEventProperties();
props->put("bondname", "bond1");
props->put("price", 100.00);
nConsumeEvent *evt = new nConsumeEvent(props, "atag");
channel->publish(evt);
Note that in this example code, we also create a new Universal Messaging Event object (nConsumeEvent, see Universal Messaging Events) to make use of our Event Dictionary (nEventProperties).

Copyright © 2013-2015 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.