clang
3.7.0
|
Represents an open file. More...
#include <VirtualFileSystem.h>
Public Member Functions | |
virtual | ~File () |
Destroy the file after closing it (if open). Sub-classes should generally call close() inside their destructors. We cannot do that from the base class, since close is virtual. More... | |
virtual llvm::ErrorOr< Status > | status ()=0 |
Get the status of the file. More... | |
virtual llvm::ErrorOr < std::unique_ptr < llvm::MemoryBuffer > > | getBuffer (const Twine &Name, int64_t FileSize=-1, bool RequiresNullTerminator=true, bool IsVolatile=false)=0 |
Get the contents of the file as a MemoryBuffer . More... | |
virtual std::error_code | close ()=0 |
Closes the file. More... | |
virtual void | setName (StringRef Name)=0 |
Sets the name to use for this file. More... | |
Represents an open file.
Definition at line 83 of file VirtualFileSystem.h.
|
virtual |
Destroy the file after closing it (if open). Sub-classes should generally call close() inside their destructors. We cannot do that from the base class, since close is virtual.
Definition at line 66 of file VirtualFileSystem.cpp.
|
pure virtual |
Closes the file.
|
pure virtual |
Get the contents of the file as a MemoryBuffer
.
|
pure virtual |
Sets the name to use for this file.
|
pure virtual |
Get the status of the file.