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

📄 vlog.h

📁 otl简单包装实现类,对数据库进行操作的,简单易用.
💻 H
字号:
 /***************************************************************************                          vlog.h  -  description                             -------------------    begin                : 11.17 10:18:00 CST 2003    copyright            : (C) 2003 by |LiuZhong|    email                : |zliu@foundermn.com| ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/ #ifndef VLOG_ZL_H#define VLOG_ZL_H#include "linuxh.h"#include "vbaseobject.h"class VLog{private:	static VCritiSec  m_CriLog;protected:	static string     m_FileName;	static long      m_LogBufSize;	static void  SaveLogToFile(const char* Logger,const char* Event);	public: 	VLog();	~VLog();	static void  SetFileName(const char* FileName);	static void  SetLogBufSize(long LogBufSize);    static void  AppendLog(const char* Logger,const char* fmt,...);    static void  WriteLog(const char* Logger,const char* Event);};class VLog2: public VLog{private:	static long  m_Count;	static deque<string>  m_StrList;	static VCritiSec  m_CriLog2;	static bool  m_bRun;	static pthread_t  m_Pid;	static VEvent  m_LogEvent;private:	static void*  LogServiceThread(void* pArg);	static void   LogService();protected:	static void  SaveLogToFile2(const char* Logger,const char* Event);public:	VLog2();	~VLog2();	static void  SetCount(long Count);	static void  AppendLog2(const char* Logger,const char* fmt,...);	static void  WriteLog2(const char* Logger,const char* Event);	static bool  Open();	static void  Close();	static bool  IsOpened();};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -