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

📄 mherror.cxx

📁 一个SIP协议栈
💻 CXX
字号:
/********************************************************************* $Id: MHError.cxx,v 1.2 1999/08/31 02:22:05 cullen Exp $ *********************************************************************  This library 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 of the  License, or (at your option) any later version.  In addition to the  terms and conditions set forth in the GNU Lesser General Public  License, as a condition of using this library you are required to  grant to all users of this library or any implementation utilizing  or derived from this library a reciprocal, no cost, worldwide,  perpetual, non-exclusive, non-transferable, unrestricted license to  your claims of all patents and patent applications throughout the  world that are infringed by the library or any implementation  utilizing or derived from this library.  In the event you  redistribute this library or any implementation utilizing or derived  from this library, you must prominently display the foregoing terms  and conditions with the library or the implementation utilizing or  derived from this library.   In the event of a conflict of terms between the foregoing license  grant and the terms set forth in the GNU Lesser General Public  License, the foregoing terms and conditions shall be deemed to  govern.   This library 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.   Copyright 1999 Vovida Networks, Inc.  All Rights Reserved. ********************************************************************* $Log: MHError.cxx,v $ Revision 1.2  1999/08/31 02:22:05  cullen updated header **********************************************************************/#include "MHError.h"using namespace mh323;//-----------------------------------------------------------------------------MHError::MHError(const char * pcMessage, unsigned uParameter){    MHTRACE(1,"EXCEPTION : "<<pcMessage);     m_pcMessage=pcMessage;    m_uParameter=uParameter;}//-----------------------------------------------------------------------------MHError::MHError(const MHError & rxOther){    operator=(rxOther);}//-----------------------------------------------------------------------------MHError & MHError::operator=(const MHError & rxOther){    m_pcMessage=rxOther.m_pcMessage;    m_uParameter=rxOther.m_uParameter;}//-----------------------------------------------------------------------------const char * MHError::what() const{    return m_pcMessage;}//-----------------------------------------------------------------------------inline unsigned int MHError::getParameter() const{    return m_uParameter;}//-----------------------------------------------------------------------------ostream & MHError::printOn(ostream & xStream) const {    xStream << "EXCEPTION: " << what() << endl;    xStream << "Parameter: " << getParameter() << " - " ;    xStream << strerror(getParameter()) << endl;}

⌨️ 快捷键说明

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