resonance 1.0.1
Loading...
Searching...
No Matches
playbacker.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5class IBStream;
6
7namespace Sch {
8
9class Scheduler;
10class TimedCommand;
11
22public:
28 explicit Playbacker(Scheduler *pWatchdog);
29
37
50 void Load(IBStream &stream);
51
61 void Play();
62
63private:
70 void QueueRemaining();
71
72 std::vector<Sch::TimedCommand *> mCommands; // +0x00
73 std::vector<Sch::TimedCommand *>::iterator mCursor; // +0x0c
74 Scheduler *mWatchdog; // +0x10
75};
76
77} // namespace Sch
Input half of the byte stream interface.
Definition ibstream.h:36
~Playbacker()
Release every loaded wrapper through Attachment::ReleaseIfSet() and empty mCommands.
void Play()
Rewind the scheduler's clock and queue every loaded wrapper.
void Load(IBStream &stream)
Read the recorded wrappers from a stream.
Playbacker(Scheduler *pWatchdog)
Scheduler that runs queued commands when their due time arrives.
Definition scheduler.h:45
One queued command, together with the time the scheduler is to run it at.
Definition timedcommand.h:46
Scheduling of timed commands.
Definition activefilter.h:9