EPAM B2BITS C++ Bovespa MarketData handler  1.28.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | List of all members
Bovespa::BovespaApplication Class Referenceabstract

Represents Bovespa application. More...

#include <B2BITS_BovespaApplication.h>

Public Member Functions

virtual void stop ()=0
 
virtual void join ()=0
 Waits until application is stopped. More...
 
virtual bool join (unsigned int timeout)=0
 
virtual void release ()=0
 Releases resources assigned to application. More...
 
virtual void subscribeToInstrument (BovespaSubscriptionItem const &subscription, InstrumentListener *listener)=0
 Subscribes to market data for instrument. More...
 
virtual void unsubscribeFromInstrument (BovespaSubscriptionItem const &subscription)=0
 Unsubscribes from instrument. More...
 
virtual void unsubscribeAllInstruments ()=0
 Unsubscribe from all instruments. More...
 
virtual void resolveInstrumentByTag (int tag, std::string const &value, SecurityDefinitionListener *listener, std::string const &channelId="")=0
 
virtual void resolveInstrumentBySpecialTag (int tag, std::string const &value, SecurityDefinitionListener *listener, std::string const &channelId="")=0
 
virtual void stopResolvingByTag (int tag, std::string const &value, SecurityDefinitionListener *listener, std::string const &channelId="")=0
 
virtual void stopResolvingBySpecialTag (int tag, std::string const &value, SecurityDefinitionListener *listener, std::string const &channelId="")=0
 
void resolveInstrumentBySymbol (Symbol const &symbol, SecurityDefinitionListener *listener, std::string const &channel_id="")
 
void resolveInstrumentBySecDesc (SecurityDesc const &secDesc, SecurityDefinitionListener *listener, std::string const &channel_id="")
 
void resolveInstrumentBySecID (std::string const &secID, SecurityDefinitionListener *listener, std::string const &channel_id="")
 
void resolveInstrumentBySecurityGroup (std::string const &secGroup, SecurityDefinitionListener *listener, std::string const &channel_id="")
 
void getAllInstrumentsOnChannel (std::string const &channel_id, SecurityDefinitionListener *listener)
 
void stopSymbolListener (Symbol const &symbol, SecurityDefinitionListener *listener)
 Unsubscribe from instrument replay by symbol. More...
 
void stopSecDescListener (SecurityDesc const &secDesc, SecurityDefinitionListener *listener)
 Unsubscribe from instrument replay by security description. More...
 
void stopSecIDListener (std::string const &secID, SecurityDefinitionListener *listener)
 Unsubscribe from instrument replay by security ID. More...
 
void stopSecGroupListener (std::string const &secGroup, SecurityDefinitionListener *listener)
 Unsubscribe from instrument replay by security group. More...
 
void stopChannelListener (std::string const &channel_id, SecurityDefinitionListener *listener)
 Unsubscribe ftom instrument replay by channel id. More...
 
virtual void stopAllListeners ()=0
 Unsubscribe all listeners from instrument replay. More...
 
virtual void subscribeToFeed (FeedListener *feedListener, std::string const &feedID)=0
 
void subscribeToIncrementalFeed (FeedListener *feedListener, std::string const &channel_id=0)
 
virtual void unsubscribeFromFeed (std::string const &feedID)=0
 unsubscribe from specified by feedId feed More...
 
virtual void unsubscribeFromIncrementalFeed (std::string const &channel_id)
 
virtual void unsubscribeFromAllFeeds ()=0
 unsubscribe from all feeds More...
 
virtual
BovespaApplicationListener
getListener () const =0
 Returns listener assigned to application. More...
 
virtual BovespaChannels getUsingChannels () const =0
 Get list of using channels in application. More...
 
virtual B2bits::MD::FIXMessageparseFixMessage (std::string const &fixMessage) const =0
 

Protected Member Functions

virtual ~BovespaApplication (void)
 

Detailed Description

Represents Bovespa application.

Constructor & Destructor Documentation

virtual Bovespa::BovespaApplication::~BovespaApplication ( void  )
inlineprotectedvirtual

Member Function Documentation

void Bovespa::BovespaApplication::getAllInstrumentsOnChannel ( std::string const &  channel_id,
SecurityDefinitionListener listener 
)
inline

Subscribes to instrument replay channel by channel ID

Note
set channelId = "" for resolving on all channels
virtual BovespaApplicationListener* Bovespa::BovespaApplication::getListener ( ) const
pure virtual

Returns listener assigned to application.

virtual BovespaChannels Bovespa::BovespaApplication::getUsingChannels ( ) const
pure virtual

Get list of using channels in application.

virtual void Bovespa::BovespaApplication::join ( )
pure virtual

Waits until application is stopped.

virtual bool Bovespa::BovespaApplication::join ( unsigned int  timeout)
pure virtual

Waits until application is stopped or timeout accured. return true, if application was stopped

virtual B2bits::MD::FIXMessage* Bovespa::BovespaApplication::parseFixMessage ( std::string const &  fixMessage) const
pure virtual

parce string representation of FIX message into FIXMessage class param fixMessage -string representation of FIX message

virtual void Bovespa::BovespaApplication::release ( )
pure virtual

Releases resources assigned to application.

