#include <MDPHeader.hpp>
Inheritance diagram for MDPHeader:


Definition at line 73 of file MDPHeader.hpp.
Public Member Functions | |
| MDPHeader () throw () | |
| bool | isValid () const |
| virtual bool | isData () const |
| This class is "data" so this function always returns "true". | |
| 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. | |
| 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. | |
| void | setCRC (std::string &str) const throw (FFStreamError) |
| Compute the CRC over the string and set the CRC in that string and in the header. | |
| void | checkCRC (std::string str) throw () |
| Checks the crc of the message and set crc_err if it fails. | |
| void | readHeader (MDPStream &s) throw (FFStreamError, EndOfFile) |
| std::string | readBody (MDPStream &s) throw (FFStreamError, EndOfFile) |
Public Attributes | |
| unsigned short | id |
| Identifies this data's type. | |
| gpstk::CommonTime | time |
| The time associated with this message. | |
| unsigned short | freshnessCount |
| A message counter. | |
| unsigned short | length |
| number of bytes in this message (includes the length of the header) | |
| unsigned short | crc |
| the 16 bit CCITT crc covering the header and body of the message | |
Static Public Attributes | |
| const uint16_t | myLength = 16 |
| = 16 | |
| const uint16_t | frameWord = 0x9c9c |
| = 0x9c9c | |
| int | debugLevel = 0 |
| bool | hexDump = false |
Protected Member Functions | |
| virtual void | reallyPutRecord (FFStream &s) const throw (std::exception, StringUtils::StringException, FFStreamError) |
| Does the actual writing from the stream into this FFData object. | |
| virtual void | reallyGetRecord (FFStream &s) throw (std::exception, StringUtils::StringException, FFStreamError, EndOfFile) |
| Does the actual reading from the stream into this FFData object. | |
|
|
Definition at line 76 of file MDPHeader.hpp. |
|
|
Checks the crc of the message and set crc_err if it fails.
Definition at line 182 of file MDPHeader.cpp. References gpstk::BinUtils::computeCRC(). Referenced by FFIdentifier::FFIdentifier(). |
|
|
Decode this object from a string.
Reimplemented in MDPNavSubframe, MDPObsEpoch, MDPPVTSolution, and MDPSelftestStatus. Definition at line 104 of file MDPHeader.cpp. References gpstk::dump(). |
|
|
Dump some debugging information to the given ostream.
Reimplemented from FFData. Reimplemented in MDPNavSubframe, MDPObsEpoch, MDPPVTSolution, and MDPSelftestStatus. Definition at line 431 of file MDPHeader.cpp. References gpstk::printTime(). Referenced by MDPHeader::reallyGetRecord(). |
|
|
Encode this object to a string.
Reimplemented in MDPNavSubframe, MDPObsEpoch, MDPPVTSolution, and MDPSelftestStatus. Definition at line 76 of file MDPHeader.cpp. |
|
|
Simple accessors for various static thangs.
Reimplemented in MDPNavSubframe, MDPObsEpoch, MDPPVTSolution, and MDPSelftestStatus. Definition at line 97 of file MDPHeader.hpp. |
|
|
This class is "data" so this function always returns "true".
Reimplemented from FFData. Definition at line 83 of file MDPHeader.hpp. |
|
|
Definition at line 80 of file MDPHeader.hpp. |
|
|
Definition at line 312 of file MDPHeader.cpp. Referenced by FFIdentifier::FFIdentifier(). |
|
|
Definition at line 244 of file MDPHeader.cpp. References FFBinaryStream::getData(), MDPStream::header, gpstk::StringUtils::hexDumpData(), gpstk::BinUtils::netToHost(), MDPStream::rawHeader, and MDPStream::streamState. |
|
|
Does the actual reading from the stream into this FFData object.
Implements FFData. Definition at line 345 of file MDPHeader.cpp. References gpstk::dump(), MDPHeader::dump(), MDPStream::header, gpstk::StringUtils::hexDumpData(), MDPHeader::id, MDPHeader::length, MDPStream::rawHeader, FFStream::recordNumber, and MDPStream::streamState. |
|
|
Does the actual writing from the stream into this FFData object.
Implements FFData. Definition at line 214 of file MDPHeader.cpp. References GPSTK_THROW, and gpstk::StringUtils::hexDumpData(). |
|
|
Compute the CRC over the string and set the CRC in that string and in the header.
Definition at line 154 of file MDPHeader.cpp. References gpstk::StringUtils::asString(), gpstk::BinUtils::computeCRC(), GPSTK_THROW, and gpstk::BinUtils::hostToNet(). |
|
|
the 16 bit CCITT crc covering the header and body of the message
Definition at line 118 of file MDPHeader.hpp. |
|
|
Definition at line 70 of file MDPHeader.cpp. |
|
|
= 0x9c9c
Definition at line 63 of file MDPHeader.cpp. |
|
|
A message counter.
Definition at line 113 of file MDPHeader.hpp. |
|
|
Definition at line 73 of file MDPHeader.cpp. |
|
|
Identifies this data's type.
Definition at line 111 of file MDPHeader.hpp. Referenced by MDPHeader::reallyGetRecord(). |
|
|
number of bytes in this message (includes the length of the header)
Definition at line 117 of file MDPHeader.hpp. Referenced by MDPHeader::reallyGetRecord(). |
|
|
= 16
Reimplemented in MDPNavSubframe, MDPObsEpoch, MDPPVTSolution, and MDPSelftestStatus. Definition at line 62 of file MDPHeader.cpp. |
|
|
The time associated with this message.
Definition at line 112 of file MDPHeader.hpp. Referenced by gpstk::makeMDPEpoch(), gpstk::makeMDPObsEpoch(), gpstk::makeMDPPVTSolution(), and gpstk::operator>>(). |
1.3.9.1