MDPStream Class Reference

#include <MDPStream.hpp>

Inheritance diagram for MDPStream:

Inheritance graph
[legend]
Collaboration diagram for MDPStream:

Collaboration graph
[legend]
List of all members.

Detailed Description

This is a stream used to decode data in the MDP format.

Definition at line 55 of file MDPStream.hpp.

Public Types

enum  { outOfSync, gotHeader, gotBody }
 Used to track what has been retrieved from the stream. More...

Public Member Functions

 MDPStream ()
 MDPStream (const char *fn, std::ios::openmode mode=std::ios::in)
virtual ~MDPStream ()
 destructor per the coding standards
virtual void open (const char *fn, std::ios::openmode mode=std::ios::in)
 overrides open to reset the header

Public Attributes

enum gpstk::MDPStream:: { ... }  streamState
 Used to track what has been retrieved from the stream.
MDPHeader header
 A copy of the most recent header read.
unsigned long headerCount
std::string rawHeader
 The raw bytes of the above header.


Member Enumeration Documentation

anonymous enum
 

Used to track what has been retrieved from the stream.

Enumeration values:
outOfSync 
gotHeader 
gotBody 

Definition at line 86 of file MDPStream.hpp.


Constructor & Destructor Documentation

MDPStream  )  [inline]
 

Definition at line 58 of file MDPStream.hpp.

MDPStream const char *  fn,
std::ios::openmode  mode = std::ios::in
[inline]
 

Parameters:
fn the name of the MDP file to be opened
mode the ios::openmode to be used on fn

Definition at line 67 of file MDPStream.hpp.

virtual ~MDPStream  )  [inline, virtual]
 

destructor per the coding standards

Definition at line 75 of file MDPStream.hpp.


Member Function Documentation

virtual void open const char *  fn,
std::ios::openmode  mode = std::ios::in
[inline, virtual]
 

overrides open to reset the header

Reimplemented from FFBinaryStream.

Definition at line 79 of file MDPStream.hpp.


Member Data Documentation

MDPHeader header
 

A copy of the most recent header read.

Definition at line 89 of file MDPStream.hpp.

Referenced by MDPHeader::readHeader(), and MDPHeader::reallyGetRecord().

unsigned long headerCount
 

Definition at line 90 of file MDPStream.hpp.

std::string rawHeader
 

The raw bytes of the above header.

Definition at line 93 of file MDPStream.hpp.

Referenced by MDPHeader::readHeader(), and MDPHeader::reallyGetRecord().

enum { ... } streamState
 

Used to track what has been retrieved from the stream.

Referenced by MDPHeader::readHeader(), and MDPHeader::reallyGetRecord().


The documentation for this class was generated from the following file:
Generated on Wed Feb 8 03:31:34 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1