Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mbilogBackendBase.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 _mbilogBackendBase_H
18 #define _mbilogBackendBase_H
19 
20 #include "mbilogExports.h"
21 #include "mbilogLogMessage.h"
22 
23 namespace mbilog
24 {
31  enum MBILOG_EXPORT OutputType
32  {
33  Console = 0,
34  File,
35  Other = 100
36  };
43  {
44  public:
45  virtual ~BackendBase();
46 
54  virtual void ProcessMessage(const mbilog::LogMessage &logMessage) = 0;
55 
59  virtual OutputType GetOutputType() const = 0;
60  };
61 }
62 
63 #endif
#define MBILOG_EXPORT
Definition: mbilogExports.h:15
An object of this class represents a single logging message (logging event) of the mbi logging mechan...
This class is an interface for logging backends that can be registered in the mbi logging mechanism...