EPAM B2BITS C++ Bovespa MarketData handler  1.28.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | List of all members
Bovespa::BovespaApplicationListener Class Referenceabstract

#include <B2BITS_BovespaApplicationListeners.h>

Inheritance diagram for Bovespa::BovespaApplicationListener:
Inheritance graph
[legend]
Collaboration diagram for Bovespa::BovespaApplicationListener:
Collaboration graph
[legend]

Public Member Functions

virtual void onError (std::string const &error)=0
 
virtual void process (B2bits::MD::FIXMessage const &msg, std::string const &channel_id)
 
virtual void onConnectToFeed (std::string const &feedId)
 
virtual void onDisconnectFromFeed (std::string const &feedId)
 
- Public Member Functions inherited from B2bits::ReferenceCounter< Derived, CtrType >
 ReferenceCounter () noexcept
 
 ReferenceCounter (ReferenceCounter const &) noexcept
 
ReferenceCounteroperator= (ReferenceCounter const &) noexcept
 
void addRef () const noexcept
 
void release () const noexcept
 
u32 useCount () const noexcept
 
RefCounterPtr< Derived > shared_from_this ()
 
- Public Member Functions inherited from Bovespa::BovespaThreadManager
virtual void onStartThread (ThreadType threadType, size_t threadIndex)
 
virtual void onStopThread (ThreadType threadType, size_t threadIndex)
 
 BovespaThreadManager ()
 
virtual ~BovespaThreadManager ()
 

Protected Member Functions

virtual ~BovespaApplicationListener ()
 

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

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

Member Function Documentation

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%)
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%)
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
virtual void Bovespa::BovespaApplicationListener::process ( B2bits::MD::FIXMessage const &  msg,
std::string const &  channel_id 
)
inlinevirtual

Called on non X, y and W messages from inscremental and snapshot feeds. y messages from instrument feeds are not forwarded by default, see BovespaApplicationParams::forwardInstrumentFeedsToAppListener_

Note
This function can be called from different thread, so used should make it thread-safe in implementation
Parameters
msgmessage
channel_idBovespa market data channel identifier