![]() |
Diana Software
|
Public Member Functions | |
| LGuiSessionReader () | |
| ~LGuiSessionReader () | |
| const Diana::QObject * | GetQObject (const std::string &name, const std::string &className, QError &err) const |
| std::string | GetString (const std::string &name) const |
Public Member Functions inherited from QGlobalReader | |
| QGlobalReader (const std::string &name) | |
| constructor More... | |
| virtual | ~QGlobalReader () |
| destructor More... | |
| template<class Q > | |
| const Q * | Get (const std::string &name, QError &err) const |
| Get QObject, owned by this reader. More... | |
| template<class Q > | |
| const Q * | Get (const Diana::QGlobalLabel &label, QError &err) const |
| Get QObject, owned by this reader. More... | |
Public Member Functions inherited from QNamed | |
| QNamed () | |
| QNamed (const std::string &Name) | |
| virtual | ~QNamed () |
| const std::string & | GetName () const |
| void | SetName (const std::string &name) |
Private Member Functions | |
| QError | Open (const std::string &filename, const std::string &opt="") |
| Open file, called by QGlobalReaderDispatcher. More... | |
| QError | Close () |
| Close file, called by QGlobalReaderDispatcher. More... | |
Private Attributes | |
| std::ifstream | fGuiSessionFile |
| std::map< std::string, Diana::QObject * > * | fQObjectCache |
| std::string | fFilename |
Additional Inherited Members | |
Protected Member Functions inherited from QGlobalReader | |
| virtual const Diana::QObject * | GetQObject (const Diana::QGlobalLabel &label, const std::string &className, QError &err) const |
Definition at line 17 of file LGuiSessionReader.hh.
| LGuiSessionReader::LGuiSessionReader | ( | ) |
Definition at line 15 of file LGuiSessionReader.cc.
| LGuiSessionReader::~LGuiSessionReader | ( | ) |
Definition at line 19 of file LGuiSessionReader.cc.
References Close().
|
privatevirtual |
Close file, called by QGlobalReaderDispatcher.
Implements QGlobalReader.
Definition at line 101 of file LGuiSessionReader.cc.
References err, fGuiSessionFile, and QERR_SUCCESS.
Referenced by ~LGuiSessionReader().
|
virtual |
Reimplemented from QGlobalReader.
Definition at line 24 of file LGuiSessionReader.cc.
References err, fQObjectCache, QNamed::GetName(), GetString(), QERR_SUCCESS, and QERR_UNKNOWN_ERR.
| std::string LGuiSessionReader::GetString | ( | const std::string & | name | ) | const |
Definition at line 49 of file LGuiSessionReader.cc.
References CUTS_STRING_KEY, fFilename, GRAPHICAL_CUT_KEY, and QGGraphicalCutBase::SetProperty().
Referenced by GetQObject().
|
privatevirtual |
Open file, called by QGlobalReaderDispatcher.
Implements QGlobalReader.
Definition at line 89 of file LGuiSessionReader.cc.
References err, fFilename, fGuiSessionFile, QERR_CANNOT_OPEN_FILE, and QERR_SUCCESS.
|
private |
Definition at line 32 of file LGuiSessionReader.hh.
Referenced by GetString(), and Open().
|
private |
Definition at line 30 of file LGuiSessionReader.hh.
|
private |
Definition at line 31 of file LGuiSessionReader.hh.
Referenced by GetQObject().