This class models the RINEX MET header for a RINEX MET file. When writing data, this class determines what data gets written from a RinexMetData object to the RinexMetStream.
Definition at line 70 of file RinexMetHeader.hpp.
#include <RinexMetHeader.hpp>
Classes | |
struct | sensorPosType |
Struct for holding info about a sensor position. More... | |
struct | sensorType |
Struct for holding information about a sensor. More... | |
Public Types | |
enum | RinexMetType { PR, TD, HR, ZW, ZD, ZT, WD, WS, RI, HI } |
Enum for the different types of data in this file. More... | |
enum | validBits { validVersion = 0x01, validRunBy = 0x02, validComment = 0x04, validMarkerName = 0x08, validMarkerNumber = 0x010, validObsType = 0x020, validSensorType = 0x040, validSensorPos = 0x080, validEoH = 0x080000000, allValid20 = 0x0800000EB, allValid21 = 0x0800000EB, allValid211 = 0x0800000EB } |
These are validity bits used in checking the RINEX MET header. More... | |
Public Member Functions | |
bool | compare (const RinexMetHeader &right, std::vector< std::string > &diffs, const std::vector< std::string > &inclExclList, bool incl=false) |
virtual void | dump (std::ostream &s) const |
A debug function that outputs the header to s. More... | |
virtual bool | isHeader (void) const |
RinexMetHeader is a "header" so this function always returns true. More... | |
RinexMetHeader () | |
Constructor. More... | |
virtual | ~RinexMetHeader () |
Destructor. More... | |
![]() | |
virtual | ~RinexMetBase () |
Destructor. 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 std::string | bitsAsString (validBits b) |
static std::string | bitString (unsigned long vb, char quote='\"', std::string sep=", ") |
static std::string | convertObsType (const RinexMetType &oneObs) |
static RinexMetType | convertObsType (const std::string &oneObs) |
Public Attributes | |
std::vector< std::string > | commentList |
A list of comments. More... | |
std::string | date |
When the file was written. More... | |
std::string | fileAgency |
The group who generated it. More... | |
std::string | fileProgram |
The program that generated it. More... | |
std::string | fileType |
The type of file it is. More... | |
std::string | markerName |
The name of the location. More... | |
std::string | markerNumber |
The number of the location. More... | |
std::vector< RinexMetType > | obsTypeList |
std::vector< sensorPosType > | sensorPosList |
A list of sensor positions used in the file. More... | |
std::vector< sensorType > | sensorTypeList |
A list of sensors used in the file. More... | |
unsigned long | valid |
Tell me, Am I valid? More... | |
double | version |
RINEX Version. More... | |
Static Public Attributes | |
static const GNSSTK_EXPORT int | maxObsPerLine = 9 |
Holds the max records per line. More... | |
static const GNSSTK_EXPORT std::string | stringComment = "COMMENT" |
"COMMENT" More... | |
static const GNSSTK_EXPORT std::string | stringEoH = "END OF HEADER" |
"END OF HEADER" More... | |
static const GNSSTK_EXPORT std::string | stringMarkerName = "MARKER NAME" |
"MARKER NAME" More... | |
static const GNSSTK_EXPORT std::string | stringMarkerNumber = "MARKER NUMBER" |
"MARKER NUMBER" More... | |
static const GNSSTK_EXPORT std::string | stringObsType = "# / TYPES OF OBSERV" |
"# / TYPES OF OBSERV" More... | |
static const GNSSTK_EXPORT std::string | stringRunBy = "PGM / RUN BY / DATE" |
"PGM / RUN BY / DATE" More... | |
static const GNSSTK_EXPORT std::string | stringSensorPos = "SENSOR POS XYZ/H" |
"SENSOR POS XYZ/H" More... | |
static const GNSSTK_EXPORT std::string | stringSensorType = "SENSOR MOD/TYPE/ACC" |
"SENSOR MOD/TYPE/ACC" More... | |
static const GNSSTK_EXPORT std::string | stringVersion = "RINEX VERSION / TYPE" |
"RINEX VERSION / TYPE" More... | |
Protected Member Functions | |
virtual void | reallyGetRecord (FFStream &s) |
virtual void | reallyPutRecord (FFStream &s) const |
Enum for the different types of data in this file.
Definition at line 81 of file RinexMetHeader.hpp.
These are validity bits used in checking the RINEX MET header.
Definition at line 122 of file RinexMetHeader.hpp.
|
inline |
Constructor.
Definition at line 96 of file RinexMetHeader.hpp.
|
inlinevirtual |
Destructor.
Definition at line 99 of file RinexMetHeader.hpp.
|
inlinestatic |
Definition at line 146 of file RinexMetHeader.hpp.
|
static |
Definition at line 71 of file RinexMetHeader.cpp.
bool gnsstk::RinexMetHeader::compare | ( | const RinexMetHeader & | right, |
std::vector< std::string > & | diffs, | ||
const std::vector< std::string > & | inclExclList, | ||
bool | incl = false |
||
) |
Compare this header with another.
right | the header to compare this with. |
inclExclList | a list of header strings to be ignored or used when making the comparison (e.g. "RINEX VERSION / TYPE"). |
incl | When true, only header lines listed in inclExclList will be compared. When false, differences in header lines in inclExclList will be ignored. |
Definition at line 503 of file RinexMetHeader.cpp.
|
static |
Converts a RinexMetType to its string equivalent.
FFStreamError |
Definition at line 483 of file RinexMetHeader.cpp.
|
static |
sets the obs type array given an obs type line
FFStreamError |
Definition at line 464 of file RinexMetHeader.cpp.
|
virtual |
A debug function that outputs the header to s.
Reimplemented from gnsstk::FFData.
Definition at line 446 of file RinexMetHeader.cpp.
|
inlinevirtual |
RinexMetHeader is a "header" so this function always returns true.
Reimplemented from gnsstk::FFData.
Definition at line 103 of file RinexMetHeader.hpp.
|
protectedvirtual |
This function reads the RINEX MET header from the given FFStream. If an error is encountered in reading from the stream, 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 257 of file RinexMetHeader.cpp.
|
protectedvirtual |
Writes the RINEX Met header to the stream s.
std::exception | |
FFStreamError | |
StringUtils::StringException |
This is the R3.0 version standard.
Implements gnsstk::FFData.
Definition at line 92 of file RinexMetHeader.cpp.
std::vector<std::string> gnsstk::RinexMetHeader::commentList |
A list of comments.
Definition at line 203 of file RinexMetHeader.hpp.
std::string gnsstk::RinexMetHeader::date |
When the file was written.
Definition at line 202 of file RinexMetHeader.hpp.
std::string gnsstk::RinexMetHeader::fileAgency |
The group who generated it.
Definition at line 201 of file RinexMetHeader.hpp.
std::string gnsstk::RinexMetHeader::fileProgram |
The program that generated it.
Definition at line 200 of file RinexMetHeader.hpp.
std::string gnsstk::RinexMetHeader::fileType |
The type of file it is.
Definition at line 199 of file RinexMetHeader.hpp.
std::string gnsstk::RinexMetHeader::markerName |
The name of the location.
Definition at line 204 of file RinexMetHeader.hpp.
std::string gnsstk::RinexMetHeader::markerNumber |
The number of the location.
Definition at line 205 of file RinexMetHeader.hpp.
|
static |
Holds the max records per line.
Definition at line 218 of file RinexMetHeader.hpp.
std::vector<RinexMetType> gnsstk::RinexMetHeader::obsTypeList |
A list of obs types in the file.
Definition at line 213 of file RinexMetHeader.hpp.
std::vector<sensorPosType> gnsstk::RinexMetHeader::sensorPosList |
A list of sensor positions used in the file.
Definition at line 215 of file RinexMetHeader.hpp.
std::vector<sensorType> gnsstk::RinexMetHeader::sensorTypeList |
A list of sensors used in the file.
Definition at line 214 of file RinexMetHeader.hpp.
|
static |
"COMMENT"
Definition at line 225 of file RinexMetHeader.hpp.
|
static |
"END OF HEADER"
Definition at line 237 of file RinexMetHeader.hpp.
|
static |
"MARKER NAME"
Definition at line 227 of file RinexMetHeader.hpp.
|
static |
"MARKER NUMBER"
Definition at line 229 of file RinexMetHeader.hpp.
|
static |
"# / TYPES OF OBSERV"
Definition at line 231 of file RinexMetHeader.hpp.
|
static |
"PGM / RUN BY / DATE"
Definition at line 223 of file RinexMetHeader.hpp.
|
static |
"SENSOR POS XYZ/H"
Definition at line 235 of file RinexMetHeader.hpp.
|
static |
"SENSOR MOD/TYPE/ACC"
Definition at line 233 of file RinexMetHeader.hpp.
|
static |
"RINEX VERSION / TYPE"
Definition at line 221 of file RinexMetHeader.hpp.
unsigned long gnsstk::RinexMetHeader::valid |
Tell me, Am I valid?
Definition at line 119 of file RinexMetHeader.hpp.
double gnsstk::RinexMetHeader::version |
RINEX Version.
Definition at line 197 of file RinexMetHeader.hpp.