Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mbilogBackendCout.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,
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 #ifndef _mbilogBackendCout_H
18 #define _mbilogBackendCout_H
19 
20 #include <iostream>
21 
22 #include "mbilogExports.h"
23 #include "mbilogLogMessage.h"
24 #include "mbilogLoggingTypes.h"
25 #include "mbilogTextBackendBase.h"
26 
27 namespace mbilog
28 {
35  {
36  public:
37  BackendCout();
38  virtual ~BackendCout();
39 
46  virtual void ProcessMessage(const mbilog::LogMessage &l) override;
47 
52  void SetFull(bool full);
53 
54  virtual OutputType GetOutputType() const override;
55 
56  private:
60  bool m_useFullOutput;
61  };
62 }
63 
64 #endif
#define MBILOG_EXPORT
Definition: mbilogExports.h:15
Default backend of the mbi logging mechanism. This backend is used if no other backend is registered...
An object of this class represents a single logging message (logging event) of the mbi logging mechan...
This class is an abstract superclass for logging text backends. It adds string formatting methods to ...