gps::GpsRs232 Class Reference

#include <gps.h>

Inheritance diagram for gps::GpsRs232:

Inheritance graph
[legend]
Collaboration diagram for gps::GpsRs232:

Collaboration graph
[legend]
List of all members.

Detailed Description

Encapsulates functions common to all GPS devices with RS-232 interface.

Author:
Walter Fetter Lages <w.fetter@ieee.org>


Public Member Functions

 GpsRs232 (const char *ttyname)
 Builds a GPS with serial interface.
 ~GpsRs232 (void)
 Destroys a GPS with serial interface.

Protected Member Functions

virtual int write (const char *buf, int n)
 Writes data to the serial channel.
virtual int read (char *buf, int n)
 Reads data from the channel.

Classes

class  Error
 Generic GPS serial error. More...
class  OpenError
 GPS serial channel open error. More...
class  ReadError
 GPS serial read error. More...
class  WriteError
 GPS serial write error. More...


Constructor & Destructor Documentation

gps::GpsRs232::GpsRs232 ( const char *  ttyname  ) 

Builds a GPS with serial interface.

Parameters:
ttyname name of a tty device


Member Function Documentation

virtual int gps::GpsRs232::write ( const char *  buf,
int  n 
) [protected, virtual]

Writes data to the serial channel.

Parameters:
buf data to write
n number of bytes to write
Returns:
the number of bytes written to channel

Implements gps::Gps.

virtual int gps::GpsRs232::read ( char *  buf,
int  n 
) [protected, virtual]

Reads data from the channel.

Parameters:
buf data to data read
n size of data buffer
Returns:
the number of bytes read from the channel

Implements gps::Gps.


The documentation for this class was generated from the following file:
Generated on Fri May 23 04:11:16 2008 for GPS Library by  doxygen 1.5.2