OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FeedbackManager.h
Go to the documentation of this file.
1 #ifndef COVER_FEEDBACKMANAGER_H
2 #define COVER_FEEDBACKMANAGER_H
3 
4 #include <util/coExport.h>
5 
6 #include <map>
7 
8 namespace opencover
9 {
10 
11 class coInteractor;
12 class ModuleInteraction;
13 
14 class PLUGIN_UTILEXPORT FeedbackManager
15 {
16 public:
17  static FeedbackManager *instance();
18  ~FeedbackManager();
19 
20  void registerFeedback(ModuleInteraction *feedback, coInteractor *inter=nullptr);
21  void unregisterFeedback(ModuleInteraction *feedback);
22 
23  ModuleInteraction *findFeedback(coInteractor *inter) const;
24 
25 private:
26  std::map<coInteractor *, ModuleInteraction *> m_moduleFeedback;
27 
28  static FeedbackManager *s_instance;
30 };
31 
32 }
33 #endif
Definition: FeedbackManager.h:14
abstract feedback class for interacting with parameters of visualization modules (e.g. COVISE or Vistle)
Definition: coInteractor.h:36
Definition: ModuleInteraction.h:20