init.h
来自「Web URL 解析程序客户端」· C头文件 代码 · 共 36 行
H
36 行
#ifndef _INIT_H
#define _INIT_H
#include <ejet/WriteDateLog.h>
#include <ejet/UnixSys.h>
#include "ReadConf.h"
class Init
{
public:
Init(){}
virtual ~Init()
{
if(NULL != m_pLog)
{
delete m_pLog;
m_pLog=NULL;
}
if(NULL != m_pReadConf)
{
delete m_pReadConf;
m_pReadConf=NULL;
}
}
static int setLog(const char *logPathptr, const char *logNameptr, bool bDaemon);
static CWriteDateLog* getLog(void){return m_pLog;}
static bool initInterface(const char *logFileptr, const char *logItemptr);
static string getValue(const char *itemName){return m_pReadConf->getValue(itemName);}
private:
static CWriteDateLog *m_pLog;
static ReadConf *m_pReadConf;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?