亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? slog.h

?? GNU Common C++ is a very portable and highly optimized class framework for writing C++ applications
?? H
字號:
// Copyright (C) 1999-2005 Open Source Telecom Corporation.//// 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.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.//// As a special exception, you may use this file as part of a free software// library without restriction.  Specifically, if other files instantiate// templates or use macros or inline functions from this file, or you compile// this file and link it with other files to produce an executable, this// file does not by itself cause the resulting executable to be covered by// the GNU General Public License.  This exception does not however    // invalidate any other reasons why the executable file might be covered by// the GNU General Public License.    //// This exception applies only to the code released under the name GNU// Common C++.  If you copy code from other releases into a copy of GNU// Common C++, as the General Public License permits, the exception does// not apply to the code that you add in this way.  To avoid misleading// anyone as to the status of such modified files, you must delete// this exception notice from them.//// If you write modifications of your own for GNU Common C++, it is your choice// whether to permit this exception to apply to your modifications.// If you do not wish that, delete this exception notice.///** * @file slog.h * @short System logging facilities abstraction. **/#ifndef	CCXX_SLOG_H_#define	CCXX_SLOG_H_#ifndef CCXX_MISSING_H_#include <cc++/missing.h>#endif#ifndef	CCXX_THREAD_H_#include <cc++/thread.h>#endif#ifndef	HAVE_SYSLOG_H#include <cstdio>#endif#ifdef	CCXX_NAMESPACESnamespace ost {#endif/** * The slog class is used to stream messages to the system's logging facility (syslogd). * A default <code>slog</code> object is used to avoid confusion with the native syslog * facility and to imply a logical relationship to the C++ <code>clog()</code>. * * The key difference is that the <code>slog</code> object sends it's output to the * system logging daemon (typically syslogd) rather than through stderr. * <code>slog</code> can be streamed with the <code><<</code> operator just * like <code>clog</code>; a default slog object is pre-initialized, and you stream * character data to it. * * The <code>slog</code> allows one to specify logging levels and other properties through the <code>()</code> operators. * Hence, once can do: * * <code><pre> * slog("mydaemon", SLOG_DAEMON, SLOG_EMERGENCY) << I just died << endl; </pre></code> * * or things like:  * * <code><pre> * slog("mydaemon", SLOG_DAEMON);  * slog(SLOG_INFO) << "daemon initalized" << endl; </pre></code> * * The intent is to be as common-place and as convenient to use as the stderr based clog facility * found in C++, and this is especially useful for C++ daemons. * * The <code>std::flush</code> manipulator doesn't work.  Either the * <code>std::endl</code> or <code>std::ends</code> manipulators * must be used to cause the output to be sent to the daemon. *  * When this class is used on a system that doesn't have the syslog headers * (i.e. a non-posix win32 box), the output goes to the a file with the same name * as the syslog identifier string with '.log' appended to it.  If the identifier string ends in * '.exe', the '.exe' is removed before the '.log' is appened. (e.g. the identifier foo.exe will * generate a log file named foo.log) *  * @author David Sugar <dyfet@ostel.com> * <br>Minor docs & hacks by Jon Little <littlej@arlut.utexas.edu> * * @short system logging facility class. */class __EXPORT Slog : protected std::streambuf, public std::ostream{public:	typedef enum Class	{		classSecurity,		classAudit,		classDaemon,		classUser,		classDefault,		classLocal0,		classLocal1,		classLocal2,		classLocal3,		classLocal4,		classLocal5,		classLocal6,		classLocal7	} Class;	typedef enum Level	{		levelEmergency = 1,		levelAlert,		levelCritical,		levelError,		levelWarning,		levelNotice,		levelInfo,		levelDebug	} Level;private:#ifndef	HAVE_SYSLOG_H	Mutex lock;	FILE *syslog;#endif	int priority;	Level  _level;	bool _enable;        bool _clogEnable;	ThreadImpl *getPriv(void);protected:	/**         * This is the streambuf function that actually outputs the data         * to the device.  Since all output should be done with the standard         * ostream operators, this function should never be called directly.	 */	int overflow(int c);public:	/**         * Default (and only) constructor.  The default log level is set to         * SLOG_DEBUG.  There is no default log facility set.  One should be         * set before attempting any output.  This is done by the <code>open()</code> or the         * <code>operator()(const char*, Class, Level)</code>         * functions.	 */	Slog(void);	virtual ~Slog(void);	void close(void);	/**         * (re)opens the output stream.         * @param ident The identifier portion of the message sent to the syslog daemon.         * @param grp The log facility the message is sent to	 */	void open(const char *ident, Class grp = classUser);	/**         * Sets the log identifier, level, and class to use for subsequent output         * @param ident The identifier portion of the message         * @param grp The log facility the message is sent to         * @param level The log level of the message	 */	Slog &operator()(const char *ident, Class grp = classUser,			 Level level = levelError);	/**         * Changes the log level and class to use for subsequent output         * @param level The log level of the message         * @param grp The log facility the message is sent to	 */	Slog &operator()(Level level, Class grp = classDefault);        /**         * Does nothing except return *this.         */	Slog &operator()(void);#ifdef	HAVE_SNPRINTF	/**	 * Print a formatted syslog string.	 *	 * @param format string.	 */	void error(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void warn(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void debug(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void emerg(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void alert(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void critical(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void notice(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void info(const char *format, ...);#endif	/**         * Sets the logging level.         * @param enable is the logging level to use for further output	 */	inline void level(Level enable)		{_level = enable;};	/**         * Enables or disables the echoing of the messages to clog in addition         * to the syslog daemon.  This is enabled by the default class constructor.         * @param f true to enable, false to disable clog output	 */        inline void clogEnable(bool f=true)                {_clogEnable = f;};	inline Slog &warn(void)		{return operator()(Slog::levelWarning);};	inline Slog &error(void)		{return operator()(Slog::levelError);};	inline Slog &debug(void)		{return operator()(Slog::levelDebug);};	inline Slog &emerg(void)		{return operator()(Slog::levelEmergency);};	inline Slog &alert(void)		{return operator()(Slog::levelAlert);};	inline Slog &critical(void)		{return operator()(Slog::levelCritical);};	inline Slog &notice(void)		{return operator()(Slog::levelNotice);};	inline Slog &info(void)		{return operator()(Slog::levelInfo);};};//#ifdef	CYGWIN_IMPORTS//extern __declspec(dllimport) Slog slog;//#elseextern __EXPORT Slog	slog;//#endif#ifdef	CCXX_NAMESPACES}#endif#endif/** EMACS ** * Local variables: * mode: c++ * c-basic-offset: 8 * End: */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩午夜在线影院| 亚洲精品免费在线观看| 欧美性猛交xxxx乱大交退制版| 日本欧美一区二区| 婷婷一区二区三区| 无码av中文一区二区三区桃花岛| 天天综合天天做天天综合| 一级女性全黄久久生活片免费| 日本一二三不卡| 国产精品视频yy9299一区| 久久精品综合网| 国产丝袜欧美中文另类| 中文字幕第一区第二区| 中文字幕第一区第二区| 国产精品久久久久久一区二区三区| 国产三级精品在线| 中文字幕一区二区5566日韩| 国产精品嫩草影院av蜜臀| 国产精品久久毛片| 一个色在线综合| 午夜久久久久久| 久久精品国产在热久久| 国产一区激情在线| 91污在线观看| 欧美日韩一二三区| 精品处破学生在线二十三| 久久久久国产一区二区三区四区 | 亚洲激情校园春色| 亚洲综合精品自拍| 蜜臀av性久久久久蜜臀aⅴ四虎| 久久99精品国产91久久来源| 精品久久久久久久久久久院品网 | 在线国产亚洲欧美| 欧美久久高跟鞋激| 久久蜜桃av一区二区天堂 | 91色porny| 日韩亚洲国产中文字幕欧美| 国产欧美一区二区精品忘忧草| 亚洲人亚洲人成电影网站色| 日韩av电影免费观看高清完整版在线观看 | 欧美日韩免费观看一区三区| 日韩免费看网站| 亚洲伦理在线免费看| 精品午夜一区二区三区在线观看| gogo大胆日本视频一区| 久久久99久久| 国产乱码精品一区二区三区忘忧草 | 99精品欧美一区| 91麻豆精品国产| 亚洲乱码国产乱码精品精的特点 | 国产午夜精品一区二区| 欧美日韩久久久一区| 日韩欧美精品三级| 久久久www成人免费毛片麻豆 | 爽爽淫人综合网网站| 手机精品视频在线观看| 久久不见久久见中文字幕免费| 婷婷六月综合亚洲| 成人黄页毛片网站| 欧美日韩国产高清一区二区 | 欧美日韩另类一区| 久久人人爽爽爽人久久久| 一区二区三区不卡视频在线观看 | 一本色道久久综合精品竹菊| 91精品国产综合久久国产大片| 精品国产自在久精品国产| 亚洲欧美国产三级| 激情文学综合插| 欧美人成免费网站| 亚洲日本成人在线观看| 北条麻妃国产九九精品视频| 91国产视频在线观看| 色综合天天综合网国产成人综合天| 国产一区二区三区最好精华液| 日韩黄色免费电影| 成人sese在线| 2020国产成人综合网| 五月综合激情婷婷六月色窝| 99在线视频精品| 2021国产精品久久精品| 美女久久久精品| 欧美三级电影在线看| 亚洲欧美成aⅴ人在线观看| 国产高清亚洲一区| 精品免费日韩av| 免费观看在线色综合| 欧美电影一区二区| 亚洲一区在线免费观看| 色综合天天综合狠狠| 2020国产精品自拍| 日产国产高清一区二区三区 | 亚洲美女区一区| 99久久精品国产一区二区三区| 6080国产精品一区二区| 日本不卡一二三区黄网| 欧美区一区二区三区| 亚洲国产三级在线| 欧美日韩精品高清| 免费在线成人网| 欧美电影免费观看高清完整版在线观看 | 一区在线观看免费| 一本到不卡精品视频在线观看| 国产精品激情偷乱一区二区∴| 国产精品系列在线观看| 一区二区三区不卡视频| 在线观看免费一区| 亚洲高清视频的网址| 欧美一区二区三区视频在线观看| 日本不卡一二三区黄网| 日韩一区二区精品| 国内精品免费**视频| 国产亚洲一区二区三区在线观看| 国产盗摄一区二区| 亚洲三级理论片| 97久久久精品综合88久久| 免费不卡在线观看| 2023国产精品视频| 97久久超碰国产精品| 亚洲一区二区视频在线观看| 欧美日韩国产经典色站一区二区三区 | 91精品国产综合久久香蕉的特点| 国产成人精品综合在线观看| 国产精品久久久久影院老司| 欧美中文字幕亚洲一区二区va在线| 亚洲妇熟xx妇色黄| 亚洲精品在线免费观看视频| 99精品在线免费| 亚洲最大成人综合| 精品对白一区国产伦| 99久久精品免费看国产| 天堂成人免费av电影一区| 欧美乱熟臀69xxxxxx| 成人va在线观看| 奇米777欧美一区二区| 日韩码欧中文字| 91精品国产色综合久久不卡蜜臀| 丁香另类激情小说| 蜜臀av性久久久久av蜜臀妖精| 欧美激情一区二区三区蜜桃视频| 欧美日韩一区二区三区免费看| 精品中文字幕一区二区小辣椒| 免费成人在线观看| 国产精品午夜在线观看| 成人精品小蝌蚪| 琪琪一区二区三区| 亚洲精品国产高清久久伦理二区| 日韩欧美一二三| 欧美日韩中文精品| av一区二区三区| 国产呦萝稀缺另类资源| 亚洲第一在线综合网站| 国产欧美综合在线观看第十页| 欧美制服丝袜第一页| 国产福利一区在线观看| 日韩国产精品大片| 亚洲福利视频一区二区| 亚洲欧美成人一区二区三区| 国产偷v国产偷v亚洲高清| 精品日韩一区二区| 欧美乱妇23p| 91福利国产成人精品照片| 色偷偷一区二区三区| 99re亚洲国产精品| 成人白浆超碰人人人人| 国产精品亚洲综合一区在线观看| 日本不卡1234视频| 日日摸夜夜添夜夜添国产精品 | 日韩精品一区二区三区四区 | 一区二区三区在线视频免费| 国产精品乱码久久久久久| 久久精品人人做人人综合 | 欧洲亚洲精品在线| 91在线码无精品| 丁香激情综合国产| 成a人片亚洲日本久久| 国产不卡一区视频| 国产成人午夜电影网| 国产suv一区二区三区88区| 国产综合久久久久久久久久久久| 日韩高清欧美激情| 麻豆91精品视频| 蜜桃视频一区二区三区在线观看| 日韩电影在线免费看| 蜜桃视频一区二区| 国产乱码精品一区二区三区av | 石原莉奈在线亚洲二区| 色偷偷一区二区三区| 成人禁用看黄a在线| 亚洲三级在线播放| 一区二区三区.www| 亚洲成人免费在线| 久久99精品国产麻豆不卡| hitomi一区二区三区精品| 99国产欧美久久久精品| 成人一级黄色片| 在线综合视频播放| 欧美国产视频在线| 一区二区视频免费在线观看| 日韩精品一级二级| 国产·精品毛片|