GPSMonitorThread Class Reference
[Roadnav Thread Classes]

Monitors a serial port for NMEA sentences from a GPS unit. More...

#include <GPSMonitorThread.h>

Collaboration diagram for GPSMonitorThread:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 GPSMonitorThread (class MapFrame *pFrame)
 GPS monitoring thread constructor.
virtual void * Entry ()
 GPS monitor worker thread.
IGPSInterfaceCreateGPSObject (EGPSType eGPSType)
 Constructs the requested type of GPS interface object.

Static Public Member Functions

static EGPSType GetGPSType ()
 Returns GPS type listed in registry.
static void SetGPSType (EGPSType eType)
 Sets GPS type in registry.
static EGPSType GetLastSuccessfulAutoDetectGPSType ()
 Returns the last type of GPS unit that was last autodetected.
static void SetLastSuccessfulAutoDetectGPSType (EGPSType eType)
 Updates the last type of GPS unit that was autodetected.

Private Attributes

class MapFramem_pFrame
 Pointer to parent.


Detailed Description

Monitors a serial port for NMEA sentences from a GPS unit.

Definition at line 74 of file GPSMonitorThread.h.


Constructor & Destructor Documentation

GPSMonitorThread::GPSMonitorThread ( class MapFrame pFrame  ) 

GPS monitoring thread constructor.

Definition at line 65 of file GPSMonitorThread.cpp.


Member Function Documentation

void * GPSMonitorThread::Entry (  )  [virtual]

GPS monitor worker thread.

If autodetection is enabled, this will construct each type of GPS unit, ask it to autodetect, and keep cycling until one of them reports a locked gps unit.

This will then call that GPS unit's GetData over and over again to retrieve GPS data and pass that up to MapFrame.

Definition at line 164 of file GPSMonitorThread.cpp.

IGPSInterface * GPSMonitorThread::CreateGPSObject ( EGPSType  eGPSType  ) 

Constructs the requested type of GPS interface object.

Parameters:
eGPSType Requested type of GPS interface.
Returns:
GPS interface object of requested type.

Definition at line 78 of file GPSMonitorThread.cpp.

EGPSType GPSMonitorThread::GetGPSType (  )  [static]

Returns GPS type listed in registry.

Definition at line 110 of file GPSMonitorThread.cpp.

void GPSMonitorThread::SetGPSType ( EGPSType  eType  )  [static]

Sets GPS type in registry.

Definition at line 122 of file GPSMonitorThread.cpp.

EGPSType GPSMonitorThread::GetLastSuccessfulAutoDetectGPSType (  )  [static]

Returns the last type of GPS unit that was last autodetected.

Definition at line 134 of file GPSMonitorThread.cpp.

void GPSMonitorThread::SetLastSuccessfulAutoDetectGPSType ( EGPSType  eType  )  [static]

Updates the last type of GPS unit that was autodetected.

Definition at line 146 of file GPSMonitorThread.cpp.


Member Data Documentation

Pointer to parent.

Definition at line 89 of file GPSMonitorThread.h.


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

Generated on Sun Jul 27 17:26:13 2008 for Roadnav by  doxygen 1.5.5