51 lines
979 B
C++
51 lines
979 B
C++
//
|
|
// Linux GPS
|
|
//
|
|
|
|
/* prevent multiple inclusions */
|
|
#ifndef __NmeaProtocol__
|
|
#define __NmeaProtocol__
|
|
|
|
/* includes *****************************************************************/
|
|
|
|
#include "netlib.h"
|
|
|
|
/* defines ******************************************************************/
|
|
|
|
/* macros *******************************************************************/
|
|
|
|
/* structs & typedefs *******************************************************/
|
|
|
|
/* c class definitions ******************************************************/
|
|
|
|
//
|
|
// GpsLinux because it depennds on GPSd, the HAMLIB and NMEAP libraries
|
|
//
|
|
class NmeaProtocol {
|
|
// public data
|
|
public:
|
|
|
|
// protected data
|
|
protected:
|
|
|
|
// private data
|
|
private:
|
|
|
|
// private methods
|
|
|
|
// public methods
|
|
public:
|
|
// constructors
|
|
NmeaProtocol();
|
|
|
|
// destructor
|
|
virtual ~NmeaProtocol();
|
|
|
|
// virtual functions
|
|
|
|
// public methods
|
|
static int NmeaChecksum( char *msg, int len, int max = 0 );
|
|
};
|
|
|
|
#endif
|