Initial commit of files
This commit is contained in:
52
include/libgps++/GpsDevice.h
Normal file
52
include/libgps++/GpsDevice.h
Normal file
@ -0,0 +1,52 @@
|
||||
//
|
||||
// Linux GPS
|
||||
//
|
||||
|
||||
/* prevent multiple inclusions */
|
||||
#ifndef __GpsDevice__
|
||||
#define __GpsDevice__
|
||||
|
||||
/* includes *****************************************************************/
|
||||
|
||||
#include "netlib.h"
|
||||
|
||||
#include "SerialIO.h"
|
||||
|
||||
/* defines ******************************************************************/
|
||||
|
||||
/* macros *******************************************************************/
|
||||
|
||||
/* structs & typedefs *******************************************************/
|
||||
|
||||
/* c class definitions ******************************************************/
|
||||
|
||||
class GpsDevice : public SerialIO {
|
||||
// public data
|
||||
public:
|
||||
// parser
|
||||
|
||||
// protected data
|
||||
protected:
|
||||
|
||||
// private data
|
||||
private:
|
||||
// private methods
|
||||
|
||||
// public methods
|
||||
public:
|
||||
// constructors
|
||||
GpsDevice();
|
||||
|
||||
// destructor
|
||||
virtual ~GpsDevice();
|
||||
|
||||
// virtual functions
|
||||
|
||||
// public methods
|
||||
int GpsOpen( const char *dev, int baud=38400 );
|
||||
int GpsRead( char *buf, int max ) {return Read(buf,max); };
|
||||
int GpsWrite( const char *buf, int max ) {return Write(buf,max); };
|
||||
void GpsClose(void) { Close(); };
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user