Debian Codegraph @

src/inputsource.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2015, Mike Walters <[email protected]>
3 * Copyright (C) 2015, Jared Boone <[email protected]>
4 *
5 * This file is part of inspectrum.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #pragma once
22
23 #include <complex>
24 #include <QFile>
25 #include "samplesource.h"cxx . . $ `<file>/src/samplesource.h`/
26
27 class SampleAdaptercxx . . $ SampleAdapter# {
28 public:
29 virtual size_t sampleSizecxx . . $ SampleAdapter#sampleSize(f708dce9a8856c70).() = 0;
30 virtual void copyRangecxx . . $ SampleAdapter#copyRange(cc8809b61c1fd643).(const void* const src, size_t start, size_t length, stdcxx . . $ std/::complexcxx . . $ std/complex#<float>* const dest) = 0;
31 virtual ~cxx . . $ SampleAdapter#`~SampleAdapter`(49f6e7a06ebc5aa8).SampleAdaptercxx . . $ SampleAdapter#() { };
32 };
33
34 class InputSourcecxx . . $ InputSource# : public SampleSourcecxx . . $ SampleSource#<stdcxx . . $ std/::complexcxx . . $ std/complex#<float>>
35 {
36 private:
37 QFilecxx . . $ QFile# *inputFilecxx . . $ InputSource#inputFile. = nullptr;
38 size_t sampleCountcxx . . $ InputSource#sampleCount. = 0;
39 double sampleRatecxx . . $ InputSource#sampleRate. = 0.0;
40 ucharcxx . . $ uchar# *mmapDatacxx . . $ InputSource#mmapData. = nullptr;
41 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<SampleAdaptercxx . . $ SampleAdapter#> sampleAdaptercxx . . $ InputSource#sampleAdapter.;
42 stdcxx . . $ std/::stringcxx . . $ std/string# _fmtcxx . . $ InputSource#_fmt.;
43 bool _realSignalcxx . . $ InputSource#_realSignal. = false;
44
45 QJsonObjectcxx . . $ QJsonObject# readMetaDatacxx . . $ InputSource#readMetaData(2776c2cc5edc784).(const QStringcxx . . $ QString# &filename);
46
47 public:
48 InputSourcecxx . . $ InputSource#InputSource(49f6e7a06ebc5aa8).();
49 ~cxx . . $ InputSource#`~InputSource`(49f6e7a06ebc5aa8).InputSourcecxx . . $ InputSource#();
50 void cleanupcxx . . $ InputSource#cleanup(49f6e7a06ebc5aa8).();
51 void openFilecxx . . $ InputSource#openFile(85c52e162fed56f9).(const char *filename);
52 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<stdcxx . . $ std/::complexcxx . . $ std/complex#<float>[]> getSamplescxx . . $ InputSource#getSamples(10a87ca57033614e).(size_t start, size_t length);
53 size_t countcxx . . $ InputSource#count(f708dce9a8856c70).() {
54 return sampleCountcxx . . $ InputSource#sampleCount.;
55 };
56 void setSampleRatecxx . . $ InputSource#setSampleRate(ba8836b59fb42830).(double rate);
57 void setFormatcxx . . $ InputSource#setFormat(8d4ab0a187bf9331).(stdcxx . . $ std/::stringcxx . . $ std/string# fmt);
58 double ratecxx . . $ InputSource#rate(31fa7155c10fdd13).();
59 bool realSignalcxx . . $ InputSource#realSignal(c9857a73d68e59ba).() {
60 return _realSignalcxx . . $ InputSource#_realSignal.;
61 };
62 float relativeBandwidthcxx . . $ InputSource#relativeBandwidth(9b8c9e39889c762c).() {
63 return 1;
64 }
65 };