view_exception.hpp

来自「ncbi源码」· HPP 代码 · 共 107 行

HPP
107
字号
/* * =========================================================================== * PRODUCTION $Log: view_exception.hpp,v $ * PRODUCTION Revision 1000.0  2003/10/31 20:23:45  gouriano * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.7 * PRODUCTION * =========================================================================== */#ifndef GUI_CORE___VIEW_EXCEPTION__HPP#define GUI_CORE___VIEW_EXCEPTION__HPP/*  $Id: view_exception.hpp,v 1000.0 2003/10/31 20:23:45 gouriano Exp $ * =========================================================================== * *                            PUBLIC DOMAIN NOTICE *               National Center for Biotechnology Information * *  This software/database is a "United States Government Work" under the *  terms of the United States Copyright Act.  It was written as part of *  the author's official duties as a United States Government employee and *  thus cannot be copyrighted.  This software/database is freely available *  to the public for use. The National Library of Medicine and the U.S. *  Government have not placed any restriction on its use or reproduction. * *  Although all reasonable efforts have been taken to ensure the accuracy *  and reliability of the software and data, the NLM and the U.S. *  Government do not and cannot warrant the performance or results that *  may be obtained by using this software or data. The NLM and the U.S. *  Government disclaim all warranties, express or implied, including *  warranties of performance, merchantability or fitness for any particular *  purpose. * *  Please cite the author in any work or product based on this material. * * =========================================================================== * * Authors:  Mike DiCuccio * * File Description: *    Exception class for GBENCH views */#include <corelib/ncbiexpt.hpp>BEGIN_NCBI_SCOPEclass NCBI_GUICORE_EXPORT CViewException : EXCEPTION_VIRTUAL_BASE public CException{public:    enum EErrCode {        eInvalidView,        eGenericError    };    virtual const char* GetErrCodeString(void) const    {        switch (GetErrCode()) {        case eInvalidView:          return "eInvalidView";        case eGenericError:         return "eGenericError";        default:                    return CException::GetErrCodeString();        }    }    NCBI_EXCEPTION_DEFAULT(CViewException, CException);};END_NCBI_SCOPE#endif  // GUI_CORE___VIEW_EXCEPTION__HPP/* * =========================================================================== * $Log: view_exception.hpp,v $ * Revision 1000.0  2003/10/31 20:23:45  gouriano * PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.7 * * Revision 1.7  2003/09/29 15:20:06  dicuccio * Deprecated gui/scope.hpp.  Merged gui/core/types.hpp into gui/types.hpp * * Revision 1.6  2003/04/24 16:14:22  dicuccio * Added new exception error code: eInvalidView * * Revision 1.5  2003/01/13 13:11:42  dicuccio * Namespace clean-up.  Retired namespace gui -> converted to namespace ncbi. * Moved all FLUID-generated code into namespace ncbi. * * Revision 1.4  2002/12/19 18:13:02  dicuccio * Added export specifiers for Win32. * * Revision 1.3  2002/11/29 15:51:35  dicuccio * Moved constructor macro to bottom of class per coding standard * * Revision 1.2  2002/11/07 18:20:15  dicuccio * Moved #ifdef to top of file. * * Revision 1.1  2002/11/05 19:42:54  dicuccio * Initial revision * * =========================================================================== */

⌨️ 快捷键说明

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