Diana Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LGuiSessionReader Class Reference
Inheritance diagram for LGuiSessionReader:
QGlobalReader QNamed

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
 

Detailed Description

Definition at line 17 of file LGuiSessionReader.hh.

Constructor & Destructor Documentation

◆ LGuiSessionReader()

LGuiSessionReader::LGuiSessionReader ( )

Definition at line 15 of file LGuiSessionReader.cc.

◆ ~LGuiSessionReader()

LGuiSessionReader::~LGuiSessionReader ( )

Definition at line 19 of file LGuiSessionReader.cc.

References Close().

Member Function Documentation

◆ Close()

QError LGuiSessionReader::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().

◆ GetQObject()

const QObject * LGuiSessionReader::GetQObject ( const std::string &  name,
const std::string &  className,
QError err 
) const
virtual

Reimplemented from QGlobalReader.

Definition at line 24 of file LGuiSessionReader.cc.

References err, fQObjectCache, QNamed::GetName(), GetString(), QERR_SUCCESS, and QERR_UNKNOWN_ERR.

◆ GetString()

std::string LGuiSessionReader::GetString ( const std::string &  name) const

◆ Open()

QError LGuiSessionReader::Open ( const std::string &  filename,
const std::string &  opt = "" 
)
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.

Member Data Documentation

◆ fFilename

std::string LGuiSessionReader::fFilename
private

Definition at line 32 of file LGuiSessionReader.hh.

Referenced by GetString(), and Open().

◆ fGuiSessionFile

std::ifstream LGuiSessionReader::fGuiSessionFile
private

Definition at line 30 of file LGuiSessionReader.hh.

Referenced by Close(), and Open().

◆ fQObjectCache

std::map<std::string, Diana::QObject*>* LGuiSessionReader::fQObjectCache
private

Definition at line 31 of file LGuiSessionReader.hh.

Referenced by GetQObject().


The documentation for this class was generated from the following files: