vrcore  0.45
visuReal Messkern
 All Classes Files Functions Variables
MeasuringLogger.h
1 #pragma once
2 
3 class Logable;
4 
6  {
7  public:
8  static const int Log_Available = 1 << 0;
9  static const int Log_WaitKey = 1 << 1;
10  static const int Log_NoLogging = 1 << 2;
11  static const int Log_NoWaitDispose = 1 << 3;
12 
13  protected:
14  KeyedStatusGroup status;
15  public:
16  MeasuringLogger ();
17  virtual ~MeasuringLogger ();
18  void setStatus (std::string key, StatusValue value) { status.setStatus (key, value); }
19  void clearStatus (std::string key, StatusValue value) { status.clearStatus (key, value); }
20  bool isStatus (std::string key, StatusValue value) { return status.isStatus (key, value); }
21  bool isAvailable (std::string key) { return status.isStatus (key, Log_Available); }
22  void setWaitKey (std::string key) { setStatus (key, Log_WaitKey); }
23  void setWaitKeyOff (std::string key) { clearStatus (key, Log_WaitKey); }
24  void setNoWaitDispose () { setStatus ("noWaitDispose", Log_NoWaitDispose); }
25  void setNoWaitDisposeOff () { clearStatus ("noWaitDispose", Log_NoWaitDispose); }
26  void setLogOn (std::string key) { clearStatus (key, Log_NoLogging); }
27  void setLogOff (std::string key) { setStatus (key, Log_NoLogging); }
28  virtual void initialise () {}
29  virtual void dispose () {}
30 
31  };
32 
33 
35  {
36  protected:
37  std::vector<MeasuringLogger*> loggerVec;
38  public:
41  void initialise ();
42  void dispose ();
43  void addMeasuringLogger (MeasuringLogger *lpLogger);
44  void logLogable (Logable *lpLogable);
45  };
Definition: StatusGroup.h:116
Definition: MeasuringLogger.h:34
Definition: MeasuringLogger.h:5
Definition: Processable.h:18
Definition: Processable.h:29