gpsposition.h
来自「symbian s60上的GPS」· C头文件 代码 · 共 77 行
H
77 行
#ifndef __TGpsPosition_H__
#define __TGpsPosition_H__
#include <E32Base.h>
class TGpsPosition : public CBase
{
public:
IMPORT_C TGpsPosition( void );
IMPORT_C TGpsPosition( const TReal & aLongitude, const TReal & aLatitude );
IMPORT_C TGpsPosition( const TGpsPosition & aGpsPosition );
IMPORT_C void Reset( void );
public:
IMPORT_C void Set( const TReal & aLongitude, const TReal & aLatitude );
IMPORT_C void Set( const TGpsPosition & aGpsPosition );
public:
IMPORT_C void SetExtendedInfo( TBool aValidFixFlag, TInt aNumberOfSatellites, const TReal & aHdop );
// in the NMEA format "hhmmss.dd".
IMPORT_C void SetTimeInfo( const TReal & aUtcTime, TUint aTickCount );
IMPORT_C void SetCourseData( const TReal & aHeading, const TReal & aSpeedInKnots, TBool aValidFlag );
public:
IMPORT_C const TReal & Longitude( void ) const;
IMPORT_C const TReal & Latitude( void ) const;
public:
IMPORT_C TInt Satellites( void ) const;
IMPORT_C const TReal & Hdop( void ) const;
public:
IMPORT_C const TReal & UtcTime( void ) const;
IMPORT_C TUint TickCount( void ) const;
public:
IMPORT_C const TReal & Heading( void ) const;
IMPORT_C const TReal & SpeedInKnots( void ) const;
IMPORT_C const TReal SpeedInKmh( void ) const;
IMPORT_C TBool CourseDataValid( void ) const;
public:
IMPORT_C const TReal & Wgs84Longitude( void ) const;
IMPORT_C const TReal & Wgs84Latitude( void ) const;
IMPORT_C TBool IsValid( void ) const;
public:
IMPORT_C const TDesC & ToStringL( void ) const;
protected:
void ValidatePosition( void );
private:
/* Position data first. */
TReal iLongitude;
TReal iLatitude;
TBool iPositionDataValid;
private:
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 + =
减小字号Ctrl + -
显示快捷键?