OnixS C++ CME MDP Premium Market Data Handler 5.11.1
Users' manual and API documentation
Loading...
Searching...
No Matches
SessionSettings Class Reference

#include <OnixS/CME/MDH/SessionSettings.h>

Public Member Functions

 SessionSettings (SettingChangeController *controller=nullptr)
 SessionSettings (const SessionSettings &other)
 ~SessionSettings ()
JoinRecoveryOptions::Enum joinRecovery () const
SessionSettings & joinRecovery (JoinRecoveryOptions::Enum recovery)
GapAndErrorHandlingOptions::Enum gapAndErrorHandling () const
SessionSettings & gapAndErrorHandling (GapAndErrorHandlingOptions::Enum handling)
InstrumentRecoveryOptions::Enum instrumentRecovery () const
SessionSettings & instrumentRecovery (InstrumentRecoveryOptions::Enum recovery)
MarketRecoveryOptions::Enum marketRecovery () const
SessionSettings & marketRecovery (MarketRecoveryOptions::Enum recovery)
const TcpRecoverySessionSettings & tcpRecovery () const
TcpRecoverySessionSettings & tcpRecovery ()
SessionSettings & operator= (const SessionSettings &other)
Public Member Functions inherited from SettingGroup
 SettingGroup (SettingChangeController *controller=nullptr)
 ~SettingGroup ()=default
template<class Assignee, class Value>
void controlAssignment (const Messaging::Char *description, Assignee &assignee, Value value) const
template<class Changeable>
void controlChange (const Messaging::Char *description, void(Changeable::*change)(), Changeable &changeable) const
template<class Change, class Changeable, class Arg>
void controlChange (const Messaging::Char *description, Change change, Changeable &changeable, const Arg &arg) const
template<class Change, class Changeable, class Arg1, class Arg2>
void controlChange (const Messaging::Char *description, Change change, Changeable &changeable, const Arg1 &arg1, const Arg2 &arg2) const

Protected Member Functions

const SettingGroup & group () const
void assignNoControl (const SessionSettings &other)
void assignNoControlLegacy (const SessionSettings &other)

Friends

class HandlerSettings
struct LegacyAssigner

Additional Inherited Members

Static Public Member Functions inherited from SettingGroup
static const SettingGroup & null () noexcept

Detailed Description

Basic set of parameters affecting behavior of the Handler when the market data processing is performed.

Definition at line 357 of file SessionSettings.h.

Constructor & Destructor Documentation

◆ SessionSettings() [1/2]

SessionSettings ( SettingChangeController * controller = nullptr)
inline

Initializes parameters with default values.

Definition at line 361 of file SessionSettings.h.

◆ SessionSettings() [2/2]

SessionSettings ( const SessionSettings & other)
inline

Re-initializes settings as copies of the other ones omitting group belonging.

Definition at line 373 of file SessionSettings.h.

◆ ~SessionSettings()

~SessionSettings ( )
inline

Cleans everything up.

Definition at line 384 of file SessionSettings.h.

Member Function Documentation

◆ assignNoControl()

void assignNoControl ( const SessionSettings & other)
inlineprotected

Re-initializes the instance as a copy of the other one and bypassing assignment control.

Definition at line 499 of file SessionSettings.h.

◆ assignNoControlLegacy()

void assignNoControlLegacy ( const SessionSettings & other)
inlineprotected

Definition at line 506 of file SessionSettings.h.

◆ gapAndErrorHandling() [1/2]

GapAndErrorHandlingOptions::Enum gapAndErrorHandling ( ) const
inline

Defines what Handler should do in case of gap in real-time (incremental) data.

Note
Default value is GapAndErrorHandling::RecoverMarketState.

Definition at line 412 of file SessionSettings.h.

◆ gapAndErrorHandling() [2/2]

SessionSettings & gapAndErrorHandling ( GapAndErrorHandlingOptions::Enum handling)
inline

Defines what Handler should do in case of gap in real-time (incremental) data.

Exceptions
std::runtime_errorIf the setting belongs to a handler that is processing market data or being configured from another source.

Definition at line 421 of file SessionSettings.h.

◆ group()

const SettingGroup & group ( ) const
inlineprotected

Instance of the group to which the given settings belongs.

Definition at line 492 of file SessionSettings.h.

◆ instrumentRecovery() [1/2]

InstrumentRecoveryOptions::Enum instrumentRecovery ( ) const
inline

Indicates how instrument definitions are recovered.

Note
Default value is InstrumentRecoveryOptions::Accurate.

Definition at line 431 of file SessionSettings.h.

◆ instrumentRecovery() [2/2]

SessionSettings & instrumentRecovery ( InstrumentRecoveryOptions::Enum recovery)
inline

Defines how instrument definitions are recovered.

Exceptions
std::runtime_errorIf the setting belongs to a handler that is processing market data or being configured from another source.

Definition at line 439 of file SessionSettings.h.

◆ joinRecovery() [1/2]

JoinRecoveryOptions::Enum joinRecovery ( ) const
inline

Defines aspects of recovery to be done at market join stage.

Note
Default value is JoinRecovery::InstrumentsAndMarket.

Definition at line 391 of file SessionSettings.h.

◆ joinRecovery() [2/2]

SessionSettings & joinRecovery ( JoinRecoveryOptions::Enum recovery)
inline

Defines aspects of recovery to be done at market join stage.

Exceptions
std::runtime_errorIf the setting belongs to a handler that is processing market data or being configured from another source.

Definition at line 400 of file SessionSettings.h.

◆ marketRecovery() [1/2]

MarketRecoveryOptions::Enum marketRecovery ( ) const
inline

Defines selected market recovery options.

Note
Default value is MarketRecovery::BothMboAndMbp.

Definition at line 449 of file SessionSettings.h.

◆ marketRecovery() [2/2]

SessionSettings & marketRecovery ( MarketRecoveryOptions::Enum recovery)
inline

Defines market recovery options.

Exceptions
std::runtime_errorIf the setting belongs to a handler that is processing market data or being configured from another source.

Definition at line 457 of file SessionSettings.h.

◆ operator=()

SessionSettings & operator= ( const SessionSettings & other)
inline

Copies settings from the given instance.

Attributes controlling value assignment aren't cloned and thus only settings' values are copied.

Exceptions
std::runtime_errorIf the setting belongs to a handler that is processing market data or being configured from another source.

Definition at line 482 of file SessionSettings.h.

◆ tcpRecovery() [1/2]

TcpRecoverySessionSettings & tcpRecovery ( )
inline

Editable set of TCP recovery settings.

Definition at line 471 of file SessionSettings.h.

◆ tcpRecovery() [2/2]

const TcpRecoverySessionSettings & tcpRecovery ( ) const
inline

Set of TCP recovery settings.

Definition at line 465 of file SessionSettings.h.

◆ HandlerSettings

friend class HandlerSettings
friend

Definition at line 526 of file SessionSettings.h.

◆ LegacyAssigner

friend struct LegacyAssigner
friend

Definition at line 527 of file SessionSettings.h.