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

📄 deverror.h

📁 数据挖掘经典的hierarchial clustering algorithm
💻 H
字号:
  All Rights Reserved.
  ========================================================================

  Under no circumstances is this software to be copied, distributed,
  or altered in any way without prior permission from the DEVise
  Development Group.
*/

/*
  Header file for DevError class.
 */

/*
  $Id: DevError.h,v 1.4 1996/10/02 15:23:35 wenger Exp $

  $Log: DevError.h,v $
  Revision 1.4  1996/10/02 15:23:35  wenger
  Improved error handling (modified a number of places in the code to use
  the DevError class).

  Revision 1.3  1996/07/23 20:12:42  wenger
  Preliminary version of code to save TData (schema(s) and data) to a file.

  Revision 1.2  1996/06/26 23:55:44  jussi
  Added method to turn on/off error reporting.

  Revision 1.1  1996/05/07 16:03:08  wenger
  Added final version of code for reading schemas from session files;
  added an error-reporting class to improve error info.

 */

#ifndef _DevError_h_
#define _DevError_h_


#include <stdio.h>
#include <errno.h>
#include "DeviseTypes.h"


const int       devNoSyserr = -9999;

#define         reportError(message, syserr) DevError::ReportError((message), \
        __FILE__, __LINE__, (syserr))
#define         reportErrSys(message) DevError::ReportError((message), \
        __FILE__, __LINE__, errno)
#define         reportErrNosys(message) DevError::ReportError((message), \
        __FILE__, __LINE__, devNoSyserr)


class DevError
{
public:
    static void ReportError(char *message, char *file, int line, int errno);
    static Boolean SetEnabled(Boolean enabled) {
        Boolean old = _enabled;
        _enabled = enabled;
        return old;
    }

protected:
    static Boolean _enabled;
};


#endif /* _DevError_h_ */

/*============================================================================*/

⌨️ 快捷键说明

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