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::InstrumentListener Class Referenceabstract

#include <B2BITS_MicexMfixListeners.h>

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

Public Member Functions

virtual void onSubscribed (const Symbol &symb, const std::string &board, MfixFeedType feed_type)=0
 Fired when successfully subscribed to security description. More...
 
virtual void onUnsubscribed (const Symbol &symb, const std::string &board, MfixFeedType feed_type)=0
 Fired when successfully unsubscribed from security description. More...
 
virtual void onIncrement (const Symbol &symb, const std::string &board, const Increments &msgs, MfixFeedType feed_type)=0
 Fired when user should reset book with the bnew values. More...
 
virtual void onSecurityStatus (const Symbol &symb, const std::string &board, const MD::FIXMessage &msg, MfixFeedType feed_type)=0
 Fired when user should update instrument status. More...
 
virtual bool onNaturalRefresh (const Symbol &symb, const std::string &board, const Increments &nr_msgs, MfixFeedType feed_type)=0
 
virtual void onSnapshot (const Symbol &symb, const std::string &board, const Snapshots &msgs, MfixFeedType feed_type)=0
 Fired when user should reset book with the bnew values. More...
 
virtual void onRecoveryStarted (const Symbol &symb, const std::string &board, MfixFeedType feed_type)=0
 Fired when recovery is started. More...
 
virtual void onRecoveryStopped (const Symbol &symb, const std::string &board, MfixRecoveryReason reason, MfixFeedType feed_type)=0
 Fired when recovery is ended. More...
 
virtual void onError (const Symbol &symb, const std::string &board, const std::string &error, MfixFeedType feed_type)=0
 Fired on error (example: when second subscribing was attempt for the same instrument) More...
 
- Public Member Functions inherited from Micex::Mfix::SecurityDefinitionListener
virtual bool onSecurityDefinition (const SecurityDescription &sec_desc, const SecurityId &sec_id, const Symbol &symb, const std::string &board, const MD::FIXMessage &d_msg, const std::string &channel_id)=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 ~InstrumentListener ()
 
- Protected Member Functions inherited from Micex::Mfix::SecurityDefinitionListener
virtual ~SecurityDefinitionListener ()
 

Detailed Description

instrument listener (observer)

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::InstrumentListener::~InstrumentListener ( )
inlineprotectedvirtual

Member Function Documentation

virtual void Micex::Mfix::InstrumentListener::onError ( const Symbol symb,
const std::string &  board,
const std::string &  error,
MfixFeedType  feed_type 
)
pure virtual

Fired on error (example: when second subscribing was attempt for the same instrument)

virtual void Micex::Mfix::InstrumentListener::onIncrement ( const Symbol symb,
const std::string &  board,
const Increments msgs,
MfixFeedType  feed_type 
)
pure virtual

Fired when user should reset book with the bnew values.

virtual bool Micex::Mfix::InstrumentListener::onNaturalRefresh ( const Symbol symb,
const std::string &  board,
const Increments nr_msgs,
MfixFeedType  feed_type 
)
pure virtual

Fired when user should reset book with the bnew values and Natural Refresh is used return true if book is recovered otherwise false

virtual void Micex::Mfix::InstrumentListener::onRecoveryStarted ( const Symbol symb,
const std::string &  board,
MfixFeedType  feed_type 
)
pure virtual

Fired when recovery is started.

virtual void Micex::Mfix::InstrumentListener::onRecoveryStopped ( const Symbol symb,
const std::string &  board,
MfixRecoveryReason  reason,
MfixFeedType  feed_type 
)
pure virtual

Fired when recovery is ended.

virtual void Micex::Mfix::InstrumentListener::onSecurityStatus ( const Symbol symb,
const std::string &  board,
const MD::FIXMessage msg,
MfixFeedType  feed_type 
)
pure virtual

Fired when user should update instrument status.

virtual void Micex::Mfix::InstrumentListener::onSnapshot ( const Symbol symb,
const std::string &  board,
const Snapshots msgs,
MfixFeedType  feed_type 
)
pure virtual

Fired when user should reset book with the bnew values.

virtual void Micex::Mfix::InstrumentListener::onSubscribed ( const Symbol symb,
const std::string &  board,
MfixFeedType  feed_type 
)
pure virtual

Fired when successfully subscribed to security description.

virtual void Micex::Mfix::InstrumentListener::onUnsubscribed ( const Symbol symb,
const std::string &  board,
MfixFeedType  feed_type 
)
pure virtual

Fired when successfully unsubscribed from security description.