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

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

Collaboration diagram for RdiHandler:

Classes

struct  Impl
 

Public Member Functions

 RdiHandler (const RdiHandlerSettings &settings)
 
virtual ~RdiHandler ()
 
void registerErrorListener (ErrorListener *listener)
 
void registerWarningListener (WarningListener *listener)
 
void registerHandlerStateListener (HandlerStateListener *listener)
 
void registerReferenceDataListener (ReferenceDataListener *listener)
 
void bindFeedEngine (FeedEngine &feedEngine)
 
void start ()
 
void start (const ReplayOptions &options)
 
void stop ()
 
HandlerState::Enum state () const
 
EmdiDescriptors findEmdiDescriptors (const MarketSegments &productNames) const
 
EmdiDescriptors findAllEmdiDescriptors () const
 
MdiDescriptors findMdiDescriptors (const MarketSegments &productNames) const
 
MdiDescriptors findAllMdiDescriptors () const
 
EobiDescriptors findEobiDescriptors (const MarketSegments &productNames) const
 
EobiDescriptors findAllEobiDescriptors () 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 ()
 

Additional Inherited Members

- Public Types inherited from IInterfaceDescriptorProvider
typedef std::set< MarketSegmentMarketSegments
 
- Protected Member Functions inherited from IInterfaceDescriptorProvider
virtual ~IInterfaceDescriptorProvider ()
 

Detailed Description

Definition at line 43 of file RdiHandler.h.

Constructor & Destructor Documentation

RdiHandler ( const RdiHandlerSettings 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 40 of file RdiHandler.cpp.

~RdiHandler ( )
virtual

Finalizes the Handler.

Definition at line 59 of file RdiHandler.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 89 of file RdiHandler.cpp.

EmdiDescriptors findAllEmdiDescriptors ( ) const
virtual

Returns list of EMDI descriptors with filled partitionIdFilters and marketSegmentIdFilters to allow user to receive market data for all products.

Implements IInterfaceDescriptorProvider.

Definition at line 160 of file RdiHandler.cpp.

EobiDescriptors findAllEobiDescriptors ( ) const
virtual

Returns list of EOBI descriptors with filled partitionIdFilters and marketSegmentIdFilters to allow user to receive market data for all products.

Implements IInterfaceDescriptorProvider.

Definition at line 180 of file RdiHandler.cpp.

MdiDescriptors findAllMdiDescriptors ( ) const
virtual

Returns list of MDI descriptors with filled partitionIdFilters and marketSegmentIdFilters to allow user to receive market data for all products.

Implements IInterfaceDescriptorProvider.

Definition at line 170 of file RdiHandler.cpp.

EmdiDescriptors findEmdiDescriptors ( const MarketSegments productNames) const
virtual

Returns list of EMDI descriptors with filled partitionIdFilters and marketSegmentIdFilters to allow user to receive market data for products specified by productNames.

Implements IInterfaceDescriptorProvider.

Definition at line 155 of file RdiHandler.cpp.

EobiDescriptors findEobiDescriptors ( const MarketSegments productNames) const
virtual

Returns list of EOBI descriptors with filled partitionIdFilters and marketSegmentIdFilters to allow user to receive market data for products specified by productNames.

Implements IInterfaceDescriptorProvider.

Definition at line 175 of file RdiHandler.cpp.

MdiDescriptors findMdiDescriptors ( const MarketSegments productNames) const
virtual

Returns list of MDI descriptors with filled partitionIdFilters and marketSegmentIdFilters to allow user to receive market data for products specified by productNames.

Implements IInterfaceDescriptorProvider.

Definition at line 165 of file RdiHandler.cpp.

const char * licenseExpirationDate ( ) const

Returns the license expiration date.

Definition at line 140 of file RdiHandler.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 121 of file RdiHandler.cpp.

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

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

Definition at line 126 of file RdiHandler.cpp.

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

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

Definition at line 131 of file RdiHandler.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 65 of file RdiHandler.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 77 of file RdiHandler.cpp.

void registerReferenceDataListener ( ReferenceDataListener listener)

Assigns listener for 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 83 of file RdiHandler.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 71 of file RdiHandler.cpp.

void start ( )

Start handler.

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

Definition at line 95 of file RdiHandler.cpp.

void start ( const ReplayOptions options)

Starts replaying previously logged data.

Definition at line 104 of file RdiHandler.cpp.

HandlerState::Enum state ( ) const

Returns handler state.

Definition at line 150 of file RdiHandler.cpp.

void stop ( )

Stop handler.

Definition at line 112 of file RdiHandler.cpp.

const char * version ( )
static

Returns Handler's version.

Definition at line 145 of file RdiHandler.cpp.


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