SMODFData Class Reference
[ICD-GPS-211 Classes]

#include <SMODFData.hpp>

Inheritance diagram for SMODFData:

Inheritance graph
[legend]
Collaboration diagram for SMODFData:

Collaboration graph
[legend]
List of all members.

Detailed Description

Model for a Smoothed Measurement Data File Data Record.

Definition at line 61 of file SMODFData.hpp.

Public Member Functions

 SMODFData ()
 constructor
virtual ~SMODFData ()
 destructor
virtual bool isData () const
 SMODFData is data, so this function always returns true.
virtual void dump (std::ostream &s) const
 Send debug output to the given stream.

Static Public Member Functions

std::string doub2funny (const double &num, const std::string::size_type length, const std::string::size_type expLen)
 Convert a double to the "funny" format specified in the '211.

Public Attributes

gpstk::CommonTime time
 the date of this data (from year DOY, SOD)
short PRNID
 PRN number.
long station
 NIMA Monitor Station number (85408, etc.).
short channel
 receiver channel
short type
 Data type ( 0 = range, 9 = delta/doppler range ).
short lol
 Loss of lock flag.
long double obs
 Observed data (range or delta range meas).
double stdDev
 standard deviation of observation
short tempSource
 temperature source flag (0 = not available, 1 = measured value, 2 = default value)
short pressSource
 pressure source flag (0 = not available, 1 = measured value, 2 = default value)
short humidSource
 humidity source flag (0 = not available, 1 = measured value, 2 = default value)
double temp
 temperature (degrees C)
double pressure
 pressure (mb)
double humidity
 relative humidity ()

Protected Member Functions

virtual void reallyPutRecord (gpstk::FFStream &s) const throw (std::exception, gpstk::FFStreamError, gpstk::StringUtils::StringException)
 Writes a smodfdata object in the format specified by the stream to the stream.
virtual void reallyGetRecord (gpstk::FFStream &s) throw (std::exception, gpstk::FFStreamError, gpstk::StringUtils::StringException)
 Retrieve a SMODFData record from the given gpstk::FFStream.


Constructor & Destructor Documentation

SMODFData  )  [inline]
 

constructor

Definition at line 65 of file SMODFData.hpp.

References gpstk::BEGINNING_OF_TIME.

virtual ~SMODFData  )  [inline, virtual]
 

destructor

Definition at line 69 of file SMODFData.hpp.


Member Function Documentation

string doub2funny const double &  num,
const std::string::size_type  length,
const std::string::size_type  expLen
[static]
 

Convert a double to the "funny" format specified in the '211.

Definition at line 319 of file SMODFData.cpp.

References gpstk::StringUtils::doub2sci().

void dump std::ostream &  s  )  const [virtual]
 

Send debug output to the given stream.

Parameters:
s a generic output stream

Reimplemented from FFData.

Definition at line 169 of file SMODFData.cpp.

References SMODFData::PRNID, SMODFData::station, SMODFData::time, and SMODFData::type.

virtual bool isData void   )  const [inline, virtual]
 

SMODFData is data, so this function always returns true.

Reimplemented from FFData.

Definition at line 91 of file SMODFData.hpp.

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

Retrieve a SMODFData record from the given gpstk::FFStream.

If there is a problem with reading from the stream, it is reset to its original position and its fail-bit is set.

Exceptions:
StringException when a gpstk::StringUtils function fails
gpstk::FFStreamError when exceptions(failbit) is set and a read or formatting error occurs. This also resets the stream to its pre-read position.

Definition at line 175 of file SMODFData.cpp.

References gpstk::StringUtils::asDouble(), gpstk::StringUtils::asInt(), gpstk::StringUtils::asString(), gpstk::StringUtils::for2doub(), SMODFStream::format, FFTextStream::formattedGetLine(), and GPSTK_THROW.

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

Writes a smodfdata object in the format specified by the stream to the stream.

Definition at line 59 of file SMODFData.cpp.

References Exception::addText(), gpstk::StringUtils::asString(), gpstk::StringUtils::doub2for(), SMODFStream::format, GPSTK_THROW, FFTextStream::lineNumber, gpstk::printTime(), and gpstk::StringUtils::rightJustify().


Member Data Documentation

short channel
 

receiver channel

Definition at line 74 of file SMODFData.hpp.

double humidity
 

relative humidity ()

Definition at line 88 of file SMODFData.hpp.

short humidSource
 

humidity source flag (0 = not available, 1 = measured value, 2 = default value)

Definition at line 84 of file SMODFData.hpp.

short lol
 

Loss of lock flag.

0 = OK, 1 = loss ( only used for type = 9 )

Definition at line 76 of file SMODFData.hpp.

Referenced by ObsReader::getObsEpoch().

long double obs
 

Observed data (range or delta range meas).

Definition at line 78 of file SMODFData.hpp.

Referenced by ObsReader::getObsEpoch().

short pressSource
 

pressure source flag (0 = not available, 1 = measured value, 2 = default value)

Definition at line 82 of file SMODFData.hpp.

double pressure
 

pressure (mb)

Definition at line 87 of file SMODFData.hpp.

short PRNID
 

PRN number.

Definition at line 72 of file SMODFData.hpp.

Referenced by SMODFData::dump(), and ObsReader::getObsEpoch().

long station
 

NIMA Monitor Station number (85408, etc.).

Definition at line 73 of file SMODFData.hpp.

Referenced by SMODFData::dump(), and ObsReader::getObsEpoch().

double stdDev
 

standard deviation of observation

Definition at line 79 of file SMODFData.hpp.

double temp
 

temperature (degrees C)

Definition at line 86 of file SMODFData.hpp.

short tempSource
 

temperature source flag (0 = not available, 1 = measured value, 2 = default value)

Definition at line 80 of file SMODFData.hpp.

gpstk::CommonTime time
 

the date of this data (from year DOY, SOD)

Definition at line 71 of file SMODFData.hpp.

Referenced by SMODFData::dump(), and ObsReader::getObsEpoch().

short type
 

Data type ( 0 = range, 9 = delta/doppler range ).

Definition at line 75 of file SMODFData.hpp.

Referenced by SMODFData::dump(), and ObsReader::getObsEpoch().


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