Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mbilogTextBackendBase.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef _mbilogTextBackendBase_H
14
#define _mbilogTextBackendBase_H
15
16
#include "
mbilogBackendBase.h
"
17
#include "
mbilogExports.h
"
18
19
namespace
mbilog
20
{
28
class
MBILOG_EXPORT
TextBackendBase
:
public
BackendBase
29
{
30
public
:
31
~
TextBackendBase
()
override
;
32
39
void
ProcessMessage(
const
mbilog::LogMessage
&logMessage)
override
= 0;
40
41
protected
:
45
void
FormatSmart(
const
LogMessage
&l,
int
threadID = 0);
46
50
void
FormatFull(
const
LogMessage
&l,
int
threadID = 0);
51
55
void
FormatSmart(std::ostream &out,
const
LogMessage
&l,
int
threadID = 0);
56
60
void
FormatFull(std::ostream &out,
const
LogMessage
&l,
int
threadID = 0);
61
63
void
AppendTimeStamp(std::ostream &out);
64
66
// TODO: implement for linux?
67
void
FormatSmartWindows(
const
mbilog::LogMessage
&l,
int
/*threadID*/
);
68
};
69
}
70
71
#endif
MBILOG_EXPORT
#define MBILOG_EXPORT
Definition:
mbilogExports.h:15
mbilogExports.h
mbilogBackendBase.h
mbilog::LogMessage
An object of this class represents a single logging message (logging event) of the mbi logging mechan...
Definition:
mbilogLogMessage.h:30
mbilog::TextBackendBase
This class is an abstract superclass for logging text backends. It adds string formatting methods to ...
Definition:
mbilogTextBackendBase.h:28
mbilog::BackendBase
This class is an interface for logging backends that can be registered in the mbi logging mechanism...
Definition:
mbilogBackendBase.h:38
mbilog
Definition:
mbilog.cpp:21
Source
Utilities
mbilog
mbilogTextBackendBase.h
Generated on Thu Mar 12 2020 10:23:38 for Medical Imaging Interaction Toolkit by
1.8.13