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

#include <OnixS/B3/MarketData/UMDF/Replay.h>

Public Member Functions

 ReplayOptions ()
 ReplayOptions (const std::string &filesRoot, const std::string &extension=".log")

Public Attributes

FilesList files
ReplayListenerlistener
unsigned int packetReplayDelay = 0
float playSpeedMultiplier = 0.0f
ReplayMode::Enum replayMode = ReplayMode::ConstantPacketReplayDelay

Detailed Description

Definition at line 87 of file Replay.h.

Constructor & Destructor Documentation

◆ ReplayOptions() [1/2]

ReplayOptions ( )
inline

Initializes instance with default values.

Definition at line 108 of file Replay.h.

◆ ReplayOptions() [2/2]

ReplayOptions ( const std::string & filesRoot,
const std::string & extension = ".log" )
inlineexplicit

Initializes with all the files which are available and stored in a given folder.

Definition at line 115 of file Replay.h.

Member Data Documentation

◆ files

FilesList files

List of files to be replayed.

Must be stored in 'oldest to recent' order.

Definition at line 91 of file Replay.h.

◆ listener

ReplayListener* listener

Instance to notify about replay events.

Definition at line 94 of file Replay.h.

◆ packetReplayDelay

unsigned int packetReplayDelay = 0

Specifies the time delay (milliseconds) between replayed packets.

Note
Ability to control replay rate.

Definition at line 99 of file Replay.h.

◆ playSpeedMultiplier

float playSpeedMultiplier = 0.0f

Replay multiplier. Used only in ReplayMode::NaturalPacketReplayDelay.

Definition at line 102 of file Replay.h.

◆ replayMode

Replay mode.

Definition at line 105 of file Replay.h.