void Bovespa::BovespaApplication::resolveInstrumentBySecDesc ( SecurityDesc const &  secDesc,
SecurityDefinitionListener listener,
std::string const &  channel_id = "" 
)
inline

Subscribes to instrument replay by security description in channel defined by channel_id

Note
set channelId = "" for resolving on all channels
void Bovespa::BovespaApplication::resolveInstrumentBySecID ( std::string const &  secID,
SecurityDefinitionListener listener,
std::string const &  channel_id = "" 
)
inline

Subscribes to instrument replay by security ID in channel defined by channel_id

Note
set channelId = "" for resolving on all channels
void Bovespa::BovespaApplication::resolveInstrumentBySecurityGroup ( std::string const &  secGroup,
SecurityDefinitionListener listener,
std::string const &  channel_id = "" 
)
inline

Subscribes to instrument replay by security group in channel defined by channel_id

Note
set channelId = "" for resolving on all channels
virtual void Bovespa::BovespaApplication::resolveInstrumentBySpecialTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
std::string const &  channelId = "" 
)
pure virtual

Subscribes to instrument replay by string representation of special tag value in channel defined by channel_id

Note
set channelId = "" for resolving on all channels
void Bovespa::BovespaApplication::resolveInstrumentBySymbol ( Symbol const &  symbol,
SecurityDefinitionListener listener,
std::string const &  channel_id = "" 
)
inline

Subscribes to instrument replay by symbol in channel defined by channel_id

Note
set channelId = "" for resolving on all channels
virtual void Bovespa::BovespaApplication::resolveInstrumentByTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
std::string const &  channelId = "" 
)
pure virtual

Subscribes to instrument replay by string representation of tag value in channel defined by channel_id

Note
set channelId = "" for resolving on all channels
virtual void Bovespa::BovespaApplication::stop ( )
pure virtual

Stops application. Method does not stop application immediately. Use join method to wait until will stop.

virtual void Bovespa::BovespaApplication::stopAllListeners ( )
pure virtual

Unsubscribe all listeners from instrument replay.

void Bovespa::BovespaApplication::stopChannelListener ( std::string const &  channel_id,
SecurityDefinitionListener listener 
)
inline

Unsubscribe ftom instrument replay by channel id.

virtual void Bovespa::BovespaApplication::stopResolvingBySpecialTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
std::string const &  channelId = "" 
)
pure virtual

Unsubscribe from instrument replay by string representation of special tag value in channel defined by channel_id

Note
set channelId = "" for stop resolving on all channels
virtual void Bovespa::BovespaApplication::stopResolvingByTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
std::string const &  channelId = "" 
)
pure virtual

Unsubscribe from instrument replay by string representation of tag value in channel defined by channel_id

Note
set channelId = "" for stop resolving on all channels
void Bovespa::BovespaApplication::stopSecDescListener ( SecurityDesc const &  secDesc,
SecurityDefinitionListener listener 
)
inline

Unsubscribe from instrument replay by security description.

void Bovespa::BovespaApplication::stopSecGroupListener ( std::string const &  secGroup,
SecurityDefinitionListener listener 
)
inline

Unsubscribe from instrument replay by security group.

void Bovespa::BovespaApplication::stopSecIDListener ( std::string const &  secID,
SecurityDefinitionListener listener 
)
inline

Unsubscribe from instrument replay by security ID.

void Bovespa::BovespaApplication::stopSymbolListener ( Symbol const &  symbol,
SecurityDefinitionListener listener 
)
inline

Unsubscribe from instrument replay by symbol.

virtual void Bovespa::BovespaApplication::subscribeToFeed ( FeedListener feedListener,
std::string const &  feedID 
)
pure virtual

subscribe to all messages on specified by feedId feed

Note
tcp recovery feed is not supported for subscription, but you can enable TCP recovery for incremental feeds to recovery missed messegs
void Bovespa::BovespaApplication::subscribeToIncrementalFeed ( FeedListener feedListener,
std::string const &  channel_id = 0 
)
inline

subscribe to all messages on specified from incremental feed on specified by channel_id

Note
tcp recovery feed is not supported for subscription
set channel_id = "", to subscribe to all incrementall feeds
onSubscribe and onUnsubscribe method will be called for each channel
you can enable TCP recovery for incremental feeds to recovery missed messegs
virtual void Bovespa::BovespaApplication::subscribeToInstrument ( BovespaSubscriptionItem const &  subscription,
InstrumentListener listener 
)
pure virtual

Subscribes to market data for instrument.

virtual void Bovespa::BovespaApplication::unsubscribeAllInstruments ( )
pure virtual

Unsubscribe from all instruments.

virtual void Bovespa::BovespaApplication::unsubscribeFromAllFeeds ( )
pure virtual

unsubscribe from all feeds

virtual void Bovespa::BovespaApplication::unsubscribeFromFeed ( std::string const &  feedID)
pure virtual

unsubscribe from specified by feedId feed

virtual void Bovespa::BovespaApplication::unsubscribeFromIncrementalFeed ( std::string const &  channel_id)
inlinevirtual

unsubscribe from specified by channelId incremental feed

Note
set channel_id = "", to subscribe to all incrementall feeds
virtual void Bovespa::BovespaApplication::unsubscribeFromInstrument ( BovespaSubscriptionItem const &  subscription)
pure virtual

Unsubscribes from instrument.