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

Method work

Tasks/ExportSamplesTask.cpp:153–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153bool
154ExportSamplesTask::work(void)
155{
156 bool ok = false;
157
158 this->timer.start();
159
160 if (this->format == "mat")
161 ok = this->exportToMat5();
162 else if (this->format == "m")
163 ok = this->exportToMatlab();
164 else if (this->format == "wav" || this->format == "raw")
165 ok = this->exportToWav();
166 else
167 emit error("Unsupported data format " + this->format);
168
169 if (ok) {
170 if (this->cancelFlag)
171 emit cancelled();
172 else
173 emit done();
174 }
175
176 return false;
177}
178
179void
180ExportSamplesTask::cancel(void)

Callers

nothing calls this directly

Calls 4

exportToMat5Method · 0.95
exportToMatlabMethod · 0.95
exportToWavMethod · 0.95
startMethod · 0.45

Tested by

no test coverage detected