MDPNavSubframe Class Reference

#include <MDPNavSubframe.hpp>

Inheritance diagram for MDPNavSubframe:

Inheritance graph
[legend]
Collaboration diagram for MDPNavSubframe:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class represents a Navigation Subframe Message.

Definition at line 50 of file MDPNavSubframe.hpp.

Public Member Functions

 MDPNavSubframe () throw ()
virtual std::string encode () const throw ()
 Encode this object to a string.
virtual void decode (std::string str) throw ()
 Decode this object from a string.
unsigned long getHOWTime () const throw ()
unsigned int getSFID () const throw ()
unsigned int getSVID () const throw ()
void fillArray (long out[10]) const
void fillArray (uint32_t out[10]) const
void cookSubframe () throw ()
bool checkParity () const throw ()
 Check the parity of the subframe.
virtual std::string getName () const
 Simple accessors for various static thangs.
void dump (std::ostream &out) const throw ()
 Dump some debugging information to the given ostream.

Public Attributes

int prn
 The SV's PRN.
CarrierCode carrier
 This NavSubframe's carrier frequency code.
RangeCode range
 This NavSubframe's range code.
NavCode nav
 This NavSubframe's nav code.
std::vector< uint32_t > subframe
 The Navigation Subframe.
bool cooked
 true if the bits have been set upright
bool inverted
 true when entire subframe has been inverted
bool neededCooking
bool parityGood

Static Public Attributes

const unsigned myLength = 44
 = 16
const unsigned myId = 310


Constructor & Destructor Documentation

MDPNavSubframe  )  throw ()
 

Definition at line 59 of file MDPNavSubframe.cpp.


Member Function Documentation

bool checkParity  )  const throw ()
 

Check the parity of the subframe.

Returns:
true if the parity check passes

Definition at line 214 of file MDPNavSubframe.cpp.

References gpstk::asBin(), MDPNavSubframe::cooked, gpstk::getd30(), MDPNavSubframe::inverted, and MDPNavSubframe::subframe.

Referenced by MDPNavSubframe::cookSubframe().

void cookSubframe  )  throw ()
 

Definition at line 163 of file MDPNavSubframe.cpp.

References MDPNavSubframe::checkParity(), MDPNavSubframe::cooked, gpstk::getd30(), MDPNavSubframe::inverted, MDPNavSubframe::neededCooking, MDPNavSubframe::parityGood, and MDPNavSubframe::subframe.

void decode std::string  str  )  throw () [virtual]
 

Decode this object from a string.

Parameters:
str the string to read from.
Note:
This is a non-destructive decode.

Reimplemented from MDPHeader.

Definition at line 86 of file MDPNavSubframe.cpp.

References gpstk::ccMax, gpstk::range(), and gpstk::rcMax.

void dump std::ostream &  out  )  const throw () [virtual]
 

Dump some debugging information to the given ostream.

Parameters:
out the ostream to write to (default: cout)
level the level of debugging to provide (default: 0)

Reimplemented from MDPHeader.

Definition at line 260 of file MDPNavSubframe.cpp.

References gpstk::dump().

string encode  )  const throw () [virtual]
 

Encode this object to a string.

Returns:
this object as a string.

Reimplemented from MDPHeader.

Definition at line 69 of file MDPNavSubframe.cpp.

References MDPNavSubframe::subframe.

void fillArray uint32_t  out[10]  )  const [inline]
 

Definition at line 79 of file MDPNavSubframe.hpp.

void fillArray long  out[10]  )  const [inline]
 

Definition at line 76 of file MDPNavSubframe.hpp.

unsigned long getHOWTime  )  const throw ()
 

Definition at line 114 of file MDPNavSubframe.cpp.

References MDPNavSubframe::subframe.

virtual std::string getName  )  const [inline, virtual]
 

Simple accessors for various static thangs.

Reimplemented from MDPHeader.

Definition at line 93 of file MDPNavSubframe.hpp.

unsigned int getSFID  )  const throw ()
 

Definition at line 128 of file MDPNavSubframe.cpp.

References MDPNavSubframe::subframe.

Referenced by MDPNavSubframe::getSVID().

unsigned int getSVID  )  const throw ()
 

Definition at line 141 of file MDPNavSubframe.cpp.

References MDPNavSubframe::getSFID(), and MDPNavSubframe::subframe.


Member Data Documentation

CarrierCode carrier
 

This NavSubframe's carrier frequency code.

Definition at line 102 of file MDPNavSubframe.hpp.

bool cooked
 

true if the bits have been set upright

Definition at line 113 of file MDPNavSubframe.hpp.

Referenced by MDPNavSubframe::checkParity(), and MDPNavSubframe::cookSubframe().

bool inverted
 

true when entire subframe has been inverted

Definition at line 114 of file MDPNavSubframe.hpp.

Referenced by MDPNavSubframe::checkParity(), and MDPNavSubframe::cookSubframe().

const unsigned myId = 310 [static]
 

Definition at line 123 of file MDPNavSubframe.hpp.

const unsigned myLength = 44 [static]
 

= 16

Reimplemented from MDPHeader.

Definition at line 122 of file MDPNavSubframe.hpp.

NavCode nav
 

This NavSubframe's nav code.

Definition at line 104 of file MDPNavSubframe.hpp.

bool neededCooking
 

Definition at line 117 of file MDPNavSubframe.hpp.

Referenced by MDPNavSubframe::cookSubframe().

bool parityGood
 

Definition at line 120 of file MDPNavSubframe.hpp.

Referenced by MDPNavSubframe::cookSubframe().

int prn
 

The SV's PRN.

Definition at line 101 of file MDPNavSubframe.hpp.

RangeCode range
 

This NavSubframe's range code.

Definition at line 103 of file MDPNavSubframe.hpp.

std::vector<uint32_t> subframe
 

The Navigation Subframe.

10 4-byte words. There are 11 elements to facilitate access to elements 1-10.

Definition at line 108 of file MDPNavSubframe.hpp.

Referenced by MDPNavSubframe::checkParity(), MDPNavSubframe::cookSubframe(), MDPNavSubframe::encode(), MDPNavSubframe::getHOWTime(), MDPNavSubframe::getSFID(), and MDPNavSubframe::getSVID().


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