SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
sdrbase
dsp
basebandsamplesink.cpp
Go to the documentation of this file.
1
#include "
basebandsamplesink.h
"
2
3
MESSAGE_CLASS_DEFINITION
(
BasebandSampleSink::MsgThreadedSink
,
Message
)
4
5
BasebandSampleSink
::
BasebandSampleSink
() :
6
m_guiMessageQueue(0)
7
{
8
connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()),
this
, SLOT(handleInputMessages()));
9
}
10
11
BasebandSampleSink::~BasebandSampleSink
()
12
{
13
}
14
15
void
BasebandSampleSink::handleInputMessages
()
16
{
17
Message
* message;
18
19
while
((message =
m_inputMessageQueue
.
pop
()) != 0)
20
{
21
if
(
handleMessage
(*message))
22
{
23
delete
message;
24
}
25
}
26
}
27
MessageQueue::pop
Message * pop()
Pop message from queue.
Definition:
messagequeue.cpp:57
BasebandSampleSink::MsgThreadedSink
Definition:
basebandsamplesink.h:34
Message
Definition:
message.h:25
BasebandSampleSink::m_inputMessageQueue
MessageQueue m_inputMessageQueue
Queue for asynchronous inbound communication.
Definition:
basebandsamplesink.h:67
BasebandSampleSink::~BasebandSampleSink
virtual ~BasebandSampleSink()
Definition:
basebandsamplesink.cpp:11
BasebandSampleSink::handleMessage
virtual bool handleMessage(const Message &cmd)=0
Processing of a message. Returns true if message has actually been processed.
MESSAGE_CLASS_DEFINITION
#define MESSAGE_CLASS_DEFINITION(Name, BaseClass)
Definition:
message.h:52
BasebandSampleSink::handleInputMessages
void handleInputMessages()
Definition:
basebandsamplesink.cpp:15
basebandsamplesink.h
BasebandSampleSink
Definition:
basebandsamplesink.h:30
Generated on Fri Aug 2 2019 17:56:33 for SDRAngel by
1.8.13