SEMData Class Reference
[SEM Almanac files]

#include <SEMData.hpp>

Inheritance diagram for SEMData:

Inheritance graph
[legend]
Collaboration diagram for SEMData:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class stores, reads, and writes SEM records.

Warning:
The SEM header information and data information don't correctly talk to each other at the time of completion of this file. The current fix is in SEMAlamanacStore.hpp.
See also:
tests/SEM for examples

SEMStream.

SEMHeader for information on writing SEM files.

Definition at line 58 of file SEMData.hpp.

Public Member Functions

 SEMData ()
 Constructor.
virtual ~SEMData ()
 Destructor.
virtual void dump (std::ostream &s) const
 Debug output function.
virtual bool isData () const
 This class is "data" so this function always returns "true".
 operator AlmOrbit () const
 cast *this into an AlmOrbit

Public Attributes

short PRN
short SVNnum
short URAnum
double ecc
double i_offset
double OMEGAdot
double Ahalf
double OMEGA0
double w
double M0
double AF0
double AF1
short SV_health
short satConfig
long xmit_time
long Toa
short week

Protected Member Functions

virtual void reallyPutRecord (FFStream &s) const throw (std::exception, FFStreamError, gpstk::StringUtils::StringException)
 Writes a correctly formatted record from this data to stream s.
virtual void reallyGetRecord (FFStream &s) throw (std::exception, FFStreamError, gpstk::StringUtils::StringException)
 This functions obtains a SEM almanac record from the given FFStream.


Constructor & Destructor Documentation

SEMData  )  [inline]
 

Constructor.

Definition at line 63 of file SEMData.hpp.

virtual ~SEMData  )  [inline, virtual]
 

Destructor.

Definition at line 66 of file SEMData.hpp.


Member Function Documentation

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

Debug output function.

Dump the contents of each of the SEM class to a given ostream s.

Reimplemented from FFData.

Definition at line 195 of file SEMData.cpp.

References SEMData::AF0, SEMData::AF1, SEMData::Ahalf, SEMData::ecc, SEMData::i_offset, SEMData::M0, SEMData::OMEGA0, SEMData::OMEGAdot, SEMData::PRN, SEMData::satConfig, SEMData::SV_health, SEMData::SVNnum, SEMData::Toa, SEMData::URAnum, SEMData::w, SEMData::week, and SEMData::xmit_time.

virtual bool isData void   )  const [inline, virtual]
 

This class is "data" so this function always returns "true".

Reimplemented from FFData.

Definition at line 97 of file SEMData.hpp.

operator AlmOrbit  )  const
 

cast *this into an AlmOrbit

Returns:
the constructed AlmOrbit object

Definition at line 216 of file SEMData.cpp.

References SEMData::AF0, SEMData::AF1, SEMData::Ahalf, SEMData::ecc, SEMData::i_offset, SEMData::M0, SEMData::OMEGA0, SEMData::OMEGAdot, SEMData::PRN, SEMData::SV_health, SEMData::Toa, SEMData::w, SEMData::week, and SEMData::xmit_time.

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

This functions obtains a SEM almanac record from the given FFStream.

If there is an error in reading from the stream, it 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 93 of file SEMData.cpp.

References gpstk::StringUtils::asDouble(), gpstk::StringUtils::asInt(), FFTextStream::formattedGetLine(), SEMStream::header, SEMHeader::Toa, and SEMHeader::week.

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

Writes a correctly formatted record from this data to stream s.

Implements FFData.

Definition at line 42 of file SEMData.cpp.

References gpstk::StringUtils::asString(), gpstk::StringUtils::doub2for(), and gpstk::StringUtils::rightJustify().


Member Data Documentation

double AF0
 

Definition at line 79 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().

double AF1
 

Definition at line 80 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().

double Ahalf
 

Definition at line 75 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().

double ecc
 

Definition at line 72 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().

double i_offset
 

Definition at line 73 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().

double M0
 

Definition at line 78 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().

double OMEGA0
 

Definition at line 76 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().

double OMEGAdot
 

Definition at line 74 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().

short PRN
 

Definition at line 69 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().

short satConfig
 

Definition at line 82 of file SEMData.hpp.

Referenced by SEMData::dump().

short SV_health
 

Definition at line 81 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().

short SVNnum
 

Definition at line 70 of file SEMData.hpp.

Referenced by SEMData::dump().

long Toa
 

Definition at line 86 of file SEMData.hpp.

Referenced by SEMData::dump(), SEMAlmanacStore::loadFile(), and SEMData::operator AlmOrbit().

short URAnum
 

Definition at line 71 of file SEMData.hpp.

Referenced by SEMData::dump().

double w
 

Definition at line 77 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().

short week
 

Definition at line 87 of file SEMData.hpp.

Referenced by SEMData::dump(), SEMAlmanacStore::loadFile(), and SEMData::operator AlmOrbit().

long xmit_time
 

Definition at line 84 of file SEMData.hpp.

Referenced by SEMData::dump(), and SEMData::operator AlmOrbit().


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