OnixS C++ Eurex T7 Market and Reference Data (EMDI, MDI, RDI, EOBI) Handlers  17.0.1
API documentation
EobiHandler Class Reference

#include <OnixS/Eurex/MarketData/EobiHandler.h>

Public Member Functions

 EobiHandler (const EobiHandlerSettings &settings, const std::string &=ONIXS_EUREX_EMDI_COMPILER_INFO)
 
virtual ~EobiHandler ()
 
EobiHandlerregisterErrorListener (ErrorListener *listener)
 
EobiHandlerregisterWarningListener (WarningListener *listener)
 
EobiHandlerregisterHandlerStateListener (HandlerStateListener *listener)
 
EobiHandlerregisterOrderDataListener (OrderDataListener *listener)
 
EobiHandlerregisterTradeDataListener (TradeDataListener *listener)
 
EobiHandlerregisterStateChangeListener (StateChangeListener *listener)
 
EobiHandlerregisterReferenceDataListener (ReferenceDataListener *listener)
 
EobiHandlerregisterSnapshotListener (SnapshotListener *listener)
 
EobiHandlerregisterMessageListener (MessageListener *listener)
 
EobiHandlerregisterOrderBookListener (OrderBookListener *listener)
 
EobiHandlerregisterPacketListener (PacketListener *listener)
 
EobiHandlersetPartitionIdFilters (const PartitionIdFilters &filters)
 
EobiHandlerremoveAllPartitionIdFilters ()
 
EobiHandlersetMarketSegmentIdFilters (const MarketSegmentIdFilters &filters)
 
EobiHandlerremoveAllMarketSegmentIdFilters ()
 
EobiHandlersetSecurityIdFilters (const SecurityIdFilters &filters)
 
EobiHandlerremoveAllSecurityIdFilters ()
 
EobiHandlerbindFeedEngine (FeedEngine &feedEngine)
 
void start ()
 
void start (const ReplayOptions &options)
 
void stop ()
 
void replayPcap (const ReplayOptions &options)
 
HandlerState::Enum state () const
 
EobiHandlerlog (LogLevel::Enum logLevel, const char *logMessage, size_t length)
 
EobiHandlerlog (LogLevel::Enum logLevel, const char *logMessage)
 
EobiHandlerlog (LogLevel::Enum logLevel, const std::string &str)
 
const char * licenseExpirationDate () const
 

Static Public Member Functions

static const char * version ()
 

Friends

struct Implementation::PcapPeplayHelper
 

Detailed Description

Definition at line 54 of file EobiHandler.h.

Constructor & Destructor Documentation

EobiHandler ( const EobiHandlerSettings settings,
const std::string &  = ONIXS_EUREX_EMDI_COMPILER_INFO 
)
explicit

Performs instance initialization.

Parameters
settingsdefines values for various options which affect handler behavior like enabling logging during execution of the handler.
virtual ~EobiHandler ( )
virtual

Finalizes the Handler.

Member Function Documentation

EobiHandler& bindFeedEngine ( FeedEngine feedEngine)

Binds Feed Engine to the Handler.

Handler must be in stopped state.

Exceptions
OperationExceptionin case when handler is not in configurable state.
const char* licenseExpirationDate ( ) const

Returns the license expiration date.

EobiHandler& log ( LogLevel::Enum  logLevel,
const char *  logMessage,
size_t  length 
)

Logs the given user-level message to the handler log.

EobiHandler& log ( LogLevel::Enum  logLevel,
const char *  logMessage 
)

Logs the given user-level message to the handler log.

EobiHandler& log ( LogLevel::Enum  logLevel,
const std::string &  str 
)

Logs the given user-level message to the handler log.

EobiHandler& registerErrorListener ( ErrorListener listener)

Assigns listener for errors occurred while executing handler. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.

Exceptions
OperationExceptionif handler not disconnected
EobiHandler& registerHandlerStateListener ( HandlerStateListener listener)

Assigns listener for state change events occurred while executing handler. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.

Exceptions
OperationExceptionif handler not disconnected.
EobiHandler& registerMessageListener ( MessageListener listener)
EobiHandler& registerOrderBookListener ( OrderBookListener listener)
EobiHandler& registerOrderDataListener ( OrderDataListener listener)
EobiHandler& registerPacketListener ( PacketListener listener)
EobiHandler& registerReferenceDataListener ( ReferenceDataListener listener)
EobiHandler& registerSnapshotListener ( SnapshotListener listener)
EobiHandler& registerStateChangeListener ( StateChangeListener listener)
EobiHandler& registerTradeDataListener ( TradeDataListener listener)
EobiHandler& registerWarningListener ( WarningListener listener)

Assigns listener for warnings occurred while executing handler. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.

Exceptions
OperationExceptionif handler not disconnected
EobiHandler& removeAllMarketSegmentIdFilters ( )

Remove all filters.

EobiHandler& removeAllPartitionIdFilters ( )

Remove all filters.

EobiHandler& removeAllSecurityIdFilters ( )

Remove all filters.

void replayPcap ( const ReplayOptions options)

Replay pcap files.

EobiHandler& setMarketSegmentIdFilters ( const MarketSegmentIdFilters filters)

Set the Market Segment Id filtering values.

Note
The filter is inclusive.
EobiHandler& setPartitionIdFilters ( const PartitionIdFilters filters)

Set the Partition Id filtering values.

Note
The filter is inclusive.
EobiHandler& setSecurityIdFilters ( const SecurityIdFilters filters)

Set the Security Id filtering values.

Note
The filter is inclusive.
void start ( )

Start handler.

Note
This action is asynchronous.
Exceptions
std::exceptionin case of unable to start.
void start ( const ReplayOptions options)

Starts replaying previously logged data.

HandlerState::Enum state ( ) const

Returns handler state.

void stop ( )

Stop handler.

static const char* version ( )
static

Returns Handler's version.

Friends And Related Function Documentation

friend struct Implementation::PcapPeplayHelper
friend

Definition at line 163 of file EobiHandler.h.


The documentation for this class was generated from the following file: