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