#include "SGP4.h" #include #include #include "CLI/CLI.hpp" #include "version.hh" static char program[]="tlecatch"; using namespace std; extern const char* g_gitHash; int main(int argc, char **argv) { string line; // DateTime d(2019, 8, 31, 1, 52, 30); time_t now = time(0); struct tm tm; gmtime_r(&now, &tm); bool doVERSION{false}; CLI::App app(program); app.add_flag("--version", doVERSION, "show program version and copyright"); try { app.parse(argc, argv); } catch(const CLI::Error &e) { return app.exit(e); } if(doVERSION) { showVersion(program, g_gitHash); exit(0); } for(;;) { DateTime d(1900 + tm.tm_year, tm.tm_mon+1, tm.tm_mday, 04, 43, 51); string name, line1, line2; if(!getline(cin, name) || !getline(cin, line1) || !getline(cin, line2)) break; name.resize(name.size()-1); line1.resize(line1.size()-1); line2.resize(line2.size()-1); Tle tle(line1, line2); /* cout<<"line1: "<