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

📄 configfile.h

📁 非常有用的一个关于读写配置文件的类!
💻 H
字号:
// ConfigFile.h: interface for the CConfigFile class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CONFIGFILE_H__EC57E96E_D9D8_471A_9CC8_BF1503153756__INCLUDED_)
#define AFX_CONFIGFILE_H__EC57E96E_D9D8_471A_9CC8_BF1503153756__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CConfigFile  
{
public:
	BOOL WriteToFile(CString string1,CString string2);
	BOOL Read();
	BOOL GetGpsDefine(CString &Value);
	BOOL GetAnnDefine(CString &Value);
	BOOL GetCpDefine(CString &Value);
	BOOL GetPitchDefine(CString &Value);
	BOOL GetHeadingDefine(CString &Value);
	
	CConfigFile();
	virtual ~CConfigFile();
	CString m_FilePath;      //配置文件的路径
    
private:
	int m_PitchLen;
	int m_HeadingLen;
//	CString m_PitchDefine;
//	CString m_HeadingDefine;
//	BOOL GetPitchDefine(CString &Value);
//	BOOL GetHeadingDefine(CString &Value);
	CString m_AnnDefine;
	CString m_CpDefine;		
	CString m_GpsDefine;
	CString m_HeadingDefine;
	CString m_PitchDefine;
	char m_Buffer[1024*48];
	int m_DefineLen;
	int m_GpsLen;
	int m_CpLen;
	int m_AnnLen;
	int m_DataSize;
	int m_BufferSize;

	void DelNote();

};

#endif // !defined(AFX_CONFIGFILE_H__EC57E96E_D9D8_471A_9CC8_BF1503153756__INCLUDED_)

⌨️ 快捷键说明

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