LLVM API Documentation
#include <raw_ostream.h>


Public Member Functions | |
| raw_fd_ostream (const char *Filename, bool Binary, std::string &ErrorInfo) | |
| raw_fd_ostream (int fd, bool shouldClose) | |
| ~raw_fd_ostream () | |
| virtual void | flush_impl () |
| void | close () |
| close - Manually flush the stream and close the file. | |
| uint64_t | tell () |
| tell - Return the current offset with the file. | |
Definition at line 151 of file raw_ostream.h.
| raw_fd_ostream::raw_fd_ostream | ( | const char * | Filename, | |
| bool | Binary, | |||
| std::string & | ErrorInfo | |||
| ) |
raw_fd_ostream - Open the specified file for writing. If an error occurs, information about the error is put into ErrorInfo, and the stream should be immediately destroyed; the string will be empty if no error occurred.
| Filename | - The file to open. If this is "-" then the stream will use stdout instead. | |
| Binary | - The file should be opened in binary mode on platforms that support this distinction. |
Definition at line 204 of file raw_ostream.cpp.
References llvm::sys::Program::ChangeStdoutToBinary().
| llvm::raw_fd_ostream::raw_fd_ostream | ( | int | fd, | |
| bool | shouldClose | |||
| ) | [inline] |
raw_fd_ostream ctor - FD is the file descriptor that this writes to. If ShouldClose is true, this closes the file when
Definition at line 169 of file raw_ostream.h.
| raw_fd_ostream::~raw_fd_ostream | ( | ) |
| void raw_fd_ostream::flush_impl | ( | ) | [virtual] |
flush_impl - The is the piece of the class that is implemented by subclasses. This outputs the currently buffered data and resets the buffer to empty.
Implements llvm::raw_ostream.
Definition at line 241 of file raw_ostream.cpp.
References llvm::raw_ostream::HandleFlush(), llvm::raw_ostream::OutBufCur, llvm::raw_ostream::OutBufStart, and llvm::raw_ostream::write().
| void raw_fd_ostream::close | ( | ) |
close - Manually flush the stream and close the file.
Definition at line 250 of file raw_ostream.cpp.
References llvm::raw_ostream::flush().
Referenced by ~raw_fd_ostream().
| uint64_t llvm::raw_fd_ostream::tell | ( | ) | [inline] |
tell - Return the current offset with the file.
Definition at line 182 of file raw_ostream.h.
References llvm::raw_ostream::OutBufCur, and llvm::raw_ostream::OutBufStart.
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.