MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / Singleton

Method Singleton

Suscan/Library.cpp:103–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103Singleton::Singleton()
104{
105 this->sources_initd = false;
106 this->estimators_initd = false;
107 this->spectrum_sources_initd = false;
108 this->inspectors_initd = false;
109
110 this->backgroundTaskController = new MultitaskController;
111
112 // Define some read-only units. We may let the user add customized
113 // units too.
114
115 this->registerSpectrumUnit("dBFS", 1.0, 0.0f);
116 this->registerSpectrumUnit("dBK", 1.0, -228.60f);
117 this->registerSpectrumUnit("dBW/Hz", 1.0, 0.0f);
118 this->registerSpectrumUnit("dBm/Hz", 1.0, -30.0f);
119
120 this->registerSpectrumUnit("dBJy", 1.0, 0.0f);
121
122 // The zero point of the AB magnitude scale is at 3631 Jy. This is,
123 // at 35.6 dB above the zero point of the dBJy scale. Since 1 mag = -4 dB,
124 // the zero point of the scale exactly at -8.9 mag w.r.t the zero point of the
125 // dBJy scale.
126 this->registerSpectrumUnit("mag (AB)", -4.0, -2.5f * SU_LOG(3631.f));
127
128 this->logger = Logger::getInstance();
129}
130
131Singleton::~Singleton()
132{

Callers

nothing calls this directly

Calls 1

registerSpectrumUnitMethod · 0.95

Tested by

no test coverage detected