25 #include <OnixS/Eurex/MarketData/Compiler.h> 33 namespace Implementation {
struct PcapPeplayHelper; }
44 virtual void onReplayError (
const std::string& errorDescription) = 0;
47 virtual void onReplayFinished() = 0;
63 ConstantPacketReplayDelay = 1,
67 NaturalPacketReplayDelay = 2
72 void ONIXS_EUREX_EMDI_API
gatherFiles(FilesList* gatheredFiles,
const std::string& root,
const std::string& extension);
76 void gatherLogs(FilesList* gatheredLogs,
const std::string& root)
105 : listener(defaultReplayListener())
106 , packetReplayDelay(0)
107 , playSpeedMultiplier(1)
108 , replayMode(
ReplayMode::ConstantPacketReplayDelay)
114 ReplayOptions (
const std::string& filesRoot,
const std::string& filesExtention =
".log")
115 : listener(defaultReplayListener())
116 , packetReplayDelay(0)
117 , playSpeedMultiplier(1)
118 , replayMode(
ReplayMode::ConstantPacketReplayDelay)
124 ONIXS_EUREX_EMDI_API
static ReplayListener* defaultReplayListener();
void ONIXS_EUREX_EMDI_API gatherFiles(FilesList *gatheredFiles, const std::string &root, const std::string &extension)
Gathers files which are stored in a given folder.
ReplayMode::Enum replayMode
Replay mode. The default value is ReplayMode::ConstantPacketReplayDelay.
Defines params which affect replay.
std::vector< std::string > FilesList
float playSpeedMultiplier
ReplayOptions(const std::string &filesRoot, const std::string &filesExtention=".log")
Initializes with all the files which are available and stored in a given folder.
ReplayOptions()
Initializes instance with default values.
unsigned int packetReplayDelay
ReplayListener * listener
Instance to notify about replay events.
Listening interface for log replay-related events.
void gatherLogs(FilesList *gatheredLogs, const std::string &root)
Gathers log files which are stored in a given folder.