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.
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 
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();
43 };
44 
45 
46 #endif /* DEVICES_PERSEUS_DEVICEPERSEUS_H_ */
int getSequenceFromSerial(const std::string &serial) const
Definition: deviceperseus.h:31
DevicePerseus & operator=(const DevicePerseus &other)
Definition: deviceperseus.h:36
#define DEVICES_API
Definition: export.h:76
void getSerials(std::vector< std::string > &serials) const
Definition: deviceperseus.h:30
DevicePerseusScan m_scan
Definition: deviceperseus.h:42
DevicePerseus(const DevicePerseus &)
Definition: deviceperseus.h:35