Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RS::LogArea Class Reference

LogArea is used to keep track of the information associated with a log area. More...

List of all members.

Public Member Functions

 LogArea (const LogAreaName parent_area=LA_ROBOSOC, const bool do_file_log=true, std::ostream *file_log_stream=NULL, const bool do_screen_log=true, std::ostream *screen_log_stream=NULL)
 Construct a log area that stores information about one log area.

 LogArea (const LogArea &obj)
 Copy constructor.

 ~LogArea ()
 Destructor.

LogArea & operator= (const LogArea &obj)
 Assignment operator.

void setParentArea (const LogAreaName parent_area)
 Set the parent area to parent_area.

LogAreaName getParentArea () const
 Get the parent area.

void setLogScreen (const bool do_log)
 Turn on and off the logging to the screen.

bool logScreen () const
 true iff the log should be sent to the screen.

void setLogFile (const bool do_log)
 Turn on and off the logging to a file.

bool logFile () const
 true iff the log should be sent to the file.

void setFileLogStream (std::ostream *os)
 Set which stream the file log should be sent to.

std::ostream * getFileLogStream ()
 Get the file stream.

void setScreenLogStream (std::ostream *os)
 Set which stream the screen log should be sent to.

std::ostream * getScreenLogStream ()
 Get the screen stream.


Detailed Description

LogArea is used to keep track of the information associated with a log area.

Current information is the parent area, if anything should be logged and where to. Future information might be a function for processing the data before/after printing it.

Unit:
Library
Revision
1.3
Author
frehe
Date
2001/09/03 19:38:59

Definition at line 77 of file LogArea.h.


The documentation for this class was generated from the following files:
Generated on Mon Aug 29 08:22:29 2011 for RoboSoc by doxygen1.3-rc3