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

📄 init.h

📁 Web URL 解析程序服务器端
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -