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

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

Classes

struct  Impl
 

Public Member Functions

 EmdsHandler (const EmdsHandlerSettings &settings)
 
virtual ~EmdsHandler ()
 
void registerErrorListener (ErrorListener *listener)
 
void registerWarningListener (WarningListener *listener)
 
void registerHandlerStateListener (HandlerStateListener *listener)
 
void registerSettlementListener (SettlementListener *listener)
 
void registerOpenInterestListener (OpenInterestListener *listener)
 
void registerExchangeTradeListener (ExchangeTradeListener *listener)
 
void setMarketSegmentIdFilters (const MarketSegmentIdFilters &filters)
 
void removeAllMarketSegmentIdFilters ()
 
void setSecurityIdFilters (const SecurityIdFilters &filters)
 
void removeAllSecurityIdFilters ()
 
void bindFeedEngine (FeedEngine &feedEngine)
 
void start ()
 
void start (const ReplayOptions &options)
 
void stop ()
 
HandlerState::Enum state () const
 
void log (LogLevel::Enum logLevel, const char *logMessage, size_t length)
 
void log (LogLevel::Enum logLevel, const char *logMessage)
 
void log (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)

Performs instance initialization.

Parameters
settingsdefines values for various options which affect handler behavior like enabling logging during execution of the handler.

Definition at line 35 of file EmdsHandler.cpp.

~EmdsHandler ( )
virtual

Finalizes the Handler.

Definition at line 40 of file EmdsHandler.cpp.

Member Function Documentation

void 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.

Definition at line 81 of file EmdsHandler.cpp.

const char * licenseExpirationDate ( ) const

Returns the license expiration date.

Definition at line 133 of file EmdsHandler.cpp.

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

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

Definition at line 114 of file EmdsHandler.cpp.

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

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

Definition at line 119 of file EmdsHandler.cpp.

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

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

Definition at line 124 of file EmdsHandler.cpp.

void 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

Definition at line 45 of file EmdsHandler.cpp.

void 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.

Definition at line 75 of file EmdsHandler.cpp.

void 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.

Definition at line 57 of file EmdsHandler.cpp.

void 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.

Definition at line 69 of file EmdsHandler.cpp.

void 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.

Definition at line 63 of file EmdsHandler.cpp.

void 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

Definition at line 51 of file EmdsHandler.cpp.

void removeAllMarketSegmentIdFilters ( )

Remove all filters.

Definition at line 152 of file EmdsHandler.cpp.

void removeAllSecurityIdFilters ( )

Remove all filters.

Definition at line 162 of file EmdsHandler.cpp.

void setMarketSegmentIdFilters ( const MarketSegmentIdFilters filters)

Set the Market Segment Id filtering values.

Note
The filter is inclusive.

Definition at line 147 of file EmdsHandler.cpp.

void setSecurityIdFilters ( const SecurityIdFilters filters)

Set the Security Id filtering values.

Note
The filter is inclusive.

Definition at line 157 of file EmdsHandler.cpp.

void start ( )

Start handler.

Note
This action is asynchronous.
Exceptions
std::exceptionin case of unable to start.

Definition at line 87 of file EmdsHandler.cpp.

void start ( const ReplayOptions options)

Starts replaying previously logged data.

Definition at line 92 of file EmdsHandler.cpp.

HandlerState::Enum state ( ) const

Returns handler state.

Definition at line 105 of file EmdsHandler.cpp.

void stop ( )

Stop handler.

Definition at line 100 of file EmdsHandler.cpp.

const char * version ( )
static

Returns Handler's version.

Definition at line 138 of file EmdsHandler.cpp.


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