FileJournal Class Reference

#include <IpJournalist.hpp>

Inheritance diagram for FileJournal:

Journal ReferencedObject

List of all members.


Detailed Description

FileJournal class.

This is a particular Journal implementation that writes to a file for output. It can write to (stdout, stderr, or disk) by using "stdout" and "stderr" as filenames.

Public Member Functions

 FileJournal (const std::string &name, EJournalLevel default_level)
 Constructor.
virtual ~FileJournal ()
 Destructor.
bool Open (const char *fname)
 Open a new file for the output location.

Protected Member Functions

Implementation version of Print methods - Overloaded from
Journal base class.

virtual void PrintImpl (const char *str)
 Print to the designated output location.
virtual void PrintfImpl (const char *pformat, va_list ap)
 Printf to the designated output location.
virtual void FlushBufferImpl ()
 Flush output buffer.


Constructor & Destructor Documentation

FileJournal ( const std::string &  name,
EJournalLevel  default_level 
)

Constructor.

~FileJournal (  )  [virtual]

Destructor.


Member Function Documentation

bool Open ( const char *  fname  ) 

Open a new file for the output location.

Special Names: stdout means stdout, : stderr means stderr.

Return code is false only if the file with the given name could not be opened.

void PrintImpl ( const char *  str  )  [protected, virtual]

Print to the designated output location.

Implements Journal.

References DBG_EXEC, and DBG_START_METH.

void PrintfImpl ( const char *  pformat,
va_list  ap 
) [protected, virtual]

Printf to the designated output location.

Implements Journal.

References DBG_EXEC, and DBG_START_METH.

void FlushBufferImpl (  )  [protected, virtual]

Flush output buffer.

Implements Journal.


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

Generated on Fri Sep 26 07:44:26 2008 for SimTKcore by  doxygen 1.5.6