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

Logging::LogTrace Class Reference

#include <loggingLogTrace.h>

List of all members.

Public Types

typedef Loki::SmartPtr< LogTrace,
Loki::NoCopy, Loki::DisallowConversion,
Loki::RejectNull, Loki::DefaultSPStorage > 
LogTraceSmartPtr
 LogTrace smart pointer.

Public Member Functions

 LogTrace (Logger::LoggerSmartPtr logger, const std::string &method, const std::string &file, unsigned long line)
 LogTrace (Logger::LoggerSmartPtr logger, const std::string &method)
virtual ~LogTrace ()

Protected Member Functions

virtual void entryLog (Logger::LoggerSmartPtr logger, std::string method, std::string file, unsigned long line)

Private Attributes

Logger::LoggerSmartPtr logger_m
 logger reference saved for destructor use
std::string methodName_m
 method name saved for destructor use
std::string fileName_m
unsigned long lineNumber_m


Detailed Description

LogTrace class that logs an "Entering" message when instantiated and an "Exiting" message when destroyed


Member Typedef Documentation

typedef Loki::SmartPtr<LogTrace, Loki::NoCopy, Loki::DisallowConversion, Loki::RejectNull, Loki::DefaultSPStorage> Logging::LogTrace::LogTraceSmartPtr
 

LogTrace smart pointer.


Constructor & Destructor Documentation

Logging::LogTrace::LogTrace Logger::LoggerSmartPtr  logger,
const std::string &  method,
const std::string &  file,
unsigned long  line
 

Constructor

Parameters:
logger Logger to be used
method Name of the method from where the log was published.
file Name of the file from which the log came from.
line Line number from where the log was published.

Logging::LogTrace::LogTrace Logger::LoggerSmartPtr  logger,
const std::string &  method
 

Constructor

Parameters:
logger Logger to be used
method Name of the method from where the log was published.

virtual Logging::LogTrace::~LogTrace  )  [virtual]
 

Destructor


Member Function Documentation

virtual void Logging::LogTrace::entryLog Logger::LoggerSmartPtr  logger,
std::string  method,
std::string  file,
unsigned long  line
[protected, virtual]
 

Helper method called by the various constructors to log the trace entry.

Parameters:
logger Logger to be used
method Name of the method from where the log was published.
file Name of the file from which the log came from.
line Line number from where the log was published.


Member Data Documentation

std::string Logging::LogTrace::fileName_m [private]
 

unsigned long Logging::LogTrace::lineNumber_m [private]
 

Logger::LoggerSmartPtr Logging::LogTrace::logger_m [private]
 

logger reference saved for destructor use

std::string Logging::LogTrace::methodName_m [private]
 

method name saved for destructor use


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:37:28 2009 for ACS C++ API by doxygen 1.3.8