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

Public Member Functions

 LGuiSessionWriter ()
 
 ~LGuiSessionWriter ()
 
QError SetQObject (const std::string &name, const std::string &className, const Diana::QObject *obj, const std::string &descr)
 
- Public Member Functions inherited from QGlobalWriter
 QGlobalWriter (const std::string &name)
 constructor More...
 
virtual ~QGlobalWriter ()
 destructor More...
 
template<class Q >
QError Set (const std::string &name, const Q &obj, const std::string &descr="")
 Set QObject, owned by the caller, - leave it undeclared if you can't implement it. 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 QGlobalWriterDispatcher. More...
 
QError Close ()
 Close file, called by QGlobalWriterDispatcher. More...
 

Private Attributes

std::ofstream fGuiSessionFile
 

Additional Inherited Members

Detailed Description

Definition at line 16 of file LGuiSessionWriter.hh.

Constructor & Destructor Documentation

◆ LGuiSessionWriter()

LGuiSessionWriter::LGuiSessionWriter ( )

Definition at line 16 of file LGuiSessionWriter.cc.

◆ ~LGuiSessionWriter()

LGuiSessionWriter::~LGuiSessionWriter ( )

Definition at line 20 of file LGuiSessionWriter.cc.

References Close().

Member Function Documentation

◆ Close()

QError LGuiSessionWriter::Close ( )
privatevirtual

Close file, called by QGlobalWriterDispatcher.

Implements QGlobalWriter.

Definition at line 63 of file LGuiSessionWriter.cc.

References err, fGuiSessionFile, and QERR_SUCCESS.

Referenced by ~LGuiSessionWriter().

◆ Open()

QError LGuiSessionWriter::Open ( const std::string &  filename,
const std::string &  opt = "" 
)
privatevirtual

Open file, called by QGlobalWriterDispatcher.

Implements QGlobalWriter.

Definition at line 52 of file LGuiSessionWriter.cc.

References err, fGuiSessionFile, QERR_CANNOT_OPEN_FILE, and QERR_SUCCESS.

◆ SetQObject()

QError LGuiSessionWriter::SetQObject ( const std::string &  name,
const std::string &  className,
const Diana::QObject *  obj,
const std::string &  descr 
)
virtual

Member Data Documentation

◆ fGuiSessionFile

std::ofstream LGuiSessionWriter::fGuiSessionFile
private

Definition at line 27 of file LGuiSessionWriter.hh.

Referenced by Close(), Open(), and SetQObject().


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