Diana Software
QGuiSessionItem.hh
Go to the documentation of this file.
1 #ifndef _QGUISESSIONITEM_HH_
2 #define _QGUISESSIONITEM_HH_
3 
10 #include <string>
11 #include "QGTextFileKeys.hh"
12 
14 {
15  public:
17  virtual std::string Dump() const {return "";}
18 
20  virtual ~QGuiSessionItem();
21 
23  void SetName(const std::string& name) {fName = name;}
24 
25  protected:
28 
30  std::string fName;
31 
32  friend class QGuiSession;
33 };
34 
35 #endif
Base class for GUI session objects like histograms and scatter plots.
virtual ~QGuiSessionItem()
Default destructor.
QGuiSessionItem()
Default constructor.
virtual std::string Dump() const
Dump to string to write to session file.
void SetName(const std::string &name)
Set name.
std::string fName
Name.
Class to generate session files for the GUI from a Diana module.
Definition: QGuiSession.hh:69