EPAM B2BITS C++ MOEX/Asts 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
Micex::Mfix::MDApplicationListener Class Referenceabstract

#include <B2BITS_MicexMfixListeners.h>

Inheritance diagram for Micex::Mfix::MDApplicationListener:
Inheritance graph
[legend]
Collaboration diagram for Micex::Mfix::MDApplicationListener:
Collaboration graph
[legend]

Public Member Functions

virtual void onError (const std::string &error)=0
 
virtual void onProcess (const MD::FIXMessage &msg, const std::string &channel_id)=0
 
virtual void onFeedReset (const std::string &channel_id, MfixFeedType feed_type)=0
 
virtual void onHeartbeat (const std::string &channel_id, MfixFeedType feed_type)=0
 
virtual void onTCPReplayStarted (const std::string &channel_id, MfixFeedType feed_type)=0
 
virtual void onTCPReplayStopped (const std::string &channel_id, MfixFeedType feed_type)=0
 
virtual void onCompleteMessageProcessing (const std::string &channel_id, MfixFeedType feed_type)=0
 
- Public Member Functions inherited from Micex::Mfix::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 ()
 

Protected Member Functions

virtual ~MDApplicationListener ()
 

Detailed Description

Represents micex mfix application listener

Note
Objects of this class do not put to the std::auto_ptr or other smart pointers (except specialized, example RefCounterPtr). Object must be created via "new" keyword only.

Constructor & Destructor Documentation

virtual Micex::Mfix::MDApplicationListener::~MDApplicationListener ( )
inlineprotectedvirtual

Member Function Documentation

virtual void Micex::Mfix::MDApplicationListener::onCompleteMessageProcessing ( const std::string &  channel_id,
MfixFeedType  feed_type 
)
pure virtual

Called after any message is processed

Parameters
channel_idchannel id
feed_typetype of the feed
virtual void Micex::Mfix::MDApplicationListener::onError ( const std::string &  error)
pure virtual

Called on errors in micex mfix application

Note
This function can be called from different thread, so used should make it thread-safe in implementation
Parameters
errorerror message
virtual void Micex::Mfix::MDApplicationListener::onFeedReset ( const std::string &  channel_id,
MfixFeedType  feed_type 
)
pure virtual

Called on reset for feed (X-message was received with entry 269=J)

Parameters
channel_idchannel id
feed_typetype of the feed
virtual void Micex::Mfix::MDApplicationListener::onHeartbeat ( const std::string &  channel_id,
MfixFeedType  feed_type 
)
pure virtual

Called on heartbeat messages

Parameters
channel_idchannel id
feed_typetype of the feed
virtual void Micex::Mfix::MDApplicationListener::onProcess ( const MD::FIXMessage msg,
const std::string &  channel_id 
)
pure virtual

Called on non X, d and W messages

Note
This function can be called from different thread, so used should make it thread-safe in implementation
Parameters
msgmessage
virtual void Micex::Mfix::MDApplicationListener::onTCPReplayStarted ( const std::string &  channel_id,
MfixFeedType  feed_type 
)
pure virtual

Fired when TCP-replay is started

Parameters
channel_idchannel id
feed_typetype of the feed
virtual void Micex::Mfix::MDApplicationListener::onTCPReplayStopped ( const std::string &  channel_id,
MfixFeedType  feed_type 
)
pure virtual

Fired when TCP-replay is ended

Parameters
channel_idchannel id
feed_typetype of the feed