42 virtual void onReplayError (
const std::string& errorDescription) = 0;
45 virtual void onReplayFinished() = 0;
61 ConstantPacketReplayDelay = 1,
65 NaturalPacketReplayDelay = 2
70 void ONIXS_CBOECFE_PITCH_API
gatherFiles(FilesList* gatheredFiles,
const std::string& root,
const std::string& extension);
74 void gatherLogs(FilesList* gatheredLogs,
const std::string& root)
103 : listener(defaultReplayListener())
104 , packetReplayDelay(0)
105 , playSpeedMultiplier(1)
106 , replayMode(
ReplayMode::ConstantPacketReplayDelay)
112 ReplayOptions (
const std::string& filesRoot,
const std::string& filesExtention =
".log")
113 : listener(defaultReplayListener())
114 , packetReplayDelay(0)
115 , playSpeedMultiplier(1)
116 , replayMode(
ReplayMode::ConstantPacketReplayDelay)
122 ONIXS_CBOECFE_PITCH_API
static ReplayListener* defaultReplayListener();
std::vector< std::string > FilesList
ReplayOptions()
Initializes instance with default values.
ReplayMode::Enum replayMode
Replay mode. The default value is ReplayMode::ConstantPacketReplayDelay.
ReplayListener * listener
Instance to notify about replay events.
ReplayOptions(const std::string &filesRoot, const std::string &filesExtention=".log")
Initializes with all the files which are available and stored in a given folder.
void gatherLogs(FilesList *gatheredLogs, const std::string &root)
Gathers log files which are stored in a given folder.
unsigned int packetReplayDelay
Listening interface for log replay-related events.
Defines params which affect replay.
void ONIXS_CBOECFE_PITCH_API gatherFiles(FilesList *gatheredFiles, const std::string &root, const std::string &extension)
Gathers files which are stored in a given folder.
float playSpeedMultiplier