This class models the header for a SP3 file.
Definition at line 68 of file SP3Header.hpp.
#include <SP3Header.hpp>
Public Types | |
enum | Version { undefined, SP3a, SP3b, SP3c, SP3d } |
Public Member Functions | |
virtual void | dump (std::ostream &s=std::cout) const noexcept |
Dump contents to an ostream. More... | |
Version | getVersion (void) const noexcept |
virtual bool | isHeader () const |
SP3Header is a "header" so this function always returns true. More... | |
Version | setVersion (const Version ver) noexcept |
SP3Header () | |
constructor More... | |
std::string | timeSystemString () const noexcept |
return a string with time system name More... | |
char | versionChar (void) const noexcept |
std::string | versionString (void) const noexcept |
virtual | ~SP3Header () |
destructor More... | |
![]() | |
virtual | ~SP3Base () |
Destructor per the coding standards. More... | |
![]() | |
void | getRecord (FFStream &s) |
virtual bool | isData () const |
void | putRecord (FFStream &s) const |
virtual | ~FFData (void) |
virtual desctuctor More... | |
Static Public Member Functions | |
static char | versionChar (Version ver) noexcept |
static std::string | versionString (Version ver) noexcept |
Public Attributes | |
std::string | agency |
Agency generating the Orbit. More... | |
bool | allowSP3aEvents |
If true, file may contain NGA SP3a events. More... | |
double | baseClk |
double | basePV |
Base used in Pos or Vel (mm or 10**-4mm/sec) More... | |
std::vector< std::string > | comments |
vector of 4 comment lines More... | |
bool | containsVelocity |
If true, file contains velocities. More... | |
std::string | coordSystem |
Coordinate System of the data. More... | |
std::string | dataUsed |
Types of data input into the positions. More... | |
double | epochInterval |
Duration of Epoch in seconds. More... | |
int | numberOfEpochs |
Number of epochs in this file. More... | |
std::string | orbitType |
Type of Orbit Estimate. More... | |
std::map< SP3SatID, short > | satList |
Map<SP3SatID,accuracy flag> (all SVs in file) More... | |
SP3SatID | system |
system of satellites in file, e.g. G for GPS More... | |
CommonTime | time |
Time of first Epoch in file. More... | |
TimeSystem | timeSystem |
Time system used. More... | |
Version | version |
SP3 Version or file format. More... | |
Protected Member Functions | |
virtual void | reallyGetRecord (FFStream &s) |
virtual void | reallyPutRecord (FFStream &s) const |
Friends | |
class | SP3Data |
Supported SP3 versions (file formats) : 'a' 'b' 'c' or 'd' See the SP3 format definition documents.
Definition at line 74 of file SP3Header.hpp.
|
inline |
constructor
Definition at line 84 of file SP3Header.hpp.
|
inlinevirtual |
destructor
Definition at line 90 of file SP3Header.hpp.
|
virtualnoexcept |
Dump contents to an ostream.
Reimplemented from gnsstk::FFData.
Definition at line 534 of file SP3Header.cpp.
|
inlinenoexcept |
access the version or file format
Definition at line 94 of file SP3Header.hpp.
|
inlinevirtual |
SP3Header is a "header" so this function always returns true.
Reimplemented from gnsstk::FFData.
Definition at line 169 of file SP3Header.hpp.
|
protectedvirtual |
This function retrieves the SP3 header from the given FFStream. If an error is encountered in the retrieval of the header, the stream is reset to its original position and its fail-bit is set.
std::exception | |
StringException | when a StringUtils function fails |
FFStreamError | when exceptions(failbit) is set and a read or formatting error occurs. This also resets the stream to its pre-read position. |
Implements gnsstk::FFData.
Definition at line 58 of file SP3Header.cpp.
|
protectedvirtual |
Writes the record formatted to the FFStream s.
std::exception | |
StringException | when a StringUtils function fails |
StringUtils::StringException |
Implements gnsstk::FFData.
Definition at line 308 of file SP3Header.cpp.
set the version or file format. Note that reading an SP3 file automatically sets the version in the SP3Header object that is read.
ver | the Version to be assigned to this header |
Definition at line 156 of file SP3Header.hpp.
|
inlinenoexcept |
return a string with time system name
Definition at line 164 of file SP3Header.hpp.
|
inlinestaticnoexcept |
access the version or file format as a character
ver | SP3 version |
Definition at line 106 of file SP3Header.hpp.
|
inlinenoexcept |
access the version or file format as a character
Definition at line 98 of file SP3Header.hpp.
|
inlinestaticnoexcept |
access the version or file format as a string
ver | SP3 version |
Definition at line 134 of file SP3Header.hpp.
|
inlinenoexcept |
access the version or file format as a string
Definition at line 126 of file SP3Header.hpp.
|
friend |
Definition at line 198 of file SP3Header.hpp.
std::string gnsstk::SP3Header::agency |
Agency generating the Orbit.
Definition at line 186 of file SP3Header.hpp.
bool gnsstk::SP3Header::allowSP3aEvents |
If true, file may contain NGA SP3a events.
Definition at line 179 of file SP3Header.hpp.
double gnsstk::SP3Header::baseClk |
Base used in Clk or rate (psec or 10**-4psec/sec)
Definition at line 192 of file SP3Header.hpp.
double gnsstk::SP3Header::basePV |
Base used in Pos or Vel (mm or 10**-4mm/sec)
Definition at line 191 of file SP3Header.hpp.
std::vector<std::string> gnsstk::SP3Header::comments |
vector of 4 comment lines
Definition at line 196 of file SP3Header.hpp.
bool gnsstk::SP3Header::containsVelocity |
If true, file contains velocities.
Definition at line 178 of file SP3Header.hpp.
std::string gnsstk::SP3Header::coordSystem |
Coordinate System of the data.
Definition at line 184 of file SP3Header.hpp.
std::string gnsstk::SP3Header::dataUsed |
Types of data input into the positions.
Definition at line 183 of file SP3Header.hpp.
double gnsstk::SP3Header::epochInterval |
Duration of Epoch in seconds.
Definition at line 181 of file SP3Header.hpp.
int gnsstk::SP3Header::numberOfEpochs |
Number of epochs in this file.
Definition at line 182 of file SP3Header.hpp.
std::string gnsstk::SP3Header::orbitType |
Type of Orbit Estimate.
Definition at line 185 of file SP3Header.hpp.
std::map<SP3SatID, short> gnsstk::SP3Header::satList |
Map<SP3SatID,accuracy flag> (all SVs in file)
Definition at line 194 of file SP3Header.hpp.
SP3SatID gnsstk::SP3Header::system |
system of satellites in file, e.g. G for GPS
Definition at line 189 of file SP3Header.hpp.
CommonTime gnsstk::SP3Header::time |
Time of first Epoch in file.
Definition at line 180 of file SP3Header.hpp.
TimeSystem gnsstk::SP3Header::timeSystem |
Time system used.
Definition at line 190 of file SP3Header.hpp.
Version gnsstk::SP3Header::version |
SP3 Version or file format.
The SP3 version (file format) is initially undefined, but it will be assigned by reallyGetRecord() while reading, and may be reassigned by the user before writing.
Definition at line 177 of file SP3Header.hpp.