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
util
message.cpp
Go to the documentation of this file.
1
// Copyright (C) 2015 F4EXB //
3
// written by Edouard Griffiths //
4
// //
5
// This program is free software; you can redistribute it and/or modify //
6
// it under the terms of the GNU General Public License as published by //
7
// the Free Software Foundation as version 3 of the License, or //
8
// (at your option) any later version. //
9
// //
10
// This program is distributed in the hope that it will be useful, //
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
13
// GNU General Public License V3 for more details. //
14
// //
15
// You should have received a copy of the GNU General Public License //
16
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
18
19
#include <QWaitCondition>
20
#include <QMutex>
21
#include "
util/message.h
"
22
#include "
util/messagequeue.h
"
23
24
const
char
*
Message::m_identifier
= 0;
25
26
Message::Message
() :
27
m_destination(0)
28
{
29
}
30
31
Message::~Message
()
32
{
33
}
34
35
const
char
*
Message::getIdentifier
()
const
36
{
37
return
m_identifier
;
38
}
39
40
bool
Message::matchIdentifier
(
const
char
* identifier)
const
41
{
42
return
m_identifier
== identifier;
43
}
44
45
bool
Message::match
(
const
Message
* message)
46
{
47
return
message->
matchIdentifier
(
m_identifier
);
48
}
Message
Definition:
message.h:25
Message::matchIdentifier
virtual bool matchIdentifier(const char *identifier) const
Definition:
message.cpp:40
messagequeue.h
message.h
Message::~Message
virtual ~Message()
Definition:
message.cpp:31
Message::m_identifier
static const char * m_identifier
Definition:
message.h:39
Message::match
static bool match(const Message *message)
Definition:
message.cpp:45
Message::Message
Message()
Definition:
message.cpp:26
Message::getIdentifier
virtual const char * getIdentifier() const
Definition:
message.cpp:35
Generated on Fri Aug 2 2019 17:56:33 for SDRAngel by
1.8.13