📄 init.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 + -