EPAM B2BITS C++ MOEX/Spectra MarketData handler  1.24.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | List of all members
Spectra::SpectraApplicationListener Class Referenceabstract

#include <B2BITS_SpectraApplicationListeners.h>

Inheritance diagram for Spectra::SpectraApplicationListener:
Inheritance graph
[legend]
Collaboration diagram for Spectra::SpectraApplicationListener:
Collaboration graph
[legend]

Public Member Functions

virtual void onError (std::string const &error)=0
 
virtual void process (B2bits::MD::FIXMessage const &msg, SpectraDataChannel const &channel_id)=0
 
virtual void onConnectToFeed (std::string const &feedId)=0
 
virtual void onDisconnectFromFeed (std::string const &feedId)=0
 
virtual void onCompleteMessageProcessing ()=0
 Called after any message is processed. More...
 
- Public Member Functions inherited from Spectra::ReferenceCounterBase
 ReferenceCounterBase ()
 
virtual ~ReferenceCounterBase ()
 
- Public Member Functions inherited from B2bits::ReferenceCounter< ReferenceCounterBase >
 ReferenceCounter () noexcept
 
 ReferenceCounter (ReferenceCounter const &) noexcept
 
ReferenceCounteroperator= (ReferenceCounter const &) noexcept
 
void addRef () const noexcept
 
void release () const noexcept
 
u32 useCount () const noexcept
 
RefCounterPtr
< ReferenceCounterBase > 
shared_from_this ()
 
- Public Member Functions inherited from Spectra::SpectraThreadManager
virtual void onStartThread (ThreadType threadType, size_t threadIndex)
 
virtual void onStopThread (ThreadType threadType, size_t threadIndex)
 
 SpectraThreadManager ()
 
virtual ~SpectraThreadManager ()
 

Protected Member Functions

virtual ~SpectraApplicationListener ()
 

Additional Inherited Members

- Public Types inherited from Spectra::SpectraThreadManager
enum  ThreadType { MDThread, IncrementalThread, TCPReplayThread }
 

Detailed Description

Represents RTS SPECTRA application listener

Note
Objects of this class are not put to the std::auto_ptr or other smart pointers (except specialized, e.g.: RefCounterPtr)

Constructor & Destructor Documentation

virtual Spectra::SpectraApplicationListener::~SpectraApplicationListener ( )
inlineprotectedvirtual

Member Function Documentation

virtual void Spectra::SpectraApplicationListener::onCompleteMessageProcessing ( )
pure virtual

Called after any message is processed.

virtual void Spectra::SpectraApplicationListener::onConnectToFeed ( std::string const &  feedId)
pure virtual

Called after reader was connected to feed

Note
This function can be called from different thread, so user should make it thread-safe in implementation
Parameters
feedId- feed ID (channel_id%:connection_id%)
virtual void Spectra::SpectraApplicationListener::onDisconnectFromFeed ( std::string const &  feedId)
pure virtual

Called after reader was disconnected from feed

Note
This function can be called from different thread, so user should make it thread-safe in implementation
Parameters
feedId- feed ID (channel_id%:connection_id%)
virtual void Spectra::SpectraApplicationListener::onError ( std::string const &  error)
pure virtual

Called on errors in MDApplication

Note
This function can be called from different thread, so user should make it thread-safe in implementation
Parameters
errorerror message
virtual void Spectra::SpectraApplicationListener::process ( B2bits::MD::FIXMessage const &  msg,
SpectraDataChannel const &  channel_id 
)
pure virtual

Called on non X, d and W messages

Note
This function can be called from different thread, so user should make it thread-safe in implementation
Parameters
msgmessage
channel_idsource channel id