NorMIT-nav  22.09
An IGT application
cx::MessageLogger Class Reference

#include <cxLogger.h>

Public Member Functions

 MessageLogger (const char *file, int line, const char *function, const QString &channel, MESSAGE_LEVEL severity)
 
 ~MessageLogger ()
 
MessageLogger logger () const
 
MessageLogger logger (QString text) const
 
template<class T >
MessageLoggeroperator<< (T value)
 

Detailed Description

Helper class for logging to a cx::Reporter

Based on the Qt logger classes QDebug and QMessageLogger

Definition at line 38 of file cxLogger.h.

Constructor & Destructor Documentation

◆ MessageLogger()

cx::MessageLogger::MessageLogger ( const char *  file,
int  line,
const char *  function,
const QString &  channel,
MESSAGE_LEVEL  severity 
)

Definition at line 28 of file cxLogger.cpp.

◆ ~MessageLogger()

cx::MessageLogger::~MessageLogger ( )

Definition at line 42 of file cxLogger.cpp.

Member Function Documentation

◆ logger() [1/2]

MessageLogger cx::MessageLogger::logger ( ) const

Definition at line 51 of file cxLogger.cpp.

◆ logger() [2/2]

MessageLogger cx::MessageLogger::logger ( QString  text) const

Definition at line 56 of file cxLogger.cpp.

◆ operator<<()

template<class T >
MessageLogger& cx::MessageLogger::operator<< ( value)
inline

Definition at line 48 of file cxLogger.h.


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