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)
110 : listener(defaultReplayListener())
111 , packetReplayDelay(0)
112 , playSpeedMultiplier(1)
113 , replayMode(
ReplayMode::ConstantPacketReplayDelay)
119 ReplayOptions (
const std::string& filesRoot,
const std::string& extension =
".log")
120 : listener(defaultReplayListener())
121 , packetReplayDelay(0)
122 , playSpeedMultiplier(1)
123 , replayMode(
ReplayMode::ConstantPacketReplayDelay)
129 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.
ReplayMode::Enum replayMode
Replay mode. The default value is ReplayMode::ConstantPacketReplayDelay.
float playSpeedMultiplier
Replay multiplier.
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.
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.
unsigned int packetReplayDelay
Specifies the time delay (milliseconds) between replayed packets.