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

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

Public Member Functions

 EmdsHandler (const EmdsHandlerSettings &settings, const std::string &=ONIXS_EUREX_EMDI_COMPILER_INFO)
 
virtual ~EmdsHandler ()
 
EmdsHandlerregisterErrorListener (ErrorListener *listener)
 
EmdsHandlerregisterWarningListener (WarningListener *listener)
 
EmdsHandlerregisterHandlerStateListener (HandlerStateListener *listener)
 
EmdsHandlerregisterSettlementListener (SettlementListener *listener)
 
EmdsHandlerregisterOpenInterestListener (OpenInterestListener *listener)
 
EmdsHandlerregisterExchangeTradeListener (ExchangeTradeListener *listener)
 
EmdsHandlersetMarketSegmentIdFilters (const MarketSegmentIdFilters &filters)
 
EmdsHandlerremoveAllMarketSegmentIdFilters ()
 
EmdsHandlersetSecurityIdFilters (const SecurityIdFilters &filters)
 
EmdsHandlerremoveAllSecurityIdFilters ()
 
EmdsHandlerbindFeedEngine (FeedEngine &feedEngine)
 
void start ()
 
void start (const ReplayOptions &options)
 
void stop ()
 
HandlerState::Enum state () const
 
EmdsHandlerlog (LogLevel::Enum logLevel, const char *logMessage, size_t length)
 
EmdsHandlerlog (LogLevel::Enum logLevel, const char *logMessage)
 
EmdsHandlerlog (LogLevel::Enum logLevel, const std::string &str)
 
const char * licenseExpirationDate () const
 

Static Public Member Functions

static const char * version ()
 

Detailed Description

Definition at line 40 of file EmdsHandler.h.

Constructor & Destructor Documentation

EmdsHandler ( const EmdsHandlerSettings 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 ~EmdsHandler ( )
virtual

Finalizes the Handler.

Member Function Documentation

EmdsHandler& 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.

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

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

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

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

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

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

EmdsHandler& 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
EmdsHandler& registerExchangeTradeListener ( ExchangeTradeListener listener)

Assigns listener for On-exchange trade messages received 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.
EmdsHandler& 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.
EmdsHandler& registerOpenInterestListener ( OpenInterestListener listener)

Assigns listener for open interest messages received 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.
EmdsHandler& registerSettlementListener ( SettlementListener listener)

Assigns listener for settlement messages received 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.
EmdsHandler& 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
EmdsHandler& removeAllMarketSegmentIdFilters ( )

Remove all filters.

EmdsHandler& removeAllSecurityIdFilters ( )

Remove all filters.

EmdsHandler& setMarketSegmentIdFilters ( const MarketSegmentIdFilters filters)

Set the Market Segment Id filtering values.

Note
The filter is inclusive.
EmdsHandler& 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.


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