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

Method init_tle

Suscan/Library.cpp:458–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456
457
458void
459Singleton::init_tle(void)
460{
461 const char *userTLEDir;
462
463 if ((userTLEDir = suscan_confdb_get_local_tle_path()) != nullptr) {
464 QDirIterator it(userTLEDir, QDirIterator::NoIteratorFlags);
465
466 while (it.hasNext()) {
467 QFile f(it.next());
468 QFileInfo fi(f);
469
470 if (fi.completeSuffix().toLower() == "tle") {
471 Orbit orbit;
472 if (orbit.loadFromFile(f.fileName().toStdString().c_str()))
473 this->satellites[orbit.nameToQString()] = orbit;
474 }
475 }
476 }
477}
478
479void
480Singleton::init_plugins(void)

Callers 1

runMethod · 0.80

Calls 3

nextMethod · 0.80
loadFromFileMethod · 0.80
nameToQStringMethod · 0.80

Tested by

no test coverage detected