Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

errorhandler.hpp

00001 /*
00002  * Copyright (c) 2003, Raymond Bosman
00003  * Copyright (c) 2003, Frederik Holljen
00004  * All Rights Reserved.
00005  *
00006  * See COPYING for licensing.
00007  */
00008 
00009 
00010 #ifndef ERRORHANDLER_HPP
00011 #define ERRORHANDLER_HPP
00012 
00013 #include <string>
00014 
00016 
00019 class ErrorHandler
00020 {
00021 public:
00022 
00023         static void error ( int lineNumber, const std::string &message);
00024         static void error (const std::string &file, const int &line, const int &column,
00025                        const std::string &msg);
00027     static int getNumErrors() { return TotalErrors; }
00028 
00029 private:
00030         static int TotalErrors;
00031 };
00032 
00033 
00034 #endif // ERRORHANDLER_HPP

Generated on Mon Dec 1 14:26:27 2003 for Ck by doxygen 1.3.3