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 virtual ~StreamAsynchronousIO (); 26 27 virtual void 28 Flush (); 29 30 virtual size_t 31 Write (const void *src, size_t src_len); 32 33 34 private: 35 Debugger &m_debugger; 36 std::string m_data; 37 bool m_for_stdout; 38 }; 39 40 } // namespace lldb_private 41 #endif // #ifndef liblldb_StreamAsynchronousIO_h 42