#include <importer.h>

Classes | |
| struct | Mapping |
Public Types | |
| enum | DiskFileToVirtualFileResult { SUCCESS, SHADOWED, CANNOT_OPEN, NO_MAPPING } |
Public Member Functions | |
| DiskFileToVirtualFileResult | DiskFileToVirtualFile (const std::string &disk_file, std::string *virtual_file, std::string *shadowing_disk_file) |
| DiskSourceTree () | |
| std::string | GetLastErrorMessage () override |
| void | MapPath (const std::string &virtual_path, const std::string &disk_path) |
| io::ZeroCopyInputStream * | Open (const std::string &filename) override |
| bool | VirtualFileToDiskFile (const std::string &virtual_file, std::string *disk_file) |
| ~DiskSourceTree () | |
Public Member Functions inherited from google::protobuf::compiler::SourceTree | |
| SourceTree () | |
| virtual | ~SourceTree () |
Private Member Functions | |
| GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (DiskSourceTree) | |
| io::ZeroCopyInputStream * | OpenDiskFile (const std::string &filename) |
| io::ZeroCopyInputStream * | OpenVirtualFile (const std::string &virtual_file, std::string *disk_file) |
Private Attributes | |
| std::string | last_error_message_ |
| std::vector< Mapping > | mappings_ |
Definition at line 240 of file importer.h.
| Enumerator | |
|---|---|
| SUCCESS | |
| SHADOWED | |
| CANNOT_OPEN | |
| NO_MAPPING | |
Definition at line 264 of file importer.h.
| google::protobuf::compiler::DiskSourceTree::DiskSourceTree | ( | ) |
Definition at line 252 of file importer.cc.
| google::protobuf::compiler::DiskSourceTree::~DiskSourceTree | ( | ) |
Definition at line 254 of file importer.cc.
| DiskSourceTree::DiskFileToVirtualFileResult google::protobuf::compiler::DiskSourceTree::DiskFileToVirtualFile | ( | const std::string & | disk_file, |
| std::string * | virtual_file, | ||
| std::string * | shadowing_disk_file | ||
| ) |
Definition at line 397 of file importer.cc.
|
overridevirtual |
Reimplemented from google::protobuf::compiler::SourceTree.
Definition at line 452 of file importer.cc.
|
private |
| void google::protobuf::compiler::DiskSourceTree::MapPath | ( | const std::string & | virtual_path, |
| const std::string & | disk_path | ||
| ) |
Definition at line 391 of file importer.cc.
|
overridevirtual |
Implements google::protobuf::compiler::SourceTree.
Definition at line 448 of file importer.cc.
|
private |
Definition at line 493 of file importer.cc.
|
private |
Definition at line 456 of file importer.cc.
| bool google::protobuf::compiler::DiskSourceTree::VirtualFileToDiskFile | ( | const std::string & | virtual_file, |
| std::string * | disk_file | ||
| ) |
Definition at line 441 of file importer.cc.
|
private |
Definition at line 316 of file importer.h.
|
private |
Definition at line 315 of file importer.h.