?? logsplitter.h
字號:
/*************************************************************************** revision : $Id: logsplitter.h,v 1.1.1.1 2005/10/04 10:50:23 wiz Exp $ copyright : (C) 2005 by Simone Tellini email : tellini@users.sourceforge.net ***************************************************************************//*************************************************************************** * * * 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 LOGSPLITTER_H#define LOGSPLITTER_H#include "settings.h"#include "logfile.h"#include "hash_map.h"class LogSplitter{public: LogSplitter( int argc, const char *argv[] ); ~LogSplitter(); void Run( void ); void Quit( void ) { Running = false; }private: typedef hash_map<string, LogFile *> logHash; string CfgName; Settings Cfg; bool Running; char Buffer[ 1024 * 64 ]; bool Overflowed; int BufUsed; LogFile *DefaultLog; vector<LogFile *> Logs; logHash LogsHash; time_t LastCheck; void SetCredentials( void ); void InitLogFiles( void ); void LoadState( void ); void SaveState( void ); void ReadData( void ); void CheckLine( void ); void LogLine( string line ); void CheckRotations( void );};#endif /* LOGSPLITTER_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -