GUIModel.h
Go to the documentation of this file.
1 #ifndef OM_GUIMODEL_H
2 #define OM_GUIMODEL_H
3 #include <vector>
4 #include <string>
6 
7 namespace om { class GUIModelSubscriber; }
8 
9 namespace om
10 {
11  class GUIModel {
12  public:
13  static GUIModel& Instance();
14 
15  const GUIModelData& Data() const { return fData; }
16 
17  void Subscribe(GUIModelSubscriber* s, unsigned int which);
19 
20  void HistogramBack();
21  void HistogramForward();
22  void SetDetector(const char* n);
23  void SetHistogramSource(const char* s);
24  void SetCurrentHistogram(const char* h);
25  void SetCSVFile(std::string v);
26  void SetHistogramInfoText(const char* t);
27  void SetPlotViewRefreshPaused(bool paused);
28  void DrawContentProjection();
29  void SendUpdates() const;
30 
31  void SetCompareWhich(unsigned int i);
32  void SetReferenceFile(const char* RefFile);
33  void SetLookBack(int lb);
34  void SetCompareMethod(unsigned int i);
35  void SetCompareNorm(unsigned int i);
36 
37  void SendWatchListUpdate();
38  void SendPrint();
39 
40  public:
41  void Publish(unsigned int which) const;
42  void Init();
43 
44  private:
45  GUIModel();
46  private:
48  std::vector<GUIModelSubscriber*> fSubscriber;
49  std::vector<unsigned int> fWhich;
50  };
51 }
52 
53 #endif
54 ////////////////////////////////////////////////////////////////////////
void SetCompareNorm(unsigned int i)
Definition: GUIModel.cxx:181
void SetDetector(const char *n)
Definition: GUIModel.cxx:57
void Subscribe(GUIModelSubscriber *s, unsigned int which)
Definition: GUIModel.cxx:35
void SetHistogramSource(const char *s)
Definition: GUIModel.cxx:85
void SetReferenceFile(const char *RefFile)
Definition: GUIModel.cxx:155
void SetCompareWhich(unsigned int i)
Definition: GUIModel.cxx:147
void SetLookBack(int lb)
Definition: GUIModel.cxx:163
const XML_Char * s
Definition: expat.h:262
void SendUpdates() const
Definition: GUIModel.cxx:217
static GUIModel & Instance()
Definition: GUIModel.cxx:11
void SendPrint()
Definition: GUIModel.cxx:196
void HistogramBack()
Definition: GUIModel.cxx:113
void SetHistogramInfoText(const char *t)
Definition: GUIModel.cxx:129
void Publish(unsigned int which) const
Definition: GUIModel.cxx:227
void Unsubscribe(GUIModelSubscriber *s)
Definition: GUIModel.cxx:43
void DrawContentProjection()
Definition: GUIModel.cxx:203
void SetCurrentHistogram(const char *h)
Definition: GUIModel.cxx:102
void HistogramForward()
Definition: GUIModel.cxx:121
GUIModelData fData
Definition: GUIModel.h:47
void Init()
Definition: GUIModel.cxx:19
void SendWatchListUpdate()
Definition: GUIModel.cxx:189
void SetCompareMethod(unsigned int i)
Definition: GUIModel.cxx:173
std::vector< GUIModelSubscriber * > fSubscriber
Definition: GUIModel.h:48
void SetPlotViewRefreshPaused(bool paused)
Definition: GUIModel.cxx:137
const GUIModelData & Data() const
Definition: GUIModel.h:15
void SetCSVFile(std::string v)
Definition: GUIModel.cxx:78
Online Monitoring package header.
std::vector< unsigned int > fWhich
Definition: GUIModel.h:49
enum BeamMode string