|
Ninja
|
Interface for reading files from disk. More...
#include <disk_interface.h>

Public Types | |
| enum | Status { Okay , NotFound , OtherError } |
| Result of ReadFile. More... | |
Public Member Functions | |
| virtual Status | ReadFile (const std::string &path, std::string *contents, std::string *err)=0 |
| Read and store in given string. More... | |
| virtual | ~FileReader () |
Interface for reading files from disk.
See DiskInterface for details. This base offers the minimum interface needed just to read files.
Definition at line 25 of file disk_interface.h.
| enum FileReader::Status |
Result of ReadFile.
| Enumerator | |
|---|---|
| Okay | |
| NotFound | |
| OtherError | |
Definition at line 29 of file disk_interface.h.
|
inlinevirtual |
Definition at line 26 of file disk_interface.h.
|
pure virtual |
Read and store in given string.
On success, return Okay. On error, return another Status and fill |err|.
Implemented in VirtualFileSystem, and RealDiskInterface.
Referenced by Builder::ExtractDeps().