![]() |
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #ifndef __EVENT_H 00005 #define __EVENT_H 00006 00007 #include <string> 00008 00009 namespace dolfin 00010 { 00011 00027 00028 class Event 00029 { 00030 public: 00031 00033 Event(const std::string message, unsigned int maxcount = 1); 00034 00036 ~Event(); 00037 00039 void operator() (); 00040 00042 unsigned int count() const; 00043 00045 unsigned int maxcount() const; 00046 00047 private: 00048 00049 std::string message; 00050 unsigned int _maxcount; 00051 unsigned int _count; 00052 00053 }; 00054 00055 } 00056 00057 #endif
Documentation automatically generated with Doxygen on 10 Sep 2004.