readconf.h
来自「Web URL 解析程序服务器端」· C头文件 代码 · 共 36 行
H
36 行
#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 + =
减小字号Ctrl + -
显示快捷键?