1 //===-- StreamFile.h --------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_StreamFile_h_
11 #define liblldb_StreamFile_h_
18 // Other libraries and framework includes
21 #include "lldb/Core/Stream.h"
22 #include "lldb/Host/File.h"
24 namespace lldb_private {
26 class StreamFile : public Stream
29 //------------------------------------------------------------------
30 // Constructors and Destructors
31 //------------------------------------------------------------------
34 StreamFile (uint32_t flags, uint32_t addr_size, lldb::ByteOrder byte_order);
36 StreamFile (int fd, bool transfer_ownership);
38 StreamFile (const char *path);
40 StreamFile (FILE *fh, bool transfer_ownership);
61 Write (const void *s, size_t length);
64 //------------------------------------------------------------------
65 // Classes that inherit from StreamFile can see and modify these
66 //------------------------------------------------------------------
70 DISALLOW_COPY_AND_ASSIGN (StreamFile);
73 } // namespace lldb_private
75 #endif // liblldb_StreamFile_h_