Initial commit of files
This commit is contained in:
62
include/libgps++/ApplanixParser.h
Normal file
62
include/libgps++/ApplanixParser.h
Normal file
@ -0,0 +1,62 @@
|
||||
//
|
||||
// Linux GPS
|
||||
//
|
||||
|
||||
/* prevent multiple inclusions */
|
||||
#ifndef __ApplanixParser__
|
||||
#define __ApplanixParser__
|
||||
|
||||
/* includes *****************************************************************/
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "netlib.h"
|
||||
|
||||
#include "GpsListener.h"
|
||||
#include "GpsParser.h"
|
||||
|
||||
#include "NmeaParser.h"
|
||||
#include "NmeaProtocol.h"
|
||||
//#include "ApplanixProtocol.h"
|
||||
|
||||
/* defines ******************************************************************/
|
||||
|
||||
/* macros *******************************************************************/
|
||||
|
||||
/* structs & typedefs *******************************************************/
|
||||
|
||||
/* c class definitions ******************************************************/
|
||||
|
||||
//
|
||||
class ApplanixParser : public NmeaParser {
|
||||
// public data
|
||||
public:
|
||||
|
||||
// protected data
|
||||
protected:
|
||||
|
||||
// private data
|
||||
private:
|
||||
// data
|
||||
u_char state; // parser state
|
||||
|
||||
// private methods
|
||||
|
||||
// public methods
|
||||
public:
|
||||
// constructors
|
||||
ApplanixParser();
|
||||
|
||||
// destructor
|
||||
virtual ~ApplanixParser();
|
||||
|
||||
// virtual functions
|
||||
int GpsDecode( const char *buf, int max ) { return ApplanixDecode( (const u_char *)buf, max); };
|
||||
int GpsParse( const char *buf, int max ) { return ApplanixParse( buf, max ); };
|
||||
|
||||
// public methods
|
||||
int ApplanixDecode( const u_char *buf, int max );
|
||||
int ApplanixParse( const char *buf, int max );
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user