MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSNavigationLoggingBackend.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef mitkUSNavigationLoggingBackend_h
14#define mitkUSNavigationLoggingBackend_h
15
16#include <fstream>
17#include <vector>
18
19#include <mitkLogBackendText.h>
20#include <mitkLogMessage.h>
21#include <mitkLogLevel.h>
22
23namespace mitk {
27 class USNavigationLoggingBackend : public LogBackendText
28 {
29 public:
30
33
39 void SetOutputFileName(std::string filename);
40
47 void ProcessMessage(const LogMessage &logMessage ) override;
48
50 std::vector<std::string> GetNavigationMessages();
51
54 void WriteCSVFileWithNavigationMessages(std::string filename);
55
58
59 OutputType GetOutputType() const override;
60
61 private:
62 std::ofstream m_OutputStream;
63 std::vector<std::string> m_lastNavigationMessages;
64 std::vector<std::string> m_allNavigationMessages;
65 };
66} // namespace mitk
67
68
69#endif
Backend for the MITK log mechanism. This backend writes all messages to the given file.
void ProcessMessage(const LogMessage &logMessage) override
This method is called by the mbi logging mechanism if the object is registered in the mbi logging mec...
void WriteCSVFileWithNavigationMessages(std::string filename)
void SetOutputFileName(std::string filename)
Set file path und name for the output file. The file will be opened and all log messages will be dire...
IGT Exceptions.