44 virtual void onReplayError (
const std::string& errorDescription) = 0;
47 virtual void onReplayFinished() = 0;
63 ConstantPacketReplayDelay = 1,
67 NaturalPacketReplayDelay = 2
77 void ONIXS_B3_UMDF_MD_API
gatherFiles(FilesList* gatheredFiles,
const std::string& root,
const std::string& extension);
81 void gatherLogs(FilesList* gatheredLogs,
const std::string& root)
99 unsigned int packetReplayDelay = 0;
102 float playSpeedMultiplier = 0.0f;
109 : listener(defaultReplayListener())
115 ReplayOptions (
const std::string& filesRoot,
const std::string& extension =
".log")
116 : listener(defaultReplayListener())
122 ONIXS_B3_UMDF_MD_API
static ReplayListener* defaultReplayListener();
ReplayOptions(const std::string &filesRoot, const std::string &extension=".log")
Initializes with all the files which are available and stored in a given folder.
ReplayOptions()
Initializes instance with default values.
void gatherLogs(FilesList *gatheredLogs, const std::string &root)
Gathers log files which are stored in a given folder.
Listening interface for log replay-related events.
std::vector< std::string > HandlerLogs
Ordered list of logs to be replayed.
void ONIXS_B3_UMDF_MD_API gatherFiles(FilesList *gatheredFiles, const std::string &root, const std::string &extension)
Gathers files which are stored in a given folder.
The packets are replayed with constant delay, defined by ReplayOptions::packetReplayDelay Timestamps ...
std::vector< std::string >::iterator HandlerLogsEntry
Read-write iterator over ordered list of logs to be replayed.
Defines params which affect replay.
std::vector< std::string > FilesList
Ordered list of files to be replayed.
FilesList files
List of files to be replayed.
ReplayListener * listener
Instance to notify about replay events.