OnixS C++ Eurex T7 Market and Reference Data (EMDI, MDI, RDI, EOBI) Handlers 18.2.0
API documentation
Loading...
Searching...
No Matches
RdiHandler Class Reference

Public Member Functions

 RdiHandler (const RdiHandlerSettings &settings, const std::string &=ONIXS_EUREX_EMDI_COMPILER_INFO)
 ~RdiHandler () ONIXS_EUREX_EMDI_OVERRIDE
RdiHandlerregisterErrorListener (ErrorListener *listener)
RdiHandlerregisterWarningListener (WarningListener *listener)
RdiHandlerregisterHandlerStateListener (HandlerStateListener *listener)
RdiHandlerregisterReferenceDataListener (ReferenceDataListener *listener)
RdiHandlerbindFeedEngine (FeedEngine &feedEngine)
void start ()
void start (const ReplayOptions &options, bool *stopRequest=ONIXS_EUREX_EMDI_NULLPTR)
void replayPcap (const ReplayOptions &options, bool *stopRequest=ONIXS_EUREX_EMDI_NULLPTR)
void stop ()
HandlerState::Enum state () const
EmdiDescriptors findEmdiDescriptors (const MarketSegments &productNames) const ONIXS_EUREX_EMDI_OVERRIDE
EmdiDescriptors findAllEmdiDescriptors () const ONIXS_EUREX_EMDI_OVERRIDE
MdiDescriptors findMdiDescriptors (const MarketSegments &productNames) const ONIXS_EUREX_EMDI_OVERRIDE
MdiDescriptors findAllMdiDescriptors () const ONIXS_EUREX_EMDI_OVERRIDE
EobiDescriptors findEobiDescriptors (const MarketSegments &productNames) const ONIXS_EUREX_EMDI_OVERRIDE
EobiDescriptors findAllEobiDescriptors () const ONIXS_EUREX_EMDI_OVERRIDE
RdiHandlerlog (LogLevel::Enum logLevel, const char *logMessage, size_t length)
RdiHandlerlog (LogLevel::Enum logLevel, const char *logMessage)
RdiHandlerlog (LogLevel::Enum logLevel, const std::string &str)
std::string 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()

RdiHandler ( const RdiHandlerSettings & 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.

◆ ~RdiHandler()

~RdiHandler ( )

Finalizes the Handler.

Member Function Documentation

◆ bindFeedEngine()

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

◆ findAllEmdiDescriptors()

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.

◆ findAllEobiDescriptors()

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.

◆ findAllMdiDescriptors()

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.

◆ findEmdiDescriptors()

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.

◆ findEobiDescriptors()

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.

◆ findMdiDescriptors()

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.

◆ licenseExpirationDate()

std::string licenseExpirationDate ( ) const

Returns the license expiration date.

◆ log() [1/3]

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

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

◆ log() [2/3]

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

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

◆ log() [3/3]

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

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

◆ registerErrorListener()

RdiHandler & 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

◆ registerHandlerStateListener()

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

◆ registerReferenceDataListener()

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

◆ registerWarningListener()

RdiHandler & 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

◆ replayPcap()

void replayPcap ( const ReplayOptions & options,
bool * stopRequest = ONIXS_EUREX_EMDI_NULLPTR )

Replay pcap files.

◆ start() [1/2]

void start ( )

Start handler.

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

◆ start() [2/2]

void start ( const ReplayOptions & options,
bool * stopRequest = ONIXS_EUREX_EMDI_NULLPTR )

Starts replaying previously logged data.

◆ state()

HandlerState::Enum state ( ) const

Returns handler state.

◆ stop()

void stop ( )

Stop handler.

◆ version()

const char * version ( )
static

Returns Handler's version.