fw4spl
fwCore::log::ScopedMessage Class Reference

Scoped messages. More...

#include <ScopedMessage.hpp>

+ Inheritance diagram for fwCore::log::ScopedMessage:
+ Collaboration diagram for fwCore::log::ScopedMessage:

Public Member Functions

FWCORE_API ScopedMessage (const char *_file, int _line, std::string enterMessage, std::string leaveMessage="")
 
void use ()
 
- Public Member Functions inherited from fwCore::BaseObject
virtual bool isA (const std::string &type) const
 
virtual const std::string & getLeafClassname () const
 return object's classname without its namespace, i.e. BaseObject
 
virtual const std::string & getClassname () const
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 

Protected Attributes

const char * m_file
 
int m_line
 
std::string m_baseMsg
 
std::string m_leave
 
::fwCore::HiResTimer m_timer
 

Additional Inherited Members

- Static Public Member Functions inherited from fwCore::BaseObject
static bool isTypeOf (const std::string &type)
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Detailed Description

Scoped messages.

Generate a scoped trace message with an enter and a leave message, and the time elapsed between the two messages.

Definition at line 31 of file ScopedMessage.hpp.


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