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.
devices
perseus
deviceperseus.h
Go to the documentation of this file.
1
// Copyright (C) 2018 Edouard Griffiths, F4EXB //
3
// //
4
// This program is free software; you can redistribute it and/or modify //
5
// it under the terms of the GNU General Public License as published by //
6
// the Free Software Foundation as version 3 of the License, or //
7
// (at your option) any later version. //
8
// //
9
// This program is distributed in the hope that it will be useful, //
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
12
// GNU General Public License V3 for more details. //
13
// //
14
// You should have received a copy of the GNU General Public License //
15
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
17
18
#ifndef DEVICES_PERSEUS_DEVICEPERSEUS_H_
19
#define DEVICES_PERSEUS_DEVICEPERSEUS_H_
20
21
#include "
deviceperseusscan.h
"
22
23
#include "
export.h
"
24
25
class
DEVICES_API
DevicePerseus
26
{
27
public
:
28
static
DevicePerseus
& instance();
29
void
scan();
30
void
getSerials
(std::vector<std::string>& serials)
const
{ m_scan.getSerials(serials); }
31
int
getSequenceFromSerial
(
const
std::string& serial)
const
{
return
m_scan.getSequenceFromSerial(serial); }
32
33
protected
:
34
DevicePerseus
();
35
DevicePerseus
(
const
DevicePerseus
&) : m_nbDevices(0) {}
36
DevicePerseus
&
operator=
(
const
DevicePerseus
& other) { (void) other;
return
*
this
; }
37
~
DevicePerseus
();
38
39
private
:
40
bool
internal_scan();
41
int
m_nbDevices
;
42
DevicePerseusScan
m_scan
;
43
};
44
45
46
#endif
/* DEVICES_PERSEUS_DEVICEPERSEUS_H_ */
DevicePerseus::m_nbDevices
int m_nbDevices
Definition:
deviceperseus.h:41
export.h
DevicePerseus::getSequenceFromSerial
int getSequenceFromSerial(const std::string &serial) const
Definition:
deviceperseus.h:31
DevicePerseus::operator=
DevicePerseus & operator=(const DevicePerseus &other)
Definition:
deviceperseus.h:36
DEVICES_API
#define DEVICES_API
Definition:
export.h:76
DevicePerseus::getSerials
void getSerials(std::vector< std::string > &serials) const
Definition:
deviceperseus.h:30
DevicePerseusScan
Definition:
deviceperseusscan.h:29
DevicePerseus::m_scan
DevicePerseusScan m_scan
Definition:
deviceperseus.h:42
DevicePerseus
Definition:
deviceperseus.h:25
DevicePerseus::DevicePerseus
DevicePerseus(const DevicePerseus &)
Definition:
deviceperseus.h:35
deviceperseusscan.h
Generated on Fri Aug 2 2019 17:56:29 for SDRAngel by
1.8.13