myinisection.h

来自「SQLBig5BugTool 宽字符操作问题」· C头文件 代码 · 共 39 行

H
39
字号
// MemIniSection.h: interface for the CMyIniSection class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MEMINISECTION_H__0AA8939D_CB43_4BB5_8F70_C69A7958F2CA__INCLUDED_)
#define AFX_MEMINISECTION_H__0AA8939D_CB43_4BB5_8F70_C69A7958F2CA__INCLUDED_

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

// 从内存字符缓冲区中取出标准INI的某个SECTION, 注意内容中'='两边不能有空格
#include "BaseFunc.h"

#include <string>
#include <vector>
#include <map>

#pragma warning(disable: 4786)

class CMyIniSection  
{
public:
	CMyIniSection(BOOL bCritical = TRUE);
	virtual ~CMyIniSection();

	BOOL Create (const char* pBuf, DWORD dwBufSize, const char* pszSectionName);

	const char*	GetString	(const char* pszTitle) const;
	int			GetData		(const char* pszTitle) const;

private:	
	BOOL m_bCritical;
	std::string m_strSection;
	std::map< std::string, std::string >	m_setContent;
};

#endif // !defined(AFX_MEMINISECTION_H__0AA8939D_CB43_4BB5_8F70_C69A7958F2CA__INCLUDED_)

⌨️ 快捷键说明

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