Diana Software
LGuiSessionReader.hh
Go to the documentation of this file.
1 #ifndef _L_GUI_SESSION_WRITER_HH
2 #define _L_GUI_SESSION_WRITER_HH
3 
13 #include "QGlobalReader.hh"
14 
15 namespace Diana {class QObject;};
16 
18 {
19  public:
22 
23  const Diana::QObject* GetQObject(const std::string& name, const std::string& className,QError& err) const;
24 
25  std::string GetString(const std::string& name) const;
26 
27  private:
28  QError Open(const std::string& filename, const std::string& opt = "");
29  QError Close();
30  std::ifstream fGuiSessionFile;
31  std::map<std::string, Diana::QObject*>* fQObjectCache;
32  std::string fFilename;
33 };
34 
35 #endif
err
Definition: CheckOF.C:114
std::map< std::string, Diana::QObject * > * fQObjectCache
std::string GetString(const std::string &name) const
std::ifstream fGuiSessionFile
const Diana::QObject * GetQObject(const std::string &name, const std::string &className, QError &err) const
QError Close()
Close file, called by QGlobalReaderDispatcher.
QError Open(const std::string &filename, const std::string &opt="")
Open file, called by QGlobalReaderDispatcher.
error class with error type and description
Definition: QError.hh:115
Abstract class for global readers.
base class for objects handled by QEvent and QGlobalDataManager.
Definition: QObject.hh:76
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...