⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nmeaparser.h

📁 对于GPS数据NMEA的解析
💻 H
字号:
// NMEAParser.h: interface for the NMEAParser class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_NMEAPARSER_H__26C0F55B_19A8_4E71_A1BA_A2EBA169FCEB__INCLUDED_)
#define AFX_NMEAPARSER_H__26C0F55B_19A8_4E71_A1BA_A2EBA169FCEB__INCLUDED_

#include "GPSInfo.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class NMEAParser  
{
public:
	NMEAParser();
	NMEAParser(LPCTSTR outputFileName);
	virtual ~NMEAParser();
	void Parse(const CHAR *buf, const UINT bufSize);
	GPSInfo& GetActualGPSInfo();

private:
	CFile m_outputFile;

	void ParseRecursive(const CHAR ch);
	void ParseNMEASentence(const CHAR *addressField, 
		                   const CHAR *buf, const UINT bufSize);
	void ProcessGPGGA(const CHAR *buf, const UINT bufSize);
	void ProcessGPGSA(const CHAR *buf, const UINT bufSize);
	void ProcessGPGSV(const CHAR *buf, const UINT bufSize);
	void ProcessGPRMB(const CHAR *buf, const UINT bufSize);
	void ProcessGPRMC(const CHAR *buf, const UINT bufSize);
	void ProcessGPZDA(const CHAR *buf, const UINT bufSize);

	BOOL m_logging;
	GPSInfo m_GPSInfo;
};

#endif // !defined(AFX_NMEAPARSER_H__26C0F55B_19A8_4E71_A1BA_A2EBA169FCEB__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -