RTT::Logger::In Struct Reference

#include <Logger.hpp>

List of all members.

Public Member Functions

 In (const std::string &module)
 In (const std::string &module)
 ~In ()
 ~In ()

Public Attributes

std::string oldmod

Detailed Description

Notify the Logger in which 'module' the message occured. This returns an object whose scope (i.e. {...} ) is indicative for the boundaries of the module. This is reset to the previous module name (default is 'Logger') after the in object is destroyed. Practical usage must thus have the form:

         {
             Logger::In("Mymodule");
             Logger::log() << Logger::Warning << "My warning message"<<Logger::nl;
             Logger::log() << "A second message, still in MyModule"<<Logger::nl;
         }
         Logger::log() << Logger::Info << "A message in module 'Logger'..."<<Logger::endl;
         

Definition at line 118 of file install/include/rtt/Logger.hpp.


Constructor & Destructor Documentation

RTT::Logger::In::In ( const std::string &  module  ) 

Definition at line 373 of file Logger.cpp.

RTT::Logger::In::~In (  ) 

Definition at line 379 of file Logger.cpp.

RTT::Logger::In::In ( const std::string &  module  ) 
RTT::Logger::In::~In (  ) 

Member Data Documentation

Definition at line 121 of file install/include/rtt/Logger.hpp.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Jan 11 09:49:47 2013