#include <MsgLogStream.h>
Inheritance diagram for MsgLogger::MsgLogStream:
Public Member Functions | |
MsgLogStream (MsgLogLevel sev, const char *file=0, int line=-1) | |
MsgLogStream (const std::string &loggerName, MsgLogLevel sev, const char *file=0, int line=-1) | |
virtual | ~MsgLogStream () |
std::ostream & | ostream_hack () |
void | emit_content () |
bool | ok () const |
void | finish () |
This software was developed originally for the BaBar collaboration and adapted/rewritten for LUSI.
Copyright (C) 2005 SLAC
Definition at line 177 of file MsgLogStream.h.
MsgLogger::MsgLogStream::MsgLogStream | ( | MsgLogLevel | sev, | |
const char * | file = 0 , |
|||
int | line = -1 | |||
) | [explicit] |
Constructors. 'file' argument is usually a filenamestring constructed from __FILE__ macros. It is char* type instead of std::string for optimization reasons (crappy C++ has no compile-time constructors for classes.) The pointer is stored in an object, content is not copied, so make sure that you don't overwrite the string you pass.
Definition at line 46 of file MsgLogStream.cpp.
References MsgLogger::MsgLogger().
MsgLogger::MsgLogStream::MsgLogStream | ( | const std::string & | loggerName, | |
MsgLogLevel | sev, | |||
const char * | file = 0 , |
|||
int | line = -1 | |||
) |
MsgLogger::MsgLogStream::~MsgLogStream | ( | ) | [virtual] |
void MsgLogger::MsgLogStream::emit_content | ( | ) |
Definition at line 73 of file MsgLogStream.cpp.
References MsgLogger::MsgLogLevel::fatal, and logger.
Referenced by ~MsgLogStream().
void MsgLogger::MsgLogStream::finish | ( | ) | [inline] |
Definition at line 204 of file MsgLogStream.h.
bool MsgLogger::MsgLogStream::ok | ( | ) | const [inline] |
Definition at line 201 of file MsgLogStream.h.
std::ostream& MsgLogger::MsgLogStream::ostream_hack | ( | ) | [inline] |
Definition at line 195 of file MsgLogStream.h.