SP3Stream Class Reference

#include <SP3Stream.hpp>

Inheritance diagram for SP3Stream:

Inheritance graph
[legend]
Collaboration diagram for SP3Stream:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class performs file I/O on an SP3 file for the SP3Header and SP3Data classes.

Note that the file format (a, b or c) is stored in the SP3Header (only). On input it is set by SP3Header::reallyGetRecord() by the file content; for output it may be set (SP3Header::setVersion()) before streaming.

Definition at line 60 of file SP3Stream.hpp.

Public Member Functions

 SP3Stream ()
 Default constructor.
 SP3Stream (const char *filename, std::ios::openmode mode=std::ios::in)
 Common constructor: open (default: to read).
virtual ~SP3Stream ()
 destructor; override to force 'close'
virtual void close (void) throw (Exception)
 override close() to write EOF line
virtual void open (const char *filename, std::ios::openmode mode)
 override open() to reset the header

Public Attributes

data members
SP3Header header
 SP3Header for this file.
bool wroteEOF
 True if the final 'EOF' has been read.
bool writingMode
 True if the stream is open in 'out', not 'in', mode.
CommonTime currentEpoch
 Time from last epoch record read.
std::string lastLine
 Last line read, perhaps not yet processed.
std::vector< std::string > warnings
 warnings produced by reallyGetRecord()s


Constructor & Destructor Documentation

SP3Stream  )  [inline]
 

Default constructor.

Definition at line 64 of file SP3Stream.hpp.

SP3Stream const char *  filename,
std::ios::openmode  mode = std::ios::in
[inline]
 

Common constructor: open (default: to read).

Parameters:
filename the name of the ASCII SP3 format file to be opened
mode the ios::openmode to be used

Definition at line 73 of file SP3Stream.hpp.

virtual ~SP3Stream  )  [inline, virtual]
 

destructor; override to force 'close'

Definition at line 79 of file SP3Stream.hpp.


Member Function Documentation

virtual void close void   )  throw (Exception) [inline, virtual]
 

override close() to write EOF line

Definition at line 85 of file SP3Stream.hpp.

References gpstk::ge(), and GPSTK_THROW.

Referenced by SP3EphemerisStore::loadFile(), and main().

virtual void open const char *  filename,
std::ios::openmode  mode
[inline, virtual]
 

override open() to reset the header

Parameters:
filename the name of the ASCII SP3 format file to be opened
mode the ios::openmode to be used

Reimplemented from FFTextStream.

Definition at line 104 of file SP3Stream.hpp.

Referenced by SP3EphemerisStore::loadFile(), and main().


Member Data Documentation

CommonTime currentEpoch
 

Time from last epoch record read.

Definition at line 125 of file SP3Stream.hpp.

Referenced by SP3Data::reallyGetRecord().

SP3Header header
 

SP3Header for this file.

Definition at line 122 of file SP3Stream.hpp.

Referenced by SP3Header::reallyGetRecord(), SP3Data::reallyGetRecord(), SP3Header::reallyPutRecord(), and SP3Data::reallyPutRecord().

std::string lastLine
 

Last line read, perhaps not yet processed.

Definition at line 126 of file SP3Stream.hpp.

Referenced by SP3Data::reallyGetRecord().

std::vector<std::string> warnings
 

warnings produced by reallyGetRecord()s

Definition at line 127 of file SP3Stream.hpp.

Referenced by SP3Data::reallyGetRecord().

bool writingMode
 

True if the stream is open in 'out', not 'in', mode.

Definition at line 124 of file SP3Stream.hpp.

bool wroteEOF
 

True if the final 'EOF' has been read.

Definition at line 123 of file SP3Stream.hpp.


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