QGuiSession.hh

Go to the documentation of this file.
00001 #ifndef _QGUISESSION_HH_
00002 #define _QGUISESSION_HH_
00003 
00054 #include <map>
00055 #include <string>
00056 #include "QGuiHistogram.hh"
00057 #include "QGuiScatterPlot.hh"
00058 #include "QObject.hh"
00059 
00060 using namespace Cuore;
00061 
00062 class QGuiHistogram;
00063 class QGuiScatterPlot;
00064 
00065 class QGuiSession : public QObject {
00066 public:
00068     QGuiSession(const std::string& name = "GUI Session");
00069     
00071     virtual ~QGuiSession();
00072     
00074     std::string Dump() const;
00075     
00077     const std::string& GetName() const {return fName;}
00078     
00080     bool GetUseReaderFileList() const {return fUseReaderFileList;}
00081     
00083     QGuiHistogram& Histogram(std::string name);
00084     
00086     QGuiScatterPlot& ScatterPlot(std::string name);
00087     
00089     void SetName(const std::string& name) {fName = name;}
00090     
00092     void SetUseReaderFileList(const bool flag = true) {fUseReaderFileList = flag;}
00093     
00094 private:
00096     std::map<std::string, QGuiHistogram> fHistogram;
00097     
00099     std::string fName;
00100     
00102     std::map<std::string, QGuiScatterPlot> fScatterPlot;
00103     
00106     bool fUseReaderFileList;
00107 
00108 };
00109 
00110 #endif

Generated on Fri Mar 6 13:40:39 2009 for CUORE Software by  doxygen 1.5.1