EPAM B2BITS CME MDP Handler C++  5.4.2
Public Member Functions | Protected Member Functions | List of all members
Cme::Mdp::MarketDataService Class Referenceabstract

#include <B2BITS_CmeMdpMarketDataService.h>

Public Member Functions

virtual std::string getName () const =0
 
virtual const MarketDataServiceOptionsgetOptions () const =0
 
virtual bool opened () const =0
 
virtual void open ()=0
 
virtual void close ()=0
 Finalizes market data service. More...
 
virtual ChannelgetChannel (ChannelID id)=0
 
virtual void getChannels (ChannelVector *channelVector)=0
 
virtual ChannelfindChannel (ChannelID id)=0
 
virtual ChanneladdChannel (ChannelID id, const ChannelOptions &options)=0
 
virtual void removeChannel (ChannelID id)=0
 
virtual void removeChannels ()=0
 Removes all channels from the market data service. More...
 
virtual void destroy ()=0
 

Protected Member Functions

virtual ~MarketDataService ()
 

Detailed Description

Market Data Service. MarketDataService is the root object to access CME market data. MarketDataService object maintains a collection of channels.

Constructor & Destructor Documentation

virtual Cme::Mdp::MarketDataService::~MarketDataService ( )
inlineprotectedvirtual

Member Function Documentation

virtual Channel* Cme::Mdp::MarketDataService::addChannel ( ChannelID  id,
const ChannelOptions options 
)
pure virtual

Adds a new channel to the market data service.

Parameters
idId of the channel to add.
optionsOptions of the channel to add.
Returns
Reference to the channel added.
Exceptions
Generatesexception 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.
virtual Channel* Cme::Mdp::MarketDataService::findChannel ( ChannelID  id)
pure virtual

Finds channel by channel id.

Parameters
idId of the channel to return.
Returns
Reference to the channel. Returns null if the channel doesn't exist.
virtual Channel* Cme::Mdp::MarketDataService::getChannel ( ChannelID  id)
pure virtual

Returns channel by channel id.

Parameters
idId of the channel to return.
Returns
Reference to the channel.
Exceptions
Generatesexception 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
channelVectorVector 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.
virtual const MarketDataServiceOptions& Cme::Mdp::MarketDataService::getOptions ( ) const
pure virtual

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
idId of the channel to remove.
virtual void Cme::Mdp::MarketDataService::removeChannels ( )
pure virtual

Removes all channels from the market data service.