Initial commit of files
This commit is contained in:
56
include/libgps++/DgpsClient.h
Normal file
56
include/libgps++/DgpsClient.h
Normal file
@ -0,0 +1,56 @@
|
||||
//
|
||||
// Linux GPS
|
||||
//
|
||||
|
||||
/* prevent multiple inclusions */
|
||||
#ifndef __DgpsClient__
|
||||
#define __DgpsClient__
|
||||
|
||||
/* includes *****************************************************************/
|
||||
|
||||
#include "TcpClient.h"
|
||||
#include "netlib.h"
|
||||
|
||||
/* defines ******************************************************************/
|
||||
|
||||
/* macros *******************************************************************/
|
||||
|
||||
/* structs & typedefs *******************************************************/
|
||||
|
||||
|
||||
/* c class definitions ******************************************************/
|
||||
|
||||
class DgpsClient : public TcpClient {
|
||||
// public data
|
||||
public:
|
||||
|
||||
// protected data
|
||||
protected:
|
||||
|
||||
// private data
|
||||
private:
|
||||
unsigned long count;
|
||||
|
||||
// private methods
|
||||
|
||||
// static data
|
||||
|
||||
// public methods
|
||||
public:
|
||||
// constructors
|
||||
DgpsClient();
|
||||
|
||||
// destructor
|
||||
virtual ~DgpsClient();
|
||||
|
||||
// virtual functions
|
||||
|
||||
// public methods
|
||||
int DgpsConnect( const char *host, const char *service );
|
||||
void DgpsClose(void) {Close();};
|
||||
|
||||
int DgpsRead( char *buf, int max );
|
||||
int DgpsWrite( const char *buf, int max );
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user