Fraxinus  18.10
An IGT application
cxLogIOStreamRedirecter.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXLOGIOSTREAMREDIRECTER_H
13 #define CXLOGIOSTREAMREDIRECTER_H
14 
15 #include "boost/shared_ptr.hpp"
16 #include "cxDefinitions.h"
17 
24 namespace cx
25 {
26 
31 {
32 private:
33  boost::shared_ptr<class MyStreamBuf> StreamBuf;
34  std::streambuf *OrigBuf;
35  std::ostream& mStream;
36 public:
37  SingleStreamerImpl(std::ostream& str, MESSAGE_LEVEL level);
39  void sendUnredirected(const QString& sequence);
40 };
41 
42 } //namespace cx
43 
48 #endif // CXLOGIOSTREAMREDIRECTER_H
SingleStreamerImpl(std::ostream &str, MESSAGE_LEVEL level)
void sendUnredirected(const QString &sequence)
Namespace for all CustusX production code.