EMA C++ Training Examples : EMA C++ Consumer Examples : 300 Series Examples : 300_MP_Close
 
300_MP_Close
Summary
=======
 
The 300_MP_Close application is provided as an example of OMM Consumer
application written to the EMA library showcasing closing of a streaming request.
 
This application demonstrates basic usage of the EMA library for accessing and
parsing of OMM MarketPrice data from Data Feed Direct, directly
from an OMM Provider application, or from Advanced Distribution Server.
 
The 300_MP_Close showcases closing of an item. This application
arbitrarily chooses to close an item after a number of received updates.
 
Detailed Description
====================
 
The 300_MP_Close implements the following high level steps:
 
+ Implements OmmConsumerClient class in AppClient
- overrides desired methods
- provides own methods as needed, e.g. decode( const FieldList& )
- each of the method provided in this example use the ease of use
data extraction methods that are data type specific
+ Instantiates AppClient object that receives and processes item messages
+ Instantiates and modifies OmmConsumerConfig object
- sets user name to “user”
+ Instantiates an OmmConsumer object which initializes the connection
and logs into the specified server.
+ Opens a streaming item interest
- MarketPrice IBM.N item from DIRECT_FEED service
+ Processes data received from API for 60 seconds
- closes the item stream after a number of received update messages
- all received messages are processed on API thread of control
+ Exits
 
Note: if needed, these and other details may be modified to fit local
environment using EmaConfig.xml file..
Note: please refer to the EMA library ReadMe.txt file for details on
standard configuration.