ot::GPSSource Class Reference

#include <GPSSource.h>

Inheritance diagram for ot::GPSSource:

Inheritance graph
[legend]
Collaboration diagram for ot::GPSSource:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual int isEventGenerator ()
virtual void newData (const GPResult *point, const char *line, void *userData)

Public Attributes

Event event
 the event that is posted to the EventObservers
Event buffer
 the buffer event for data from the GPS receiver

Protected Member Functions

 GPSSource ()
 protected constructor so it is only accessible by the module

Friends

class GPSModule

Constructor & Destructor Documentation

ot::GPSSource::GPSSource  )  [inline, protected]
 

protected constructor so it is only accessible by the module


Member Function Documentation

virtual int ot::GPSSource::isEventGenerator  )  [inline, virtual]
 

tests for EventGenerator interface being present. Is overriden to return 1 always.

Returns:
always 1

Reimplemented from ot::Node.

void ot::GPSSource::newData const GPResult point,
const char *  line,
void *  userData
[inline, virtual]
 

This is the callback method called by the GPSDriver class, whenever new data arrives. Any subclasses of GPSListener must override it to receive the data.

Parameters:
point pointer to the GPResult object that represents the parsed data.
line the corresponding string received from the GPS receiver.
uderData a pointer to user data stored when registering the listener.

Implements ot::GPSListener.


Friends And Related Function Documentation

friend class GPSModule [friend]
 


Member Data Documentation

Event ot::GPSSource::buffer
 

the buffer event for data from the GPS receiver

Event ot::GPSSource::event
 

the event that is posted to the EventObservers


The documentation for this class was generated from the following file:
Generated on Wed Feb 28 15:31:58 2007 for NaviTrack by  doxygen 1.4.6