LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::CachedFileStream Class Reference

This class wraps an output stream for a file. More...

#include "llvm/Support/Caching.h"

Public Member Functions

 CachedFileStream (std::unique_ptr< raw_pwrite_stream > OS, std::string OSPath="")
 
virtual ~CachedFileStream ()=default
 

Public Attributes

std::unique_ptr< raw_pwrite_streamOS
 
std::string ObjectPathName
 

Detailed Description

This class wraps an output stream for a file.

Most clients should just be able to return an instance of this base class from the stream callback, but if a client needs to perform some action after the stream is written to, that can be done by deriving from this class and overriding the destructor.

Definition at line 28 of file Caching.h.

Constructor & Destructor Documentation

◆ CachedFileStream()

llvm::CachedFileStream::CachedFileStream ( std::unique_ptr< raw_pwrite_stream OS,
std::string  OSPath = "" 
)
inline

Definition at line 30 of file Caching.h.

◆ ~CachedFileStream()

virtual llvm::CachedFileStream::~CachedFileStream ( )
virtualdefault

Member Data Documentation

◆ ObjectPathName

std::string llvm::CachedFileStream::ObjectPathName

Definition at line 34 of file Caching.h.

◆ OS

std::unique_ptr<raw_pwrite_stream> llvm::CachedFileStream::OS

Definition at line 33 of file Caching.h.


The documentation for this class was generated from the following file: