This file is indexed.

/usr/include/CLAM/qtmonitors/PeakViewMonitor.hxx is in libclam-qtmonitors-dev 1.4.0-3.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef PeakViewMonitor_hxx
#define PeakViewMonitor_hxx

#include <CLAM/SpectralPeakArray.hxx>

#include "PeakDataSource.hxx"

#include <CLAM/PortMonitor.hxx>
class PeakViewMonitor : public CLAM::PortMonitor<CLAM::SpectralPeakArray>, public PeakDataSource
{
	const char* GetClassName() const { return "PeakView"; };
	const std::string & getLabel(unsigned bin) const
	{
		static std::string a("A");
		return a;
	}
	const CLAM::TData * positionData()
	{
		_peaks = FreezeAndGetData();
		UnfreezeData();
		if ( !_peaks.HasFreqBuffer()) return 0;
		const CLAM::Array<CLAM::TData> & data = _peaks.GetFreqBuffer();
		_size = data.Size();
		if (!_size) return 0;
		return &data[0];
	}
	const CLAM::TData * magnitudeData()
	{
		if ( !_peaks.HasMagBuffer()) return 0;
		const CLAM::Array<CLAM::TData> & data = _peaks.GetMagBuffer();
		return &data[0];
	}
	unsigned nBins() const
	{
		return _size;
	}
	unsigned nAspects() const
	{
		return 2;
	}
	bool isEnabled() const
	{
		return IsRunning();
	}
private:
	unsigned _size;
	CLAM::SpectralPeakArray _peaks;
};


#endif//PeakViewMonitor_hxx