An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::GPSListener Class Reference
[Device Input Classes]

This is an abstract interface for the clients of the GPSDriver class. More...

#include <GPSDriver.h>

Inheritance diagram for ot::GPSListener:

Inheritance graph
List of all members.

Public Member Functions

virtual void newData (const GPResult *point, const char *line, void *userData)=0
virtual ~GPSListener ()

Detailed Description

This is an abstract interface for the clients of the GPSDriver class.

They have to register with the GPSDriver class and will be called back, if new data arrives.

Gerhard Reitmayr

Definition at line 75 of file GPSDriver.h.

Constructor & Destructor Documentation

virtual ot::GPSListener::~GPSListener (  )  [inline, virtual]

Definition at line 85 of file GPSDriver.h.

Member Function Documentation

virtual void ot::GPSListener::newData ( const GPResult point,
const char *  line,
void *  userData 
) [pure 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.

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.

Implemented in ot::DGPSIP_Handler, ot::GPSDirectionSource, ot::GPSGarminAltitude, ot::GPSGarminCompass, ot::GPSInfoSource, ot::GPSModule, and ot::GPSSource.

The documentation for this class was generated from the following file:

copyright (c) 2006 Graz University of Technology