]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Core/StreamAsynchronousIO.h
Merge ^/head r312207 through r312308.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Core / StreamAsynchronousIO.h
1 //===-- StreamAsynchronousIO.h -----------------------------------*- C++
2 //-*-===//
3 //
4 //                     The LLVM Compiler Infrastructure
5 //
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
8 //
9 //===----------------------------------------------------------------------===//
10
11 #ifndef liblldb_StreamAsynchronousIO_h_
12 #define liblldb_StreamAsynchronousIO_h_
13
14 #include <string>
15
16 #include "lldb/Core/Stream.h"
17
18 namespace lldb_private {
19
20 class StreamAsynchronousIO : public Stream {
21 public:
22   StreamAsynchronousIO(Debugger &debugger, bool for_stdout);
23
24   ~StreamAsynchronousIO() override;
25
26   void Flush() override;
27
28   size_t Write(const void *src, size_t src_len) override;
29
30 private:
31   Debugger &m_debugger;
32   std::string m_data;
33   bool m_for_stdout;
34 };
35
36 } // namespace lldb_private
37
38 #endif // liblldb_StreamAsynchronousIO_h