Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

atoms::DebugLogger::Mon Class Reference

#include <debug.hh>

Inheritance diagram for atoms::DebugLogger::Mon:

Inheritance graph
[legend]
Collaboration diagram for atoms::DebugLogger::Mon:

Collaboration graph
[legend]
List of all members.

Detailed Description

Debugging monitor.

Useful for displaying when functions are entered and exited.

Definition at line 115 of file debug.hh.

Public Member Functions

 Mon (DebugLogger &logger, DebugLogger::Level level, const char *nameFmt,...)
 Initializes the monitor with the given function/block name.

 ~Mon ()
 Prints the message that the block is being exited.


Private Attributes

DebugLoggerlogger
DebugLogger::Level level
boost::scoped_array< char > name

Static Private Attributes

const size_t NAME_SIZE = 80


Constructor & Destructor Documentation

atoms::DebugLogger::Mon::Mon DebugLogger logger,
DebugLogger::Level  level,
const char *  nameFmt,
... 
 

Initializes the monitor with the given function/block name.

Definition at line 230 of file debug.cc.

References args, atoms::DebugLogger::log(), name, NAME_SIZE, and atoms::write().

Here is the call graph for this function:

atoms::DebugLogger::Mon::~Mon  )  [inline]
 

Prints the message that the block is being exited.

Definition at line 122 of file debug.hh.

References atoms::DebugLogger::log(), and name.

Here is the call graph for this function:


Member Data Documentation

DebugLogger::Level atoms::DebugLogger::Mon::level [private]
 

Definition at line 128 of file debug.hh.

DebugLogger& atoms::DebugLogger::Mon::logger [private]
 

Definition at line 127 of file debug.hh.

boost::scoped_array<char> atoms::DebugLogger::Mon::name [private]
 

Definition at line 129 of file debug.hh.

Referenced by Mon(), and ~Mon().

const size_t atoms::DebugLogger::Mon::NAME_SIZE = 80 [static, private]
 

Definition at line 36 of file debug.cc.

Referenced by Mon().


The documentation for this class was generated from the following files:
Generated on Wed Jun 15 01:20:48 2005 for atoms++ by doxygen 1.3.5