#include <B2BITS_CmeMdpMarketDataService.h>
Market Data Service. MarketDataService is the root object to access CME market data. MarketDataService object maintains a collection of channels.
virtual Cme::Mdp::MarketDataService::~MarketDataService |
( |
| ) |
|
|
inlineprotectedvirtual |
Adds a new channel to the market data service.
- Parameters
-
id | Id of the channel to add. |
options | Options of the channel to add. |
- Returns
- Reference to the channel added.
- Exceptions
-
Generates | exception if the channel already exists. |
virtual void Cme::Mdp::MarketDataService::close |
( |
| ) |
|
|
pure virtual |
Finalizes market data service.
virtual void Cme::Mdp::MarketDataService::destroy |
( |
| ) |
|
|
pure virtual |
Destroys market data service.
- Note
- The instance reference is no longer valid.
Finds channel by channel id.
- Parameters
-
id | Id of the channel to return. |
- Returns
- Reference to the channel. Returns null if the channel doesn't exist.
Returns channel by channel id.
- Parameters
-
id | Id of the channel to return. |
- Returns
- Reference to the channel.
- Exceptions
-
Generates | exception if the channel doesn't exist. |
virtual void Cme::Mdp::MarketDataService::getChannels |
( |
ChannelVector * |
channelVector | ) |
|
|
pure virtual |
Returns all channels of the market data service.
- Parameters
-
channelVector | Vector of channel references to fill. |
virtual std::string Cme::Mdp::MarketDataService::getName |
( |
| ) |
const |
|
pure virtual |
Returns market data service name.
- Returns
- Name of the market data service.
Returns market data service options.
- Returns
- Options of the market data service.
virtual void Cme::Mdp::MarketDataService::open |
( |
| ) |
|
|
pure virtual |
Initializes market data service. Loads channel and template configuration files. Adds channes defined in the channel configuraiton file.
virtual bool Cme::Mdp::MarketDataService::opened |
( |
| ) |
const |
|
pure virtual |
Indicates if the market data service is opened.
- Returns
- True if the market data service is opened.
virtual void Cme::Mdp::MarketDataService::removeChannel |
( |
ChannelID |
id | ) |
|
|
pure virtual |
Removes channel from the market data service.
- Parameters
-
id | Id of the channel to remove. |
virtual void Cme::Mdp::MarketDataService::removeChannels |
( |
| ) |
|
|
pure virtual |
Removes all channels from the market data service.