log.h

来自「About: Paco (pacKAGE oRGANIZER) is a si」· C头文件 代码 · 共 82 行

H
82
字号
//=======================================================================// Log.h//-----------------------------------------------------------------------// This file is part of the package paco// Copyright (C) 2004-2007 David Rosal <david.3r@gmail.com>// For more information visit http://paco.sourceforge.net//=======================================================================#ifndef PACO_LOG_H#define PACO_LOG_H#include "Options.h"#include "PkgSet.h"#include <iosfwd>#include <set>namespace Paco {class LogInfo;class Log{	public:	~Log();	static void run(Options const&);	private:	Log(Options const&);	Log(Log&);	Log& operator=(Log&);	// Private member data	Options const&			mOpt;	bool					mAppend;	std::string				mPkgName;	std::string				mTmpFile;	std::set<std::string>	mFiles;		static int const EXIT_FAILURE_EXTERNAL = 2;		void fromCmd();	void fromStdin();	void toPkg();	void toStream(std::ostream&);	void getFilesFromStream(std::istream& s);	void appendPkgFiles();	void filterFiles();	void writeFiles(std::string const&);	class Excluder	{		public:				Excluder(Log const&);		bool operator()(std::string const& path);		private:		std::string const&	mInclude;		std::string const&	mExclude;		bool				mLogMissing;		bool				mIgnoreShared;		PkgSet				mPkgSet;		long				mCnt;		bool isShared(std::string const&);		void logDebug(std::string const&);	};	friend class Excluder;	friend class LogInfo;}; 	// class Log}	// namespace Paco#endif  // PACO_LOG_H

⌨️ 快捷键说明

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