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

Represents Bovespa application listener. More...

#include <B2BITS_BovespaApplicationListeners.h>

+ Inheritance diagram for Bovespa::BovespaApplicationListener:
+ Collaboration diagram for Bovespa::BovespaApplicationListener:

Public Member Functions

virtual void onCompleteMessageProcessing ()
 Called after any message is processed. More...
 
virtual void onConnectToFeed (std::string const &feedId)
 Called after reader was connected to feed. More...
 
virtual void onDisconnectFromFeed (std::string const &feedId)
 Called after reader was disconnected from feed. More...
 
virtual void onError (std::string const &error)=0
 Called on errors in MDApplication. More...
 
virtual void process (Engine::FIXMessage const &msg, std::string const &channel_id)
 Called on non X, d and W messages. 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...
 
- Public Member Functions inherited from Bovespa::BovespaThreadManager
 BovespaThreadManager ()
 
virtual void onStartThread (ThreadType threadType, size_t threadIndex)
 Called on initislization of each processing thread into it's context. More...
 
virtual void onStopThread (ThreadType threadType, size_t threadIndex)
 
virtual ~BovespaThreadManager ()
 

Protected Member Functions

virtual ~BovespaApplicationListener ()
 
- 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...
 

Additional Inherited Members

- Public Types inherited from Bovespa::BovespaThreadManager
enum  ThreadType { MDThread, IncrementalThread, TCPReplayThread, AdditionalThread }
 

Detailed Description

Represents Bovespa application listener.

Note
Objects of this class do not put to the std::auto_ptr or other smart pointers (except specialized, example Utils::RefCounterPtr)

Constructor & Destructor Documentation

◆ ~BovespaApplicationListener()

virtual Bovespa::BovespaApplicationListener::~BovespaApplicationListener ( )
inlineprotectedvirtual

Member Function Documentation

◆ onCompleteMessageProcessing()

virtual void Bovespa::BovespaApplicationListener::onCompleteMessageProcessing ( )
inlinevirtual

Called after any message is processed.

◆ onConnectToFeed()

virtual void Bovespa::BovespaApplicationListener::onConnectToFeed ( std::string const &  feedId)
inlinevirtual

Called after reader was connected to feed.

Note
This function can be called from different thread, so used should make it thread-safe in implementation
Parameters
feedId- feed ID (channel_id%:connection_id%)

◆ onDisconnectFromFeed()

virtual void Bovespa::BovespaApplicationListener::onDisconnectFromFeed ( std::string const &  feedId)
inlinevirtual

Called after reader was disconnected from feed.

Note
This function can be called from different thread, so used should make it thread-safe in implementation
Parameters
feedId- feed ID (channel_id%:connection_id%)

◆ onError()

virtual void Bovespa::BovespaApplicationListener::onError ( std::string const &  error)
pure virtual

Called on errors in MDApplication.

Note
This function can be called from different thread, so used should make it thread-safe in implementation
Parameters
errorerror message

◆ process()

virtual void Bovespa::BovespaApplicationListener::process ( Engine::FIXMessage const &  msg,
std::string const &  channel_id 
)
inlinevirtual

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