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

Method extractTLEs

Tasks/TLEDownloaderTask.cpp:93–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void
94TLEDownloaderTask::extractTLEs(void)
95{
96 SUSDIFF got;
97 const char *data = this->data.data();
98 size_t size = this->data.size();
99 orbit_t orbit = orbit_INITIALIZER;
100 auto sus = Suscan::Singleton::get_instance();
101
102 while ((got = orbit_init_from_data(&orbit, data, size)) > 0) {
103 std::string chunk;
104 orbit_finalize(&orbit);
105 chunk.append(data, static_cast<size_t>(got));
106 (void) sus->registerTLE(chunk);
107 data += got;
108 size -= static_cast<size_t>(got);
109 }
110}
111
112bool
113TLEDownloaderTask::work(void)

Callers 1

workMethod · 0.95

Calls 4

appendMethod · 0.80
registerTLEMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected