wavelength 1.0.0
Loading...
Searching...
No Matches
MsgSource.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4
5#include "utl/MsgSink.h"
6
13class MsgSource {
14public:
21
27 virtual ~MsgSource();
28
35 virtual void AddSink(MsgSink *sink);
36
44 virtual void RemoveSink(MsgSink *sink);
45
47
48private:
49 std::list<MsgSink *> mSinks;
50};
Receiver of engine messages.
Definition msgsink.h:21
Sender of engine messages, which stores the list of sinks that receive them.
Definition msgsource.h:15
int mGraphBuilt
Definition MsgSource.h:46
MsgSource()
Create a source with no sinks.
virtual void RemoveSink(MsgSink *sink)
Remove a sink, which must be in the list.
virtual ~MsgSource()
Free the list of sinks.
virtual void AddSink(MsgSink *sink)
Add a sink at the end of the list, unless it is already there.