B2BITS FIX Antenna C++  2.27.0
Public Member Functions | Protected Member Functions | List of all members
Micex::Mfix::MDApplicationListener Class Referenceabstract

Represents micex mfix application listener. More...

#include <B2BITS_MicexMfixListeners.h>

+ Inheritance diagram for Micex::Mfix::MDApplicationListener:
+ Collaboration diagram for Micex::Mfix::MDApplicationListener:

Public Member Functions

virtual void onCompleteMessageProcessing (const std::string &channel_id, MfixFeedType feed_type)=0
 Called after any message is processed. More...
 
virtual void onError (const std::string &error)=0
 Called on errors in micex mfix application. More...
 
virtual void onFeedReset (const std::string &channel_id, MfixFeedType feed_type)=0
 Called on reset for feed (X-message was received with entry 269=J) More...
 
virtual void onHeartbeat (const std::string &channel_id, MfixFeedType feed_type)=0
 Called on heartbeat messages. More...
 
virtual void onProcess (const Engine::FIXMessage &msg, const std::string &channel_id)=0
 Called on non X, d and W messages. More...
 
virtual void onTCPReplayStarted (const std::string &channel_id, MfixFeedType feed_type)=0
 Fired when TCP-replay is started. More...
 
virtual void onTCPReplayStopped (const std::string &channel_id, MfixFeedType feed_type)=0
 Fired when TCP-replay is ended. More...
 
- Public Member Functions inherited from Utils::ReferenceCounter
virtual bool addRef () const throw ()
 Increments reference counter. More...
 
virtual long getNRef () const throw ()
 Returns the current value of the reference counter. More...
 
 ReferenceCounter () throw ()
 Constructor. More...
 
virtual long release () const throw ()
 Decrements reference counter. More...
 

Protected Member Functions

virtual ~MDApplicationListener ()
 
- Protected Member Functions inherited from Utils::ReferenceCounter
long decrement () const throw ()
 Decrements counter and returns new counter value. More...
 
long increment () const throw ()
 Increments counter and returns new counter value. More...
 
virtual ~ReferenceCounter ()
 Destructor. More...
 

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 Utils::RefCounterPtr). Object must be created via "new" keyword only.

Constructor & Destructor Documentation

◆ ~MDApplicationListener()

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

Member Function Documentation

◆ onCompleteMessageProcessing()

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

◆ onError()

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

◆ onFeedReset()

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

◆ onHeartbeat()

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

◆ onProcess()

virtual void Micex::Mfix::MDApplicationListener::onProcess ( const Engine::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

◆ onTCPReplayStarted()

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

◆ onTCPReplayStopped()

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