Log File Slot. More...

#include <gslotlog.h>

Inheritance diagram for GSlotLog:
[legend]

Public Member Functions

 GSlotLog (const R::RURI &uri)
 
virtual void NextDoc (const GDoc *doc)
 
virtual void NextProfile (const GProfile *prof)
 
virtual void WriteStr (const R::RString &str)
 
virtual void StartJob (const R::RString &job)
 
virtual void EndJob (const R::RString &msg=R::RString::Null)
 
virtual void Warning (const R::RString &msg)
 
virtual void Error (const R::RString &msg)
 
virtual void Alert (const R::RString &msg)
 
virtual ~GSlotLog (void)
 

Private Attributes

R::RMutex mLog
 
char Buf [500]
 

Additional Inherited Members

- Private Member Functions inherited from GSlot
 GSlot (void)
 
virtual void NextConceptType (const GConceptType *type)
 
virtual void Interact (void)
 
virtual ~GSlot (void)
 
- Private Member Functions inherited from RTextFile
virtual void Open (RIO::ModeType mode=RIO::Read)
 
virtual void Close (void)
 

Detailed Description

Log File Slot.

The GSlotLog class provides a receiver of signals of a GALILEI session using a log file to store the outputs.

GSlotLog is reentrant.

Constructor & Destructor Documentation

GSlotLog ( const R::RURI uri)

Construct the log file.

Parameters
uriURI of the file.
virtual ~GSlotLog ( void  )
virtual

Destruct the log file.

Member Function Documentation

virtual void NextDoc ( const GDoc doc)
virtual

The treatment for a specific document will begin.

Parameters
docDocument.

Reimplemented from GSlot.

virtual void NextProfile ( const GProfile prof)
virtual

The treatment for a specific document will begin.

Parameters
profProfile.

Reimplemented from GSlot.

virtual void WriteStr ( const R::RString str)
virtual

Method called when executing a sequence of instruction to output some information.

Parameters
strString to output.

Reimplemented from GSlot.

virtual void StartJob ( const R::RString job)
virtual

Start a job.

Parameters
jobDescription of the job.

Reimplemented from GSlot.

virtual void EndJob ( const R::RString msg = R::RString::Null)
virtual

End of the last started job.

Parameters
msgEventually, a message to print.

Reimplemented from GSlot.

virtual void Warning ( const R::RString msg)
virtual

Forward a warning.

Parameters
msgMessage.

Reimplemented from GSlot.

virtual void Error ( const R::RString msg)
virtual

Forward an error.

Parameters
msgMessage.

Reimplemented from GSlot.

virtual void Alert ( const R::RString msg)
virtual

Forward an alert.

Parameters
msgMessage.

Reimplemented from GSlot.

Member Data Documentation

R::RMutex mLog
private

Mutex on the log file.

char Buf[500]
private

Internal Buffer.