📄 myinisection.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -