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

📄 readconf.h

📁 Web URL 解析程序服务器端
💻 H
字号:
#ifndef _READCONF_H
#define _READCONF_H

#include <vector>
//#include <string>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <ejet/WriteDateLog.h>
const int MAX_ITEMNAMELEN=50;
const int MAX_ITEMVALUELEN=200;

typedef struct _confItem{
	char sItemName[MAX_ITEMNAMELEN+1];
	char sItemValue[MAX_ITEMVALUELEN+1];
}confItem, *pConfItem;

class ReadConf
{
public:
	static ReadConf* getInstance();
	virtual ~ReadConf();
	static bool parseDoc(const char *docname, const char *docType, CWriteDateLog& pLog);
	static string getValue(const char *itemName);
private:
	ReadConf();
	static void retrieve(xmlDocPtr doc, xmlNodePtr cur);
	
private:	
	static ReadConf *m_pInstance;
	static vector<confItem> m_vConfItem;
};

#endif 

⌨️ 快捷键说明

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