/usr/include/CLAM/qtmonitors/TunnerMonitor.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 | #ifndef TunnerMonitor_hxx
#define TunnerMonitor_hxx
#include <vector>
#include <CLAM/DataTypes.hxx>
#include "PeakDataSource.hxx"
#include <CLAM/PortMonitor.hxx>
class TunnerMonitor : public CLAM::PortMonitor<std::pair<CLAM::TData,CLAM::TData> >, public PeakDataSource
{
const char* GetClassName() const { return "Tunner"; };
const std::string & getLabel(unsigned bin) const
{
static std::string a("A");
return a;
}
const CLAM::TData * positionData()
{
_fasor = FreezeAndGetData();
UnfreezeData();
return &(_fasor.first);
}
const CLAM::TData * magnitudeData()
{
return &(_fasor.second);
}
unsigned nBins() const
{
return 1;
}
bool isEnabled() const
{
return IsRunning();
}
private:
std::pair<CLAM::TData,CLAM::TData> _fasor;
};
#endif//TunnerMonitor_hxx
|