ErrorHandler.hGo to the documentation of this file.00001 /* ****************************************************************** ** 00002 ** OpenSees - Open System for Earthquake Engineering Simulation ** 00003 ** Pacific Earthquake Engineering Research Center ** 00004 ** ** 00005 ** ** 00006 ** (C) Copyright 1999, The Regents of the University of California ** 00007 ** All Rights Reserved. ** 00008 ** ** 00009 ** Commercial use of this program without express permission of the ** 00010 ** University of California, Berkeley, is strictly prohibited. See ** 00011 ** file 'COPYRIGHT' in main directory for information on usage and ** 00012 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. ** 00013 ** ** 00014 ** Developed by: ** 00015 ** Frank McKenna (fmckenna@ce.berkeley.edu) ** 00016 ** Gregory L. Fenves (fenves@ce.berkeley.edu) ** 00017 ** Filip C. Filippou (filippou@ce.berkeley.edu) ** 00018 ** ** 00019 ** ****************************************************************** */ 00020 00021 // $Revision: 1.3 $ 00022 // $Date: 2006/08/11 23:36:00 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/handler/ErrorHandler.h,v $ 00024 00025 00026 #ifndef ErrorHandler_h 00027 #define ErrorHandler_h 00028 00029 // File: ~/handler/ErrorHandler.h 00030 // 00031 // Written: fmk 00032 // Created: 11/99 00033 // Revision: A 00034 // 00035 // Description: This file contains the class interface for ErrorHandler. 00036 // An ErrorHandler is an object is used to process error information. The 00037 // ErrorHandler class is an abstract class. 00038 // 00039 // What: "@(#) ErrorHandler.h, revA" 00040 00041 #include <iostream> 00042 //using std::ostream; 00043 class ostream; 00044 #include <stdarg.h> 00045 00046 class ErrorHandler { 00047 public: 00048 ErrorHandler(); 00049 virtual ~ErrorHandler(); 00050 00051 virtual void warning(const char *, ...) =0; 00052 virtual void fatal(const char *, ...) =0; 00053 00054 protected: 00055 void outputMessage(ostream &theStream, const char *msg, va_list args); 00056 00057 private: 00058 00059 }; 00060 00061 #endif 00062 00063 |