Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
mbilogBackendCout.cpp
Go to the documentation of this file.
1
/*===================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#include <ctime>
18
#include <iomanip>
19
#include <list>
20
21
#include "
mbilogBackendCout.h
"
22
23
mbilog::BackendCout::BackendCout
()
24
{
25
m_useFullOutput =
false
;
26
}
27
28
mbilog::BackendCout::~BackendCout
()
29
{
30
}
31
32
void
mbilog::BackendCout::SetFull
(
bool
full)
33
{
34
m_useFullOutput = full;
35
}
36
37
void
mbilog::BackendCout::ProcessMessage
(
const
mbilog::LogMessage
&l)
38
{
39
if
(m_useFullOutput)
40
FormatFull(l);
41
else
42
FormatSmart(l);
43
}
44
45
mbilog::OutputType
mbilog::BackendCout::GetOutputType
()
const
46
{
47
return
mbilog::Console
;
48
}
mbilog::LogMessage
An object of this class represents a single logging message (logging event) of the mbi logging mechan...
Definition:
mbilogLogMessage.h:39
mbilog::BackendCout::GetOutputType
virtual OutputType GetOutputType() const override
Definition:
mbilogBackendCout.cpp:45
mbilog::BackendCout::SetFull
void SetFull(bool full)
Sets the formatting mode. If true long messages will be displayed. Default is false (short/smart mess...
Definition:
mbilogBackendCout.cpp:32
mbilogBackendCout.h
Console
Console
Definition:
mbilogBackendBase.h:33
mbilog::BackendCout::~BackendCout
virtual ~BackendCout()
Definition:
mbilogBackendCout.cpp:28
mbilog::BackendCout::ProcessMessage
virtual void ProcessMessage(const mbilog::LogMessage &l) override
This method is called by the mbi logging mechanism if the object is registered in the mbi logging mec...
Definition:
mbilogBackendCout.cpp:37
mbilog::BackendCout::BackendCout
BackendCout()
Definition:
mbilogBackendCout.cpp:23
git
MITK
Utilities
mbilog
mbilogBackendCout.cpp
Generated on Fri Feb 3 2017 20:51:52 for Medical Imaging Interaction Toolkit by
1.8.9.1