Medical Imaging Interaction Toolkit  2018.4.99-65942676
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 (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 _mbilogBackendBase_H
14 #define _mbilogBackendBase_H
15 
16 #include "mbilogExports.h"
17 #include "mbilogLogMessage.h"
18 
19 namespace mbilog
20 {
27  enum MBILOG_EXPORT OutputType
28  {
29  Console = 0,
30  File,
31  Other = 100
32  };
39  {
40  public:
41  virtual ~BackendBase();
42 
50  virtual void ProcessMessage(const mbilog::LogMessage &logMessage) = 0;
51 
55  virtual OutputType GetOutputType() const = 0;
56  };
57 }
58 
59 #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...
Definition: mbilog.h:25