CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | Protected Attributes | List of all members
ctkLogStream Class Reference

#include <Libs/PluginFramework/service/log/ctkLogStream.h>

Inheritance diagram for ctkLogStream:
Inheritance graph
[legend]
Collaboration diagram for ctkLogStream:
Collaboration graph
[legend]

Public Member Functions

 ctkLogStream (const ctkLogStream &logStream)
 
 ctkLogStream (ctkLogService *logService, int level, const std::exception *exc=0, const char *file=0, const char *function=0, int line=-1)
 
ctkLogStreamoperator<< (bool b)
 
ctkLogStreamoperator<< (const char *c)
 
template<class T >
ctkLogStreamoperator<< (const T &t)
 
virtual ~ctkLogStream ()
 

Protected Attributes

const std::exception * exc
 
const char * file
 
const char * function
 
int level
 
const int line
 
bool logged
 
ctkLogServicelogService
 
QString msg
 
QTextStream ts
 

Detailed Description

Definition at line 35 of file ctkLogStream.h.

Constructor & Destructor Documentation

◆ ctkLogStream() [1/2]

ctkLogStream::ctkLogStream ( ctkLogService logService,
int  level,
const std::exception *  exc = 0,
const char *  file = 0,
const char *  function = 0,
int  line = -1 
)

◆ ctkLogStream() [2/2]

ctkLogStream::ctkLogStream ( const ctkLogStream logStream)

◆ ~ctkLogStream()

virtual ctkLogStream::~ctkLogStream ( )
virtual

Member Function Documentation

◆ operator<<() [1/3]

ctkLogStream& ctkLogStream::operator<< ( bool  b)
inline

Definition at line 58 of file ctkLogStream.h.

◆ operator<<() [2/3]

ctkLogStream& ctkLogStream::operator<< ( const char *  c)
inline

Definition at line 52 of file ctkLogStream.h.

◆ operator<<() [3/3]

template<class T >
ctkLogStream& ctkLogStream::operator<< ( const T &  t)
inline

Definition at line 46 of file ctkLogStream.h.

Member Data Documentation

◆ exc

const std::exception* ctkLogStream::exc
protected

Definition at line 72 of file ctkLogStream.h.

◆ file

const char* ctkLogStream::file
protected

Definition at line 74 of file ctkLogStream.h.

◆ function

const char* ctkLogStream::function
protected

Definition at line 75 of file ctkLogStream.h.

◆ level

int ctkLogStream::level
protected

Definition at line 71 of file ctkLogStream.h.

◆ line

const int ctkLogStream::line
protected

Definition at line 76 of file ctkLogStream.h.

◆ logged

bool ctkLogStream::logged
protected

Definition at line 68 of file ctkLogStream.h.

◆ logService

ctkLogService* ctkLogStream::logService
protected

Definition at line 70 of file ctkLogStream.h.

◆ msg

QString ctkLogStream::msg
protected

Definition at line 66 of file ctkLogStream.h.

◆ ts

QTextStream ctkLogStream::ts
protected

Definition at line 67 of file ctkLogStream.h.


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