An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::GPSInfoSource Class Reference
[Device Input Classes]

A very simple EventGenerator node for outputing GPS position data. More...

#include <GPSInfoSource.h>

Inheritance diagram for ot::GPSInfoSource:

Inheritance graph
Collaboration diagram for ot::GPSInfoSource:

Collaboration graph
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
Event buffer

Protected Member Functions

 GPSInfoSource ()


class GPSModule

Detailed Description

A very simple EventGenerator node for outputing GPS position data.

Gerhard Reitmayr

Definition at line 78 of file GPSInfoSource.h.

Constructor & Destructor Documentation

ot::GPSInfoSource::GPSInfoSource (  )  [inline, protected]

protected constructor so it is only accessible by the module

Definition at line 99 of file GPSInfoSource.h.

Member Function Documentation

virtual int ot::GPSInfoSource::isEventGenerator (  )  [inline, virtual]

tests for EventGenerator interface being present.

Is overriden to return 1 always.

always 1

Reimplemented from ot::Node.

Definition at line 90 of file GPSInfoSource.h.

void ot::GPSInfoSource::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.

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.

Definition at line 104 of file GPSInfoSource.h.

References buffer, ot::GPGGA::fix, ot::Event::getPosition(), ot::GPResult::GPGGA, ot::GPGGA::hdop, ot::ThreadModule::lock(), ot::GPGGA::numsats, ot::Event::timeStamp(), ot::GPResult::type, and ot::ThreadModule::unlock().

Friends And Related Function Documentation

friend class GPSModule [friend]

Definition at line 99 of file GPSInfoSource.h.

Member Data Documentation

the buffer event for data from the GPS receiver

Definition at line 85 of file GPSInfoSource.h.

Referenced by newData().

the event that is posted to the EventObservers

Definition at line 83 of file GPSInfoSource.h.

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

copyright (c) 2006 Graz University of Technology