// // Linux GPS // /* prevent multiple inclusions */ #ifndef __RtcmDevice__ #define __RtcmDevice__ /* includes *****************************************************************/ #include "TcpClient.h" #include "netlib.h" /* defines ******************************************************************/ /* macros *******************************************************************/ /* structs & typedefs *******************************************************/ /* c class definitions ******************************************************/ class RtcmDevice { // public data public: // protected data protected: int SerialFd; // serial port // private data private: // private methods int SerialOpen( const char *dev, int baud ); int SerialRead( char *buf, int max ); void SerialClose( void ); // static data // public methods public: // constructors RtcmDevice(); // destructor virtual ~RtcmDevice(); // virtual functions // public methods int GetFd(void) {return SerialFd;}; int RtcmOpen( const char *dev, int baud ) {return SerialOpen(dev,baud); }; void RtcmClose(void) {SerialClose();}; int RtcmRead( char *buf, int max ); int RtcmWrite( const char *buf, int max ); }; #endif