MCPcopy Create free account
hub / github.com/SatDump/SatDump / loadTLEFileIntoRegistry

Function loadTLEFileIntoRegistry

src-core/common/tracking/tle.cpp:221–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 }
220
221 void loadTLEFileIntoRegistry(std::string path)
222 {
223 logger->info("Loading TLEs from " + path);
224 std::ifstream tle_file(path);
225 TLERegistry new_registry;
226 parseTLEStream(tle_file, new_registry);
227 tle_file.close();
228 logger->info("%zu TLEs loaded!", new_registry.size());
229 general_tle_registry = new_registry;
230 eventBus->fire_event<TLEsUpdatedEvent>(TLEsUpdatedEvent());
231 }
232
233 void fetchTLENow(int norad)
234 {

Callers 1

initSatdumpFunction · 0.85

Calls 5

parseTLEStreamFunction · 0.85
TLEsUpdatedEventClass · 0.85
infoMethod · 0.80
closeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected