An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::GPSSource Class Reference

#include <GPSSource.h>

Inheritance diagram for ot::GPSSource:

Inheritance graph
Collaboration diagram for ot::GPSSource:

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

 GPSSource ()


class GPSModule

Detailed Description

Definition at line 79 of file GPSSource.h.

Constructor & Destructor Documentation

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

protected constructor so it is only accessible by the module

Definition at line 100 of file GPSSource.h.

Member Function Documentation

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

tests for EventGenerator interface being present.

Is overriden to return 1 always.

always 1

Reimplemented from ot::Node.

Definition at line 91 of file GPSSource.h.

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.

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 105 of file GPSSource.h.

References ot::Event::addAttribute(), ot::GPGGA::altitude, buffer, ot::GPGGA::fix, ot::GPResult::GPGGA, ot::MathUtils::GradToRad, ot::GPGGA::hdop, ot::GPGGA::lat, ot::ThreadModule::lock(), ot::GPGGA::lon, ot::GPGGA::numsats, ot::Event::setAttribute(), ot::Event::setPosition(), ot::Event::timeStamp(), ot::GPResult::type, and ot::ThreadModule::unlock().

Friends And Related Function Documentation

friend class GPSModule [friend]

Definition at line 100 of file GPSSource.h.

Member Data Documentation

the buffer event for data from the GPS receiver

Definition at line 86 of file GPSSource.h.

Referenced by newData().

the event that is posted to the EventObservers

Definition at line 84 of file GPSSource.h.

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

copyright (c) 2006 Graz University of Technology