77 void ONIXS_B3_UMDF_MD_API
gatherFiles(
FilesList* gatheredFiles,
const std::string& root,
const std::string& extension);
115 ReplayOptions (
const std::string& filesRoot,
const std::string& extension =
".log")
122 ONIXS_B3_UMDF_MD_API
static ReplayListener* defaultReplayListener();
Listening interface for log replay-related events.
virtual void onReplayFinished()=0
Is called once all the logs are replayed.
virtual void onReplayError(const std::string &errorDescription)=0
Is called once an error occurs while replaying logs.
virtual ~ReplayListener()
Deletion is not supposed through interface of this class.
std::vector< std::string > FilesList
Ordered list of files to be replayed.
std::vector< std::string > HandlerLogs
Ordered list of logs to be replayed.
void gatherLogs(FilesList *gatheredLogs, const std::string &root)
Gathers log 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.
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.
@ ConstantPacketReplayDelay
The packets are replayed with constant delay, defined by ReplayOptions::packetReplayDelay Timestamps ...
@ NaturalPacketReplayDelay
The packets are replayed with delays as it comes from the replayed file.
ReplayMode::Enum replayMode
Replay mode.
FilesList files
List of files to be replayed.
unsigned int packetReplayDelay
Specifies the time delay (milliseconds) between replayed packets.
ReplayListener * listener
Instance to notify about replay events.
float playSpeedMultiplier
Replay multiplier. Used only in ReplayMode::NaturalPacketReplayDelay.
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.