#include <Connectivity_MDInterfaces.h>
Market data manager interface
com::softwareag::marketdata::MDMInterface::MDMInterface |
( |
| ) |
|
|
inline |
virtual void com::softwareag::marketdata::MDMInterface::connect |
( |
const std::string & |
subKey, |
|
|
AP_MDM_StreamType |
streamType, |
|
|
map_t & |
ctrlParams |
|
) |
| |
|
pure virtual |
Connect Callback
This is called when a new subscription has been identified by the Market Data library and the adapter should subscribe to the external source for the symbol contained in the subKey. If successful setConnectSuccess() should called, else setConnectFailed().
- Parameters
-
subKey | The unique subscription key for this connection generated by a call to getKey. |
streamType | The data stream type this connection is for. |
ctrlParams | The control parameters for this connection. |
virtual void com::softwareag::marketdata::MDMInterface::disconnect |
( |
const std::string & |
subKey, |
|
|
AP_MDM_StreamType |
streamType, |
|
|
map_t & |
ctrlParams |
|
) |
| |
|
pure virtual |
Disconnect Callback
This is called when the last unsubscription for a symbol has been identified by the Market Data library and the adapter should unsubscribe from the external source for the symbol contained in the subKey. If successful setDisconnectSuccess() should called, else setDisconnectFailed().
- Parameters
-
subKey | The unique subscription key for this disconnection. |
streamType | The data stream type this disconnection is for. |
ctrlParams | The control parameters for this disconnection. |
virtual const char* com::softwareag::marketdata::MDMInterface::getKey |
( |
const std::string & |
symbol, |
|
|
int64_t |
sourceId, |
|
|
AP_MDM_StreamType |
streamType, |
|
|
map_t & |
ctrlParams |
|
) |
| |
|
pure virtual |
Subscription Key Generation Callback
This is called when any subscription is received and the adapter should generate a subscription key. It is used to detect duplicate subscriptions. The basic structure of the key should be:-
"symbol:streamType:sourceId:controlparam1=val1;controlParam2=val2;...:"
- Parameters
-
symbol | The symbol this subscription is for. |
sourceId | The source Id this subscription is for. |
streamType | The data stream type this subscription is for. |
ctrlParams | The control parameters for this subscription. |
- Returns
- The generated subscription key.
virtual void com::softwareag::marketdata::MDMInterface::setMarketDataSession |
( |
MarketDataSession * |
mdSession | ) |
|
|
pure virtual |
setMarketDataSession Callback
This is called after initialization of MarketDataManager. Through MarketDataSession object users can perform connect/disconnect operations.
- Parameters
-
The documentation for this class was generated from the following file: