LLDB mainline
StreamAsynchronousIO.h
Go to the documentation of this file.
1//===-- StreamAsynchronousIO.h -----------------------------------*- C++-*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_CORE_STREAMASYNCHRONOUSIO_H
10#define LLDB_CORE_STREAMASYNCHRONOUSIO_H
11
12#include "lldb/Utility/Stream.h"
13
14#include <string>
15
16#include <cstddef>
17
18namespace lldb_private {
19class Debugger;
20
22public:
23 StreamAsynchronousIO(Debugger &debugger, bool for_stdout, bool colors);
24
25 ~StreamAsynchronousIO() override;
26
27 void Flush() override;
28
29protected:
30 size_t WriteImpl(const void *src, size_t src_len) override;
31
32private:
34 std::string m_data;
36};
37
38} // namespace lldb_private
39
40#endif // LLDB_CORE_STREAMASYNCHRONOUSIO_H
A class to manage flag bits.
Definition: Debugger.h:80
void Flush() override
Flush the stream.
size_t WriteImpl(const void *src, size_t src_len) override
Output character bytes to the stream.
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
A class that represents a running process on the host machine.