WPILibC++
2020.3.2
raw_os_ostream.h
1
//===- raw_os_ostream.h - std::ostream adaptor for raw_ostream --*- 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
// This file defines the raw_os_ostream class.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef WPIUTIL_WPI_RAW_OS_OSTREAM_H
15
#define WPIUTIL_WPI_RAW_OS_OSTREAM_H
16
17
#include "wpi/raw_ostream.h"
18
#include <iosfwd>
19
20
namespace
wpi
{
21
25
class
raw_os_ostream
:
public
raw_ostream
{
26
std::ostream &OS;
27
29
void
write_impl(
const
char
*Ptr,
size_t
Size)
override
;
30
33
uint64_t current_pos()
const override
;
34
35
public
:
36
raw_os_ostream
(std::ostream &O) : OS(O) {}
37
~
raw_os_ostream
()
override
;
38
};
39
40
}
// end wpi namespace
41
42
#endif
wpi
WPILib C++ utilities (wpiutil) namespace.
Definition:
EventLoopRunner.h:17
wpi::raw_os_ostream
raw_os_ostream - A raw_ostream that writes to an std::ostream.
Definition:
raw_os_ostream.h:25
wpi::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition:
raw_ostream.h:47
wpiutil
src
main
native
include
wpi
raw_os_ostream.h
Generated on Fri Feb 21 2020 08:50:37 for WPILibC++ by
1.8.16