resonance 1.0.1
Loading...
Searching...
No Matches
cmdid.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5class IBStream;
6class OBStream;
7
8namespace Sch {
9
35class CmdID {
36public:
46
56
64 void Print(std::ostream &stream);
65
77 static int AllocateValue();
78
91 static void ReserveID(CmdID id);
92
98 int mValue;
99};
100
101} // namespace Sch
Input half of the byte stream interface.
Definition ibstream.h:36
Output half of the byte stream interface.
Definition obstream.h:25
Handle that identifies one batch of commands the scheduler has queued.
Definition cmdid.h:35
void Print(std::ostream &stream)
Write a description of the handle to a diagnostic stream.
int mValue
The value, or -2 while no value has been allocated.
Definition cmdid.h:98
OBStream & Save(OBStream &stream)
Write the handle.
IBStream & Load(IBStream &stream)
Read the handle back.
static void ReserveID(CmdID id)
Reserve a handle value so that AllocateValue() does not hand it out.
static int AllocateValue()
Produce the next handle value that no replayed recording has reserved.
Scheduling of timed commands.
Definition activefilter.h:9