Defines an interface through which the Handler notifies subscribers about detected updates in order books.
More...
|
virtual void | onOrderBookUpdated (const std::string &symbolName, const OrderBook &book, const MessageInfo &msgInfo)=0 |
| Implement this member to get notified about changes in particular book after all update events processed. More...
|
|
Defines an interface through which the Handler notifies subscribers about detected updates in order books.
Class provides an interface for handling order book updates.
It doesn't provide an interface for instance deletion. However, since C++ doesn't have pure interface concept, destructor will be generated anyway. We can only control proper use of it. For this reason we hide from public use and make it available for descendants.
virtual void onOrderBookUpdated |
( |
const std::string & |
symbolName, |
|
|
const OrderBook & |
book, |
|
|
const MessageInfo & |
msgInfo |
|
) |
| |
|
pure virtual |
Implement this member to get notified about changes in particular book after all update events processed.
- Parameters
-
symbolName | identifiers market for which given book is being maintained. |
book | is a 'up-to-date' book associated with given market. |
msgInfo | is a fields related to incoming message. |