deverror.h

来自「Solaris环境下的数据挖掘算法:birch聚类算法。该算法适用于对大量数据的」· C头文件 代码 · 共 76 行

H
76
字号
/*  ========================================================================  DEVise Data Visualization Software  (c) Copyright 1992-1996  By the DEVise Development Group  Madison, Wisconsin  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 + =
减小字号Ctrl + -
显示快捷键?