📄 gpsposition.h
字号:
/************************************************************************/
/* Bluteooth Test The.Berlin.Factor Juni 2003 */
/************************************************************************/
#ifndef __TGpsPosition_H__
#define __TGpsPosition_H__
#include <E32Base.h>
class TGpsPosition : public CBase {
public:
TGpsPosition( );
TGpsPosition( const TReal & aLongitude, const TReal & aLatitude );
TGpsPosition( const TGpsPosition & aGpsPosition );
void Reset( );
public:
void Set( const TReal & aLongitude, const TReal & aLatitude );
void Set( const TGpsPosition & aGpsPosition );
public:
// Sets extended information on the contained GPS position. This should
// be called AFTER the position is initialized. Then the #aValidFixFlag
// will be returned upon calls to #IsValid.
void SetExtendedInfo( TBool aValidFixFlag, TInt aNumberOfSatellites, const TReal & aHdop );
// Extends the position data with time infos. #aUtcTime should be given
// in the NMEA format "hhmmss.dd".
void SetTimeInfo( const TReal & aUtcTime, TUint aTickCount );
void SetCourseData( const TReal & aHeading, const TReal & aSpeedInKnots, TBool aValidFlag );
public:
const TReal & Longitude( ) const;
const TReal & Latitude( ) const;
public:
TInt Satellites( ) const;
const TReal & Hdop( ) const;
public:
const TReal & UtcTime( ) const;
TUint TickCount( ) const;
public:
const TReal & Heading( ) const;
const TReal & SpeedInKnots( ) const;
const TReal SpeedInKmh( ) const;
TBool CourseDataValid( ) const;
public:
const TReal & Wgs84Longitude( ) const;
const TReal & Wgs84Latitude( ) const;
TBool IsValid( ) const;
public:
const TDesC & ToStringL( ) const;
protected:
void ValidatePosition( );
private:
/* Position data first. */
TReal iLongitude;
TReal iLatitude;
TBool iPositionDataValid;
private:
/* Accurracy data next. */
TInt iNumberOfSatellites;
TReal iHdop;
private:
/* Timing data. */
TReal iUtcTime;
TUint iTickCount;
private:
/* Course data. */
TReal iHeading;
TReal iSpeedInKnots;
TBool iCourseDataValid;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -