RinexClockData Class Reference
[Ephemstore]

#include <RinexClockData.hpp>

Inheritance diagram for RinexClockData:

Inheritance graph
[legend]
Collaboration diagram for RinexClockData:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class encapsulates data for satellite clocks as found in RINEX Clock format files, and is used in conjuction with class RinexClockStream, which handles the I/O, and RinexClockHeader, which holds information from the RinexClock file header.

 RinexClockStream ss("igs14080.clk_30s");
 RinexClockHeader sh;
 RinexClockData sd;

 ss >> sh;

 while (ss >> sd) {
    // Interesting stuff...
 }    

 RinexClockStream ssout("myfile.clk_30s", ios::out);
 ssout << sh;
 for(...) {
    // perhaps modify sd
    ssout << sd
 }

See also:
gpstk::RinexClockHeader and gpstk::RinexClockStream for more information.

Definition at line 48 of file RinexClockData.hpp.

Public Member Functions

 RinexClockData ()
 Constructor.
virtual ~RinexClockData ()
 Destructor.
virtual bool isData () const
 RinexClockData is "data" so this function always returns true.
virtual void dump (std::ostream &s=std::cout) const throw ()
 Debug output function.

Public Attributes

data members
std::string datatype
 Data type : AR, AS, etc.
RinexSatID sat
 Satellite ID (if AS).
std::string site
 Site label (4-char) (if AR).
CommonTime time
 Time of epoch for this record.
double bias
 Clock bias in seconds.
double sig_bias
 Clock bias sigma in seconds.
double drift
 Clock drift in sec/sec.
double sig_drift
 Clock drift sigma in sec/sec.
double accel
 Clock acceleration in 1/sec.
double sig_accel
 Clock acceleration sigma in 1/sec.

Protected Member Functions

void clear (void) throw ()
virtual void reallyPutRecord (FFStream &s) const throw (std::exception, FFStreamError, gpstk::StringUtils::StringException)
 Writes the formatted record to the FFStream s.
virtual void reallyGetRecord (FFStream &s) throw (std::exception, FFStreamError, gpstk::StringUtils::StringException)
 This function reads a record from the given FFStream.


Constructor & Destructor Documentation

RinexClockData  )  [inline]
 

Constructor.

Definition at line 52 of file RinexClockData.hpp.

virtual ~RinexClockData  )  [inline, virtual]
 

Destructor.

Definition at line 55 of file RinexClockData.hpp.


Member Function Documentation

void clear void   )  throw () [inline, protected]
 

Definition at line 80 of file RinexClockData.hpp.

void dump std::ostream &  s = std::cout  )  const throw () [virtual]
 

Debug output function.

Reimplemented from FFData.

Definition at line 145 of file RinexClockData.cpp.

References gpstk::printTime().

virtual bool isData void   )  const [inline, virtual]
 

RinexClockData is "data" so this function always returns true.

Reimplemented from FFData.

Definition at line 59 of file RinexClockData.hpp.

void reallyGetRecord FFStream s  )  throw (std::exception, FFStreamError, gpstk::StringUtils::StringException) [protected, virtual]
 

This function reads a record from the given FFStream.

If an error is encountered in retrieving the record, the stream is reset to its original position and its fail-bit is set.

Exceptions:
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 FFData.

Definition at line 87 of file RinexClockData.cpp.

References gpstk::StringUtils::asDouble(), gpstk::StringUtils::asInt(), FFTextStream::formattedGetLine(), GPSTK_THROW, gpstk::StringUtils::strip(), and gpstk::StringUtils::stripTrailing().

void reallyPutRecord FFStream s  )  const throw (std::exception, FFStreamError, gpstk::StringUtils::StringException) [protected, virtual]
 

Writes the formatted record to the FFStream s.

Warning:
This function is currently unimplemented

Implements FFData.

Definition at line 20 of file RinexClockData.cpp.

References gpstk::StringUtils::asString(), gpstk::StringUtils::doubleToScientific(), GPSTK_THROW, FFTextStream::lineNumber, gpstk::printTime(), and gpstk::StringUtils::rightJustify().


Member Data Documentation

double accel
 

Clock acceleration in 1/sec.

Definition at line 74 of file RinexClockData.hpp.

Referenced by RinexClockStore::loadFile(), and SP3EphemerisStore::loadRinexClockFile().

double bias
 

Clock bias in seconds.

Definition at line 70 of file RinexClockData.hpp.

Referenced by RinexClockStore::loadFile(), and SP3EphemerisStore::loadRinexClockFile().

std::string datatype
 

Data type : AR, AS, etc.

Definition at line 66 of file RinexClockData.hpp.

Referenced by RinexClockStore::loadFile(), and SP3EphemerisStore::loadRinexClockFile().

double drift
 

Clock drift in sec/sec.

Definition at line 72 of file RinexClockData.hpp.

Referenced by RinexClockStore::loadFile(), and SP3EphemerisStore::loadRinexClockFile().

RinexSatID sat
 

Satellite ID (if AS).

Definition at line 67 of file RinexClockData.hpp.

Referenced by RinexClockStore::loadFile(), and SP3EphemerisStore::loadRinexClockFile().

double sig_accel
 

Clock acceleration sigma in 1/sec.

Definition at line 75 of file RinexClockData.hpp.

Referenced by RinexClockStore::loadFile(), and SP3EphemerisStore::loadRinexClockFile().

double sig_bias
 

Clock bias sigma in seconds.

Definition at line 71 of file RinexClockData.hpp.

Referenced by RinexClockStore::loadFile(), and SP3EphemerisStore::loadRinexClockFile().

double sig_drift
 

Clock drift sigma in sec/sec.

Definition at line 73 of file RinexClockData.hpp.

Referenced by RinexClockStore::loadFile(), and SP3EphemerisStore::loadRinexClockFile().

std::string site
 

Site label (4-char) (if AR).

Definition at line 68 of file RinexClockData.hpp.

CommonTime time
 

Time of epoch for this record.

Definition at line 69 of file RinexClockData.hpp.

Referenced by RinexClockStore::loadFile(), and SP3EphemerisStore::loadRinexClockFile().


The documentation for this class was generated from the following files:
Generated on Thu May 23 03:31:52 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1