MachineIntelligenceCore:Toolchain
|
Small class used to prepare line for logger. Object created only for the purpose of parsing the ostringstream, during the macro LOG call. More...
#include <ScopeLogger.hpp>
Public Member Functions | |
ScopeLogger (Logger *p_, const std::string &f_, int l_, Severity_t s_) | |
~ScopeLogger () | |
std::ostringstream & | get () |
Protected Attributes | |
std::ostringstream | os |
Private Member Functions | |
ScopeLogger (const ScopeLogger &rhs) | |
ScopeLogger & | operator= (const ScopeLogger &) |
Private Attributes | |
Logger * | parent |
Parent class, to which the information will be sent. More... | |
const std::string | file |
Name of the file which called the logger. More... | |
int | line |
Number of the file line in which the logger was called. More... | |
Severity_t | severity |
Log (message) severity. More... | |
Small class used to prepare line for logger. Object created only for the purpose of parsing the ostringstream, during the macro LOG call.
Definition at line 37 of file ScopeLogger.hpp.
|
inline |
Constructor.
p_ | Parent - "main" logger object. |
f_ | Name of the file which called the logger. |
l_ | Number of the file line in which the logger was called. |
s_ | Log severity level. |
Definition at line 47 of file ScopeLogger.hpp.
|
inline |
Destructor. Passes the retrieved data to parent logger.
Definition at line 56 of file ScopeLogger.hpp.
References file, line, mic::logger::Logger::log(), os, parent, and severity.
|
inlineprivate |
Default private constructor - sets parent
rhs |
Definition at line 79 of file ScopeLogger.hpp.
|
inline |
Returns the ostringstream object to which user can write.
Definition at line 63 of file ScopeLogger.hpp.
References os.
|
inlineprivate |
Definition at line 84 of file ScopeLogger.hpp.
|
private |
Name of the file which called the logger.
Definition at line 93 of file ScopeLogger.hpp.
Referenced by ~ScopeLogger().
|
private |
Number of the file line in which the logger was called.
Definition at line 96 of file ScopeLogger.hpp.
Referenced by ScopeLogger(), and ~ScopeLogger().
|
protected |
Ostringstream object storing the user comment.
Definition at line 72 of file ScopeLogger.hpp.
Referenced by get(), and ~ScopeLogger().
|
private |
Parent class, to which the information will be sent.
Definition at line 90 of file ScopeLogger.hpp.
Referenced by ~ScopeLogger().
|
private |
Log (message) severity.
Definition at line 99 of file ScopeLogger.hpp.
Referenced by ScopeLogger(), and ~ScopeLogger().