Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

error.hh

Go to the documentation of this file.
00001 /*
00002  * MAX : error.hh, Sam Dez 29 19:38:03 CET 2001
00003  *
00004  * This file is part of Max data acquisition software
00005  * Copyright (C) 1998 Christian Rosen
00006  *
00007  * Max is free software; you can redistribute it and/or modify it
00008  * under the terms of the version 2 of GNU General Public License as
00009  * published by the Free Software Foundation.
00010  *
00011  * Max is distributed in the hope that it will be useful, but WITHOUT
00012  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00014  * for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * (see the file COPYING) in this directory; if not, write to the
00018  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 //This routine handles the error events
00022 //Call this funcrtion with the ERROR-KONSTANT and the function name
00023 //It returns 1 for o.k. button and 0 for cnacel button pressed
00024 #ifndef ERROR_H
00025 #define ERROR_H
00026 
00027 #include <string.h>
00028 #include <stdio.h>
00029 
00030 #include <qstring.h>
00031 #include <qwidget.h>
00032 #include <qmsgbox.h>
00033 
00034 //defines for error constants
00035 #define E_TIMEOUT          "timeout "
00036 #define E_CAMAC            "CAMAC error "
00037 #define E_BUS              "Bus error "
00038 #define E_FILENOTFOUND     "file not found "
00039 #define E_ALLFUCKEDUP      "all is fucked up "
00040 #define E_DEVICE_NOT_FOUND "Couln't find device "
00041 #define E_CLOSING_DEVICES  "while closing devices "
00042 #define E_RANGE            "due to wrong range "
00043 #define E_IB_WRITE         "Ib write to "
00044 #define E_IB_READ          "Ib read from "
00045 #define E_GPIB             "GPIB error "
00046 #define E_OPEN             "Could not open file "
00047 #define E_SYS_MEM          "Not enough memory "
00048 #define E_FILE_NOT_FOUND   "File not found : "
00049 #define E_NOT_SEND         "Could not send data"
00050 #define E_NOT_RECEIVE      "Error receiving data"
00051 #define E_CMD_NOT_SEND     "Could not send command"
00052 #define E_NUMBER_TOO_LARGE "Number larger than 16 bit"
00053 /*internal error message, not called by the user device*/
00054 int Ierror(char *,char *,char *);
00055 
00056 #endif

Generated at Mon Sep 2 18:21:03 2002 for MAX by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001