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

📄 types.h

📁 日志类封装日志类封装日志类封装日志类封装日志类封装日志类封装
💻 H
字号:
/*============================================================================. | Copyright (C) 2006 Gareth Buxton                                           | |----------------------------------------------------------------------------| | LogPlusPlus is free software; you can redistribute it and/or               | | modify it under the terms of the GNU Lesser General Public                 | | License as published by the Free Software Foundation; either               | | version 2.1 of the License, or (at your option) any later version.         | |                                                                            | | LogPlusPlus 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          | | Lesser General Public License for more details.                            | |                                                                            | | You should have received a copy of the GNU Lesser General Public           | | License along with this library; if not, write to the Free Software        | | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA | '============================================================================*/#ifndef LPP_TYPES_H#define LPP_TYPES_H#include "config.h"#include <exception>#define LPP_NAMESPACE lpp#define LPP_NAMESPACE_BEGIN namespace LPP_NAMESPACE {#define LPP_NAMESPACE_END }#define USING_NAMESPACE_LPP using namespace LPP_NAMESPACE ;//=============================================================================LPP_NAMESPACE_BEGIN//=============================================================================#define LOG_MASK_SIZE (sizeof(unsigned long) * 8)#define DEFAULT_LEVEL_DEBUG 0#define DEFAULT_LEVEL_INFO 1#define DEFAULT_LEVEL_WARN 2#define DEFAULT_LEVEL_ERROR 3#define DEFAULT_LEVEL_FATAL 4#define MAX_LEVEL (LOG_MASK_SIZE - 1)#define DEFAULT_LEVEL_NONE MAX_LEVEL//typedef unsigned int LogLevel;#define NATURAL_INFO_STREAM_NAME "log"#define NATURAL_LOG_OUTPUT_NAME "*"#define INTERNAL_LOG_NAME "~"#define DEFAULT_LOG_NAME "-"extern const char* const version;extern const char* const build;//class Log;typedef unsigned int ModType;/** * Bitwise modification style: Replace all bits. **/static const ModType REPLACE = 0;/** * Bitwise modification style: AND all bits. **/static const ModType AND = 1;/** * Bitwise modification style: Inclusive OR all bits. **/static const ModType OR = 2;/** * Bitwise modification style: Inclusive OR all bits. **/static const ModType IOR = 2;/** * Bitwise modification style: Inclusive OR all bits. **/static const ModType SET = 2;/** * Bitwise modification style: Exclusive OR all bits. **/static const ModType EOR = 3;/** * Bitwise modification style: Exclusive OR all bits. **/static const ModType XOR = 3;/** * Bitwise modification style: Exclusive OR all bits. **/static const ModType TOGGLE = 3;/** * Bitwise modification style: NAND all bits. **/static const ModType NAND = 4;/** * Bitwise modification style: NAND all bits. **/static const ModType CLEAR = 4;//class LogFlag;//=============================================================================LPP_NAMESPACE_END//=============================================================================#endif /*LPPTYPES_H_*/

⌨️ 快捷键说明

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