NGSolve 5.3
statushandler.hpp
1#ifndef _STATUSHANDLER_HPP
2#define _STATUSHANDLER_HPP
3
4namespace ngstd
5{
6
9
10 class NGS_DLL_HEADER BaseStatusHandler
11 {
12 public:
13 static void PushStatus (const char * str);
14 static void PopStatus ();
15 static void SetThreadPercentage (double percent);
16
17 static void GetStatus (string & str, double & percent);
18
19 static void SetTerminate(void);
20 static void UnSetTerminate(void);
21 static bool ShouldTerminate(void);
22
23 class Region
24 {
25 public:
26 Region(const char * str) { PushStatus(str); }
27 ~Region() { PopStatus(); }
28 };
29 };
30
31}
32
33#endif // _STATUSHANDLER_HPP
Access to statusbar.
Definition statushandler.hpp:11
namespace for standard data types and algorithms.
Definition ngstd.hpp:17