B2BITS FIX Antenna C++  2.27.0
Public Member Functions | Protected Member Functions | List of all members
Spectra::SpectraApplication Class Referenceabstract

Represents RTS SPECTRA application. More...

#include <B2BITS_SpectraApplication.h>

Public Member Functions

void getAllInstrumentsOnChannel (SpectraDataChannel const &channel_id, SecurityDefinitionListener *listener)
 Subscribes to instrument replay channel by channel ID. More...
 
virtual SpectraApplicationListenergetListener () const =0
 Returns listener assigned to application. More...
 
virtual void join ()=0
 Waits until application is stopped. More...
 
virtual bool join (unsigned int timeout)=0
 Waits until application is stopped or timeout accured. More...
 
virtual Engine::FIXMessageparseFixMessage (std::string const &fixMessage) const =0
 parce string representation of FIX message into Engine::FIXMessage class param fixMessage -string representation of FIX message More...
 
virtual void release ()=0
 Releases resources assigned to application. More...
 
void resolveInstrumentBySecDesc (SecurityDesc const &secDesc, SecurityDefinitionListener *listener, SpectraDataChannel const &channel_id)
 Subscribes to instrument replay by security description in channel defined by channel_id. More...
 
void resolveInstrumentBySecID (SecurityID const &secID, SecurityDefinitionListener *listener, SpectraDataChannel const &channel_id)
 Subscribes to instrument replay by security ID in channel defined by channel_id. More...
 
virtual void resolveInstrumentBySpecialTag (int tag, std::string const &value, SecurityDefinitionListener *listener, SpectraDataChannel const &channelId)=0
 Subscribes to instrument replay by string representation of special tag value in channel defined by channel_id. More...
 
void resolveInstrumentBySymbol (Symbol const &symbol, SecurityDefinitionListener *listener, SpectraDataChannel const &channel_id)
 Subscribes to instrument replay by symbol in channel defined by channel_id. More...
 
virtual void resolveInstrumentByTag (int tag, std::string const &value, SecurityDefinitionListener *listener, SpectraDataChannel const &channelId)=0
 Subscribes to instrument replay by string representation of tag value in channel defined by channel_id. More...
 
virtual void stop ()=0
 Stops application. More...
 
virtual void stopAllListeners ()=0
 Unsubscribe all listeners from instrument replay. More...
 
void stopChannelListener (SpectraDataChannel const &channel_id, SecurityDefinitionListener *listener)
 Unsubscribe ftom instrument replay by channel id. More...
 
virtual void stopResolvingBySpecialTag (int tag, std::string const &value, SecurityDefinitionListener *listener, SpectraDataChannel const &channelId)=0
 Unsubscribe from instrument replay by symbol by string representation of tag value in channel defined by channel_id. More...
 
virtual void stopResolvingByTag (int tag, std::string const &value, SecurityDefinitionListener *listener, SpectraDataChannel const &channelId)=0
 Unsubscribe from instrument replay by symbol by string representation of tag value in channel defined by channel_id. More...
 
void stopSecDescListener (SpectraDataChannel const &channel_id, SecurityDesc const &secDesc, SecurityDefinitionListener *listener)
 Unsubscribe from instrument replay by security description. More...
 
void stopSecIDListener (SpectraDataChannel const &channel_id, SecurityID const &secID, SecurityDefinitionListener *listener)
 Unsubscribe from instrument replay by security ID. More...
 
void stopSymbolListener (SpectraDataChannel const &channel_id, Symbol const &symbol, SecurityDefinitionListener *listener)
 Unsubscribe from instrument replay by symbol. More...
 
virtual void subscribeToFeed (FeedListener *feedListener, SpectraDataFeed const &feedID)=0
 subscribe to all messages on specified by feedId feed More...
 
virtual void subscribeToInstrument (SpectraSubscriptionItem const &subscription, InstrumentListener *listener)=0
 Subscribes to market data for instrument. More...
 
virtual void unsubscribeAllInstruments ()=0
 Unsubscribe from all instruments. More...
 
virtual void unsubscribeFromAllFeeds ()=0
 unsubscribe from all feeds More...
 
virtual void unsubscribeFromFeed (SpectraDataFeed const &feedID)=0
 unsubscribe from specified by feedId feed More...
 
virtual void unsubscribeFromInstrument (SpectraSubscriptionItem const &subscription)=0
 Unsubscribes from instrument. More...
 

Protected Member Functions

virtual ~SpectraApplication (void)
 

Detailed Description

Represents RTS SPECTRA application.

Constructor & Destructor Documentation

◆ ~SpectraApplication()

virtual Spectra::SpectraApplication::~SpectraApplication ( void  )
inlineprotectedvirtual

Member Function Documentation

◆ getAllInstrumentsOnChannel()

void Spectra::SpectraApplication::getAllInstrumentsOnChannel ( SpectraDataChannel const &  channel_id,
SecurityDefinitionListener listener 
)
inline

Subscribes to instrument replay channel by channel ID.

Note
set channelId = "" for resolving on all channels

References Spectra::SpectraDataChannel::empty(), Spectra::ST_ALLCHANNELS, Spectra::ST_CHANNELID, and Spectra::SpectraDataChannel::string_repr().

◆ getListener()

virtual SpectraApplicationListener* Spectra::SpectraApplication::getListener ( ) const
pure virtual

Returns listener assigned to application.

◆ join() [1/2]

virtual void Spectra::SpectraApplication::join ( )
pure virtual

Waits until application is stopped.

◆ join() [2/2]

virtual bool Spectra::SpectraApplication::join ( unsigned int  timeout)
pure virtual

Waits until application is stopped or timeout accured.

return true, if application was stopped

◆ parseFixMessage()

virtual Engine::FIXMessage* Spectra::SpectraApplication::parseFixMessage ( std::string const &  fixMessage) const
pure virtual

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

◆ release()

virtual void Spectra::SpectraApplication::release ( )
pure virtual

Releases resources assigned to application.

◆ resolveInstrumentBySecDesc()

void Spectra::SpectraApplication::resolveInstrumentBySecDesc ( SecurityDesc const &  secDesc,
SecurityDefinitionListener listener,
SpectraDataChannel 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

References FIXFields::SecurityDesc.

◆ resolveInstrumentBySecID()

void Spectra::SpectraApplication::resolveInstrumentBySecID ( SecurityID const &  secID,
SecurityDefinitionListener listener,
SpectraDataChannel 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

References FIXFields::SecurityID.

◆ resolveInstrumentBySpecialTag()

virtual void Spectra::SpectraApplication::resolveInstrumentBySpecialTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
SpectraDataChannel 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

◆ resolveInstrumentBySymbol()

void Spectra::SpectraApplication::resolveInstrumentBySymbol ( Symbol const &  symbol,
SecurityDefinitionListener listener,
SpectraDataChannel const &  channel_id 
)
inline

Subscribes to instrument replay by symbol in channel defined by channel_id.

Note
set channelId = "" for resolving on all channels

References FIXFields::Symbol.

◆ resolveInstrumentByTag()

virtual void Spectra::SpectraApplication::resolveInstrumentByTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
SpectraDataChannel 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

◆ stop()

virtual void Spectra::SpectraApplication::stop ( )
pure virtual

Stops application.

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

◆ stopAllListeners()

virtual void Spectra::SpectraApplication::stopAllListeners ( )
pure virtual

Unsubscribe all listeners from instrument replay.

◆ stopChannelListener()

void Spectra::SpectraApplication::stopChannelListener ( SpectraDataChannel const &  channel_id,
SecurityDefinitionListener listener 
)
inline

Unsubscribe ftom instrument replay by channel id.

References Spectra::ST_CHANNELID.

◆ stopResolvingBySpecialTag()

virtual void Spectra::SpectraApplication::stopResolvingBySpecialTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
SpectraDataChannel const &  channelId 
)
pure virtual

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

Note
set channelId = "" for stop resolving on all channels

◆ stopResolvingByTag()

virtual void Spectra::SpectraApplication::stopResolvingByTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
SpectraDataChannel const &  channelId 
)
pure virtual

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

Note
set channelId = "" for stop resolving on all channels

◆ stopSecDescListener()

void Spectra::SpectraApplication::stopSecDescListener ( SpectraDataChannel const &  channel_id,
SecurityDesc const &  secDesc,
SecurityDefinitionListener listener 
)
inline

Unsubscribe from instrument replay by security description.

References FIXFields::SecurityDesc.

◆ stopSecIDListener()

void Spectra::SpectraApplication::stopSecIDListener ( SpectraDataChannel const &  channel_id,
SecurityID const &  secID,
SecurityDefinitionListener listener 
)
inline

Unsubscribe from instrument replay by security ID.

References FIXFields::SecurityID.

◆ stopSymbolListener()

void Spectra::SpectraApplication::stopSymbolListener ( SpectraDataChannel const &  channel_id,
Symbol const &  symbol,
SecurityDefinitionListener listener 
)
inline

Unsubscribe from instrument replay by symbol.

References FIXFields::Symbol.

◆ subscribeToFeed()

virtual void Spectra::SpectraApplication::subscribeToFeed ( FeedListener feedListener,
SpectraDataFeed 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

◆ subscribeToInstrument()

virtual void Spectra::SpectraApplication::subscribeToInstrument ( SpectraSubscriptionItem const &  subscription,
InstrumentListener listener 
)
pure virtual

Subscribes to market data for instrument.

◆ unsubscribeAllInstruments()

virtual void Spectra::SpectraApplication::unsubscribeAllInstruments ( )
pure virtual

Unsubscribe from all instruments.

◆ unsubscribeFromAllFeeds()

virtual void Spectra::SpectraApplication::unsubscribeFromAllFeeds ( )
pure virtual

unsubscribe from all feeds

◆ unsubscribeFromFeed()

virtual void Spectra::SpectraApplication::unsubscribeFromFeed ( SpectraDataFeed const &  feedID)
pure virtual

unsubscribe from specified by feedId feed

◆ unsubscribeFromInstrument()

virtual void Spectra::SpectraApplication::unsubscribeFromInstrument ( SpectraSubscriptionItem const &  subscription)
pure virtual

Unsubscribes from instrument.