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

📄 werror.hpp

📁 ABis无线接口全套资料
💻 HPP
字号:
/* ======================================================================== *\ | | |  JOYIT Communication Technology |  Copyright (C)  2002-2003,  All Right Reserved. | |  System: Programmable Signaling Gateway |  Sub-system: MTP3 |  Filename: werror.hpp |  Environment:    LINUX -- Red Hat 7.2 & GNU C/C++ Compiler 2.96 |                vxWorks -- Tornado 2.0 & vxWorks 5.4 |  Function description: Declare error message data structure and the |           information about the error code. |\* ======================================================================== */#ifndef _WERROR_HPP#define _WERROR_HPP#ifndef _DATATYPE_HPP#include "datatype.hpp"#endif#define MAX_ERROR_MESSAGE_HOLDER    20#define MAX_ERROR_MESSAGE_LENGTH    256#define DONT_LOG                    0#define LOG_IT                      1const UINT16    SF_MAIN     = 0,                SF_SYSTEM   = 1,                SF_OBJECTS  = 2,                SF_EVENT    = 3,                SF_EXCEPTION = 4,                SF_LOGFILE  = 5,                SF_IPCCLNT  = 6,                SF_CFGBASE  = 7,                SF_CR2CFG   = 8,                SF_OPAGENT  = 9,                SF_UTIL     = 10,                SF_R2DS     = 11;const char  * const g_ObjectName[] ={    "main.cpp",  // SF_MAIN     = 0,    "system.cpp", // SF_SYSTEM   = 1,    "objects.cpp", // SF_OBJECTS  = 2,    "event.cpp", // SF_EVENT    = 3,    "exception.cpp",// SF_EXCEPTION= 4,    "logfile.cpp", // SF_LOGFILE  = 5,    "ipcclnt.cpp", // SF_IPCCLNT  = 6,    "cfgbase.cpp", // SF_CFGBASE  = 7,    // "cmtp3cfg.cpp", // SF_CMTP3CFG = 8,    "cr2cfg.cpp", // SF_CL3CFG = 8,    "opagent.cpp", // SF_OPAGENT  = 9,    "util.cpp",  // SF_UTIL  = 10    "r2ds.cpp"  // SF_R2DS  = 11};const ERRCOD_T  E_SUCC              = 0,    // Operation success.                E_ERROR             = 1,    // Unreseaable error.                E_FILE_OPEN_FAILED  = 2,    // File open failed.                E_FILE_CLOSE_FAILED = 3,    // File close failed.                E_FILE_NAME_NULL    = 4,    // The file name is NULL.                E_FILE_WRITE_ERROR  = 5,    // Write file error.                E_FILE_READ_ERROR   = 6,    // Read file error.                E_OUT_OF_MEMORY     = 7,    // Out of memory.                E_EVENT_QUEUE_FULL  = 8,    // Event queue full.                E_NOCONFIG          = 9,    // Config file not exist.                E_CONFIG_MISS       = 10,   // Missing configuration option.                E_CONFIG_ERROR      = 11,   // Config file error.                E_NULL_POINTER      = 12,   // Use a pointer which is NULL.                E_INDEX_OUT         = 13,   // Array index out of range.                E_PARAM_OUT         = 14,   // Function parameter out of range.                E_DUP_SPC           = 15,   // Duplicate spc.                E_TOO_MANY_SP       = 16,   // Too many sp be defined.                E_EXTRA_EVENT       = 17,   // Extra event, it will be discard.                E_REG2SYSMGR_FAIL   = 18,   // Register to sysmgr failure. It will retry every RETRY_INTERVAL.                E_STARTTIMER_FAIL   = 19,   // Start timer failed.                E_STOPTIMER_FAIL    = 20,   // Stop timer failed.                E_UPID_ILLEGAL      = 21,   // UP id not available or not suitable.                E_LINK_UNDEF        = 22,   // Link undefined.                E_NULL_MSU          = 23,   // Null MSU in the event.                E_SIGNALING         = 24;   // Signaling exception.const char * const g_Errstr [] ={    "Operation success.",  // E_SUCC = 0,    "Common error.",   // E_ERROR = 1,    "Failed to open file",  // E_FILE_OPEN_FAILED  = 2,    "Close file error.",  // E_FILE_CLOSE_FAILED = 3,    "File name is NULL.",  // E_FILE_NAME_NULL    = 4,    "Write to file error.",  // E_FILE_WRITE_ERROR  = 5,    "Read file error.",   // E_FILE_READ_ERROR   = 6,    "Out of memory.",   // E_OUT_OF_MEMORY     = 7,    "Event queue full.",  // E_EVENT_QUEUE_FULL  = 8,    "Config file no exist.", //E_NOCONFIG       = 9,    "Missing config option.", //E_CONFIG_MISS    = 10,    "Config file error.",  // E_CONFIG_ERROR    = 11,    "Null pointer.",   // E_NULL_POINTER      = 12,    "Index out of range.",  // E_INDEX_OUT         = 13,    "Parameter out of range.", // E_PARAM_OUT         = 14,    "Duplicate SP code.",  // E_DUP_SPC           = 15,    "Too many SP be defined.", // E_TOO_MANY_SP       = 16,    "Extra event.",    // E_EXTRA_EVENT       = 17,    "Register to SYSMGR failed.", // E_REG2SYSMGR_FAIL = 18,    "Starting timer failed.", // E_STARTTIMER_FAIL   = 19,    "Stop timer failed."  // E_STOPTIMER_FAIL    = 20;    "MTP3 user part ID illegal or not suitable.", // 21    "Link undefined.",   // E_LINK_UNDEF = 22    "MSU is NULL or length of MSU incorrect.", // Null MSU in the event.    "Signaling exception"  // E_SIGNALING};#endif

⌨️ 快捷键说明

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