?? readconf.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 + -