Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

GenericLogger.h

Go to the documentation of this file.
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __GENERIC_LOGGER_H
00005 #define __GENERIC_LOGGER_H
00006 
00007 #include <dolfin/Progress.h>
00008 #include <dolfin/constants.h>
00009 
00010 namespace dolfin {
00011 
00012   class GenericLogger {
00013   public:
00014     
00015     GenericLogger();
00016     virtual ~GenericLogger() {};
00017     
00018     virtual void info    (const char* msg) = 0;
00019     virtual void debug   (const char* msg, const char* location) = 0;
00020     virtual void warning (const char* msg, const char* location) = 0;
00021     virtual void error   (const char* msg, const char* location) = 0;
00022     virtual void dassert (const char* msg, const char* location) = 0;
00023     virtual void progress(const char* title, const char* label, real p) = 0;
00024     
00025     virtual void update() = 0;
00026     virtual void quit() = 0;
00027     virtual bool finished() = 0;
00028     
00029     virtual void progress_add    (Progress* p) = 0;
00030     virtual void progress_remove (Progress *p) = 0;
00031     
00032     void start();
00033     void end();
00034     
00035   protected:
00036     
00037     int level;
00038     
00039   };
00040   
00041 }
00042 
00043 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.