OnixS C++ B3 Binary UMDF Market Data Handler 1.10.0
Users' manual and API documentation
Loading...
Searching...
No Matches
LogPlayerSettings Class Reference

#include <OnixS/B3/MarketData/UMDF/testing/LogPlayer.h>

Public Member Functions

 LogPlayerSettings ()
 ~LogPlayerSettings ()
const std::string & logFile () const
LogPlayerSettingslogFile (const std::string &file)
ChannelId channel () const
LogPlayerSettingschannel (ChannelId value)
const std::string & connectivityConfigurationFile () const
LogPlayerSettingsconnectivityConfigurationFile (const std::string &configurationFile)
unsigned sendDelay () const
LogPlayerSettingssendDelay (unsigned delay)
bool useNaturalSendDelays () const
LogPlayerSettingsuseNaturalSendDelays (bool value)
bool updateSendingTime () const
LogPlayerSettingsupdateSendingTime (bool value)
unsigned sourceSwitchDelay () const
LogPlayerSettingssourceSwitchDelay (unsigned delay)
const std::string & primaryFeed () const
LogPlayerSettingsprimaryFeed (const std::string &feed)
bool simulateArbitrage () const
LogPlayerSettingssimulateArbitrage (bool value)
const std::string & ifaceA () const
LogPlayerSettingsifaceA (const std::string &iface)
const std::string & ifaceB () const
LogPlayerSettingsifaceB (const std::string &iface)
unsigned long packetsCount () const
LogPlayerSettingspacketsCount (unsigned long value)

Detailed Description

Definition at line 46 of file LogPlayer.h.

Constructor & Destructor Documentation

◆ LogPlayerSettings()

LogPlayerSettings ( )
inline

Initializes parameters with default values.

Definition at line 50 of file LogPlayer.h.

◆ ~LogPlayerSettings()

~LogPlayerSettings ( )
inline

Cleans everything up.

Definition at line 55 of file LogPlayer.h.

Member Function Documentation

◆ channel() [1/2]

ChannelId channel ( ) const
inline

Identifies CME market data channel.

Definition at line 72 of file LogPlayer.h.

◆ channel() [2/2]

LogPlayerSettings & channel ( ChannelId value)
inline

Identifies CME market data channel.

Definition at line 78 of file LogPlayer.h.

◆ connectivityConfigurationFile() [1/2]

const std::string & connectivityConfigurationFile ( ) const
inline

Path to the connectivity configuration file.

Definition at line 85 of file LogPlayer.h.

◆ connectivityConfigurationFile() [2/2]

LogPlayerSettings & connectivityConfigurationFile ( const std::string & configurationFile)
inline

Path to the connectivity configuration file from which to load feed connection settings.

Definition at line 92 of file LogPlayer.h.

◆ ifaceA() [1/2]

const std::string & ifaceA ( ) const
inline

Interface through which application must send data belonging to primary feed. If not specified, default network interface is used.

Definition at line 184 of file LogPlayer.h.

◆ ifaceA() [2/2]

LogPlayerSettings & ifaceA ( const std::string & iface)
inline

Interface through which application must send data belonging to primary feed. If not specified, default network interface is used.

Definition at line 190 of file LogPlayer.h.

◆ ifaceB() [1/2]

const std::string & ifaceB ( ) const
inline

Interface through which application must send data belonging to secondary feed.

If not specified, default network interface is used.

Definition at line 199 of file LogPlayer.h.

◆ ifaceB() [2/2]

LogPlayerSettings & ifaceB ( const std::string & iface)
inline

Interface through which application must send data belonging to secondary feed.

If not specified, default network interface is used.

Definition at line 206 of file LogPlayer.h.

◆ logFile() [1/2]

const std::string & logFile ( ) const
inline

Path to the log file.

Definition at line 58 of file LogPlayer.h.

◆ logFile() [2/2]

LogPlayerSettings & logFile ( const std::string & file)
inline

Path to the log file.

Definition at line 64 of file LogPlayer.h.

◆ packetsCount() [1/2]

unsigned long packetsCount ( ) const
inline

The number of incremental packets to replay.

Definition at line 214 of file LogPlayer.h.

◆ packetsCount() [2/2]

LogPlayerSettings & packetsCount ( unsigned long value)
inline

The number of incremental packets to replay.

Definition at line 220 of file LogPlayer.h.

◆ primaryFeed() [1/2]

const std::string & primaryFeed ( ) const
inline

Defines primary feed for the feed group.

Definition at line 156 of file LogPlayer.h.

◆ primaryFeed() [2/2]

LogPlayerSettings & primaryFeed ( const std::string & feed)
inline

Defines primary feed for the feed group.

Definition at line 162 of file LogPlayer.h.

◆ sendDelay() [1/2]

unsigned sendDelay ( ) const
inline

Pause before sending data to the same source as it was sent before (in microseconds).

Definition at line 100 of file LogPlayer.h.

◆ sendDelay() [2/2]

LogPlayerSettings & sendDelay ( unsigned delay)
inline

Pause before sending data to the same source as it was sent before (in microseconds).

Definition at line 106 of file LogPlayer.h.

◆ simulateArbitrage() [1/2]

bool simulateArbitrage ( ) const
inline

Simulates arbitrage on realtime feeds. By default, data is sent through primary feed only.

Definition at line 170 of file LogPlayer.h.

◆ simulateArbitrage() [2/2]

LogPlayerSettings & simulateArbitrage ( bool value)
inline

Simulates arbitrage on realtime feeds. By default, data is sent through primary feed only.

Definition at line 176 of file LogPlayer.h.

◆ sourceSwitchDelay() [1/2]

unsigned sourceSwitchDelay ( ) const
inline

Pause before sending data to the source which differs from the source data was sent before (in microseconds).

Definition at line 142 of file LogPlayer.h.

◆ sourceSwitchDelay() [2/2]

LogPlayerSettings & sourceSwitchDelay ( unsigned delay)
inline

Pause before sending data to the source which differs from the source data was sent before (in microseconds).

Definition at line 148 of file LogPlayer.h.

◆ updateSendingTime() [1/2]

bool updateSendingTime ( ) const
inline

Update the SendingTime field in the Binary Packet Header.

Definition at line 128 of file LogPlayer.h.

◆ updateSendingTime() [2/2]

LogPlayerSettings & updateSendingTime ( bool value)
inline

Update the SendingTime field in the Binary Packet Header.

Definition at line 134 of file LogPlayer.h.

◆ useNaturalSendDelays() [1/2]

bool useNaturalSendDelays ( ) const
inline

Use delays from the log file. If true, sendDelay will be ignored.

Definition at line 114 of file LogPlayer.h.

◆ useNaturalSendDelays() [2/2]

LogPlayerSettings & useNaturalSendDelays ( bool value)
inline

Use delays from the log file. If true, sendDelay will be ignored.

Definition at line 120 of file LogPlayer.h.