Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
RinEditNav Class Reference

Detailed Description

Definition at line 49 of file RinEditNav.cpp.

Inheritance diagram for RinEditNav:
Inheritance graph
[legend]

Classes

struct  UniqueNav
 Minimal data for uniquely identifying nav data for the output file. More...
 

Public Types

using OutputMap = map< SatelliteSystem, StrmPtr >
 Map system to output stream. More...
 
using StrmPtr = shared_ptr< Rinex3NavStream >
 Nav stream shared (managed) pointer. More...
 

Public Member Functions

bool initialize (int argc, char *argv[], bool pretty=true) override throw ()
 
void makeSysMappings ()
 Create the mappings from system string to enum. More...
 
bool parseOut (const CommandOptionWithAnyArg &opt, OutputMap &outMap, set< string > &outFNs)
 
void process () override
 
 RinEditNav (const string &applName)
 
void writeHeaders ()
 Write the headers for all open output streams. Merges input headers. More...
 
- Public Member Functions inherited from gnsstk::BasicFramework
 BasicFramework (const std::string &applName, const std::string &applDesc) noexcept
 
bool run () noexcept
 
virtual ~BasicFramework ()
 Destructor. More...
 

Public Attributes

map< StrmPtr, Rinex3NavDatadataMap
 Map stream to data. More...
 
CommandOptionWithTimeArg eTimeOpt
 Command option for end time for matching. More...
 
set< SatIDexclSats
 Excluded satellites. More...
 
CommandOptionWithAnyArg excludeOpt
 Command option for excluding specific satellites. More...
 
CommandOptionRest filesOpt
 Command option for input files. More...
 
map< string, SatelliteSystemid1map
 Single character RINEX system IDs. More...
 
map< string, SatelliteSystemid3map
 Three character RINEX system IDs. More...
 
CommonTime maxTime
 First time to NOT be included from input data. More...
 
CommonTime minTime
 First time to be included from input data. More...
 
multimap< CommonTime, StrmPtrorderMap
 Map time stamp of record in dataMap to stream. More...
 
OutputMap output2Map
 Map satellite system to RINEX 2 output stream. More...
 
CommandOptionWithAnyArg output2Opt
 Command option for output file (RINEX 2) More...
 
OutputMap output3Map
 Map satellite system to RINEX 3 output stream. More...
 
CommandOptionWithAnyArg output3Opt
 Command option for output file (RINEX 3) More...
 
CommandOptionOneOf outputOpts
 Make sure at least one of the output options has been used. More...
 
CommandOptionWithTimeArg timeOpt
 Command option for start time for matching. More...
 
set< UniqueNavuniques
 Keep track of written data for removing duplicates. More...
 
- Public Attributes inherited from gnsstk::BasicFramework
int exitCode
 

Static Public Attributes

static constexpr double DefRINEX2Ver = 2.11
 RINEX version to use when writing out RINEX 2 format. More...
 
- Static Public Attributes inherited from gnsstk::BasicFramework
static const int EXCEPTION_ERROR = 1
 
static const int EXIST_ERROR = 2
 
static const int GENERAL_ERROR = 1
 
static const int OPTION_ERROR = 2
 

Additional Inherited Members

- Protected Member Functions inherited from gnsstk::BasicFramework
virtual void additionalSetup ()
 
virtual void completeProcessing ()
 
virtual void shutDown ()
 
virtual void spinUp ()
 
- Protected Attributes inherited from gnsstk::BasicFramework
std::string appDesc
 Description of program's function. More...
 
std::string argv0
 Name of the program. More...
 
int debugLevel
 Debug level for this run of the program. More...
 
CommandOptionNoArg debugOption
 Enable/increase debugging output. More...
 
CommandOptionHelpUsage helpOption
 Request command-line option usage. More...
 
int verboseLevel
 Verbose level for this run of the program. More...
 
CommandOptionNoArg verboseOption
 Enable/increase informational output. More...
 

Member Typedef Documentation

◆ OutputMap

Map system to output stream.

Definition at line 55 of file RinEditNav.cpp.

◆ StrmPtr

using RinEditNav::StrmPtr = shared_ptr<Rinex3NavStream>

Nav stream shared (managed) pointer.

Definition at line 53 of file RinEditNav.cpp.

Constructor & Destructor Documentation

◆ RinEditNav()

RinEditNav::RinEditNav ( const string &  applName)

Definition at line 154 of file RinEditNav.cpp.

Member Function Documentation

◆ initialize()

bool RinEditNav::initialize ( int  argc,
char *  argv[],
bool  pretty = true 
)
throw (
)
overridevirtual

Process command line arguments. When this method is overridden, make sure to call the parent class's initialize().

Parameters
[in]argcsame as main() argc.
[in]argvsame as main() argv.
[in]prettyWhether the 'pretty print' option will be used when printing descriptions. It is 'TRUE' by default.
Returns
true if normal processing should proceed (i.e. no command line errors or help requests).
Todo:
do not allow output filename(s) in files

Reimplemented from gnsstk::BasicFramework.

Definition at line 182 of file RinEditNav.cpp.

◆ makeSysMappings()

void RinEditNav::makeSysMappings ( )

Create the mappings from system string to enum.

Definition at line 519 of file RinEditNav.cpp.

◆ parseOut()

bool RinEditNav::parseOut ( const CommandOptionWithAnyArg opt,
OutputMap outMap,
set< string > &  outFNs 
)

Parse the RINEX 3 or RINEX 2 output options.

Parameters
[in]optThe command line option to process output file names from.
[out]outMapWhere the opened streams will be stored.
[in,out]outFNsUsed to make sure we don't attempt to open a file more than once.
Returns
true on success, false on failure.

Definition at line 362 of file RinEditNav.cpp.

◆ process()

void RinEditNav::process ( )
overridevirtual

Processing to be performed. This method should be implemeneted by the end-user.

Reimplemented from gnsstk::BasicFramework.

Definition at line 283 of file RinEditNav.cpp.

◆ writeHeaders()

void RinEditNav::writeHeaders ( )

Write the headers for all open output streams. Merges input headers.

Definition at line 420 of file RinEditNav.cpp.

Member Data Documentation

◆ dataMap

map<StrmPtr, Rinex3NavData> RinEditNav::dataMap

Map stream to data.

Definition at line 131 of file RinEditNav.cpp.

◆ DefRINEX2Ver

constexpr double RinEditNav::DefRINEX2Ver = 2.11
staticconstexpr

RINEX version to use when writing out RINEX 2 format.

Definition at line 58 of file RinEditNav.cpp.

◆ eTimeOpt

CommandOptionWithTimeArg RinEditNav::eTimeOpt

Command option for end time for matching.

Definition at line 119 of file RinEditNav.cpp.

◆ exclSats

set<SatID> RinEditNav::exclSats

Excluded satellites.

Definition at line 139 of file RinEditNav.cpp.

◆ excludeOpt

CommandOptionWithAnyArg RinEditNav::excludeOpt

Command option for excluding specific satellites.

Definition at line 121 of file RinEditNav.cpp.

◆ filesOpt

CommandOptionRest RinEditNav::filesOpt

Command option for input files.

Definition at line 129 of file RinEditNav.cpp.

◆ id1map

map<string,SatelliteSystem> RinEditNav::id1map

Single character RINEX system IDs.

Definition at line 145 of file RinEditNav.cpp.

◆ id3map

map<string,SatelliteSystem> RinEditNav::id3map

Three character RINEX system IDs.

Definition at line 147 of file RinEditNav.cpp.

◆ maxTime

CommonTime RinEditNav::maxTime

First time to NOT be included from input data.

Definition at line 143 of file RinEditNav.cpp.

◆ minTime

CommonTime RinEditNav::minTime

First time to be included from input data.

Definition at line 141 of file RinEditNav.cpp.

◆ orderMap

multimap<CommonTime, StrmPtr> RinEditNav::orderMap

Map time stamp of record in dataMap to stream.

Definition at line 133 of file RinEditNav.cpp.

◆ output2Map

OutputMap RinEditNav::output2Map

Map satellite system to RINEX 2 output stream.

Definition at line 137 of file RinEditNav.cpp.

◆ output2Opt

CommandOptionWithAnyArg RinEditNav::output2Opt

Command option for output file (RINEX 2)

Definition at line 125 of file RinEditNav.cpp.

◆ output3Map

OutputMap RinEditNav::output3Map

Map satellite system to RINEX 3 output stream.

Definition at line 135 of file RinEditNav.cpp.

◆ output3Opt

CommandOptionWithAnyArg RinEditNav::output3Opt

Command option for output file (RINEX 3)

Definition at line 123 of file RinEditNav.cpp.

◆ outputOpts

CommandOptionOneOf RinEditNav::outputOpts

Make sure at least one of the output options has been used.

Definition at line 127 of file RinEditNav.cpp.

◆ timeOpt

CommandOptionWithTimeArg RinEditNav::timeOpt

Command option for start time for matching.

Definition at line 117 of file RinEditNav.cpp.

◆ uniques

set<UniqueNav> RinEditNav::uniques

Keep track of written data for removing duplicates.

Definition at line 149 of file RinEditNav.cpp.


The documentation for this class was generated from the following file:


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:43