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

📄 log.h

📁 About: Paco (pacKAGE oRGANIZER) is a simple, yet powerful tool to aid package management when insta
💻 H
字号:
//=======================================================================// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -