AshtechData Class Reference

#include <AshtechData.hpp>

Inheritance diagram for AshtechData:

Inheritance graph
[legend]
Collaboration diagram for AshtechData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AshtechData () 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 (const std::string &str) throw (std::exception, FFStreamError)
 Decode this object from a string.
virtual std::string getName () const
 Simple accessors for various static thangs.
virtual bool checkId (std::string hdrId) const
 Returns true when the provided id is valid for this message.
void dump (std::ostream &out) const throw ()
 Dump some debugging information to the given ostream.

Public Attributes

std::string id
bool ascii
uint16_t checksum

Static Public Attributes

int debugLevel = 0
bool hexDump = false
const std::string preamble
const std::string trailer

Protected Member Functions

virtual void reallyPutRecord (FFStream &ffs) const throw (std::exception, StringUtils::StringException, FFStreamError)
 Does the actual writing from the stream into this FFData object.
virtual void reallyGetRecord (FFStream &ffs) throw (std::exception, FFStreamError, EndOfFile)
 Does the actual reading from the stream into this FFData object.
virtual void readHeader (AshtechStream &stream) throw (FFStreamError, EndOfFile)
virtual void readBody (AshtechStream &stream) throw (FFStreamError, EndOfFile)

Constructor & Destructor Documentation

AshtechData  )  throw () [inline]
 

Definition at line 67 of file AshtechData.hpp.


Member Function Documentation

virtual bool checkId std::string  hdrId  )  const [inline, virtual]
 

Returns true when the provided id is valid for this message.

Reimplemented in AshtechALB, AshtechEPB, AshtechMBEN, and AshtechPBEN.

Definition at line 91 of file AshtechData.hpp.

virtual void decode const std::string &  str  )  throw (std::exception, FFStreamError) [inline, virtual]
 

Decode this object from a string.

Parameters:
str the string to read from.

Reimplemented in AshtechALB, AshtechEPB, AshtechMBEN, and AshtechPBEN.

Definition at line 83 of file AshtechData.hpp.

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

Dump some debugging information to the given ostream.

Parameters:
out the ostream to write to

Reimplemented from FFData.

Reimplemented in AshtechALB, AshtechEPB, AshtechMBEN, and AshtechPBEN.

Definition at line 165 of file AshtechData.cpp.

virtual std::string encode  )  const throw () [inline, virtual]
 

Encode this object to a string.

Returns:
this object as a string.

Definition at line 78 of file AshtechData.hpp.

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

Simple accessors for various static thangs.

Reimplemented in AshtechALB, AshtechEPB, AshtechMBEN, and AshtechPBEN.

Definition at line 88 of file AshtechData.hpp.

virtual bool isData void   )  const [inline, virtual]
 

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

Reimplemented from FFData.

Definition at line 73 of file AshtechData.hpp.

bool isValid void   )  const [inline]
 

Definition at line 70 of file AshtechData.hpp.

void readBody AshtechStream stream  )  throw (FFStreamError, EndOfFile) [protected, virtual]
 

Definition at line 125 of file AshtechData.cpp.

References gpstk::StringUtils::hexDumpData().

void readHeader AshtechStream stream  )  throw (FFStreamError, EndOfFile) [protected, virtual]
 

Definition at line 83 of file AshtechData.cpp.

References gpstk::StringUtils::hexDumpData(), and gpstk::min().

void reallyGetRecord FFStream ffs  )  throw (std::exception, FFStreamError, EndOfFile) [protected, virtual]
 

Does the actual reading from the stream into this FFData object.

Implements FFData.

Reimplemented in AshtechALB, AshtechEPB, AshtechMBEN, and AshtechPBEN.

Definition at line 68 of file AshtechData.cpp.

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

Does the actual writing from the stream into this FFData object.

Implements FFData.

Definition at line 112 of file AshtechData.hpp.

References GPSTK_THROW.


Member Data Documentation

bool ascii
 

Definition at line 102 of file AshtechData.hpp.

uint16_t checksum
 

Definition at line 106 of file AshtechData.hpp.

int debugLevel = 0 [static]
 

Definition at line 61 of file AshtechData.cpp.

bool hexDump = false [static]
 

Definition at line 64 of file AshtechData.cpp.

std::string id
 

Definition at line 101 of file AshtechData.hpp.

const string preamble [static]
 

const string trailer [static]
 


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