Go to the documentation of this file.
56 if (navOut->signal.messageType == NavMessageType::Health)
59 "time=%Y/%02m/%02d %02H:%02M:%02S"));
61 healthGet.healthMap[navOut->signal][navOut->timeStamp] = navOut;
63 ndlist.push_back(navOut);
81 bool initialize(
int argc,
char *argv[],
bool pretty=
true) noexcept
override;
83 void process()
override;
91 :
BasicFramework(applName,
"Execute a basic round-trip conversion using"
93 restOpt(
"input-file output-file", true)
110 if (restOpt.getCount() != 2)
112 cerr <<
"Must have exactly two file arguments specified." << endl;
113 exitCode = BasicFramework::OPTION_ERROR;
129 NavMessageType::Iono,
130 NavMessageType::TimeOffset,
131 NavMessageType::Health});
138 exitCode = BasicFramework::EXIST_ERROR;
146 exitCode = BasicFramework::GENERAL_ERROR;
152 cerr <<
"Unable to process RINEX input file \"" <<
restOpt.
getValue()[0]
154 <<
"Is it valid RINEX?" << endl;
155 exitCode = BasicFramework::OPTION_ERROR;
158 cerr <<
"Stored " << store.
ndlist.size() <<
" NavData objects" << endl;
161 cerr <<
"Failed to translate data back into RINEX" << endl;
162 exitCode = BasicFramework::GENERAL_ERROR;
167 cerr <<
"Failed to write RINEX output file \"" <<
restOpt.
getValue()[1]
169 exitCode = BasicFramework::GENERAL_ERROR;
172 cout <<
"Done." << endl;
176 int main(
int argc,
char *argv[])
192 catch(std::exception& e)
194 cout << e.
what() << endl;
198 cout <<
"unknown error" << endl;
std::shared_ptr< NavData > NavDataPtr
Factories instantiate these in response to find() requests.
NewNavToRinex_T(const string &applName)
int main(int argc, char *argv[])
bool translate(const NavDataPtrList &data, HealthGetter &healthGet)
CommandOption to take the rest of the command line.
Rinex3NavHeader header
The header that will be used by translate() and write().
std::string what() const
Dump to a string.
std::list< NavDataPtr > NavDataPtrList
bool write(const std::string &filename)
static const int EXCEPTION_ERROR
virtual void open(const char *fn, std::ios::openmode mode)
overrides open to reset the header
CommandOptionRest restOpt
int initialize(string &errors)
bool initialize(int argc, char *argv[], bool pretty=true) noexcept override
std::string printTime(const CommonTime &t, const std::string &fmt)
#define DEBUGTRACE_ENABLE()
const std::vector< std::string > & getValue() const
bool process(const std::string &filename, NavDataFactoryCallback &cb) override
#define DEBUGTRACE_FUNCTION()
bool process(const NavDataPtr &navOut) override
virtual void setTypeFilter(const NavMessageTypeSet &nmts)
Simple storage callback for use by NewNavToRinex.
CommandOption & setMaxCount(const unsigned long l)
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:40