Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::compiler::DiskSourceTree Class Reference

#include <importer.h>

Inheritance diagram for google::protobuf::compiler::DiskSourceTree:
Inheritance graph
[legend]

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::ZeroCopyInputStreamOpen (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::ZeroCopyInputStreamOpenDiskFile (const std::string &filename)
 
io::ZeroCopyInputStreamOpenVirtualFile (const std::string &virtual_file, std::string *disk_file)
 

Private Attributes

std::string last_error_message_
 
std::vector< Mappingmappings_
 

Detailed Description

Definition at line 240 of file importer.h.

Member Enumeration Documentation

◆ DiskFileToVirtualFileResult

Enumerator
SUCCESS 
SHADOWED 
CANNOT_OPEN 
NO_MAPPING 

Definition at line 264 of file importer.h.

Constructor & Destructor Documentation

◆ DiskSourceTree()

google::protobuf::compiler::DiskSourceTree::DiskSourceTree ( )

Definition at line 252 of file importer.cc.

◆ ~DiskSourceTree()

google::protobuf::compiler::DiskSourceTree::~DiskSourceTree ( )

Definition at line 254 of file importer.cc.

Member Function Documentation

◆ DiskFileToVirtualFile()

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.

◆ GetLastErrorMessage()

std::string google::protobuf::compiler::DiskSourceTree::GetLastErrorMessage ( )
overridevirtual

Reimplemented from google::protobuf::compiler::SourceTree.

Definition at line 452 of file importer.cc.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

google::protobuf::compiler::DiskSourceTree::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( DiskSourceTree  )
private

◆ MapPath()

void google::protobuf::compiler::DiskSourceTree::MapPath ( const std::string virtual_path,
const std::string disk_path 
)

Definition at line 391 of file importer.cc.

◆ Open()

io::ZeroCopyInputStream * google::protobuf::compiler::DiskSourceTree::Open ( const std::string filename)
overridevirtual

Implements google::protobuf::compiler::SourceTree.

Definition at line 448 of file importer.cc.

◆ OpenDiskFile()

io::ZeroCopyInputStream * google::protobuf::compiler::DiskSourceTree::OpenDiskFile ( const std::string filename)
private

Definition at line 493 of file importer.cc.

◆ OpenVirtualFile()

io::ZeroCopyInputStream * google::protobuf::compiler::DiskSourceTree::OpenVirtualFile ( const std::string virtual_file,
std::string disk_file 
)
private

Definition at line 456 of file importer.cc.

◆ VirtualFileToDiskFile()

bool google::protobuf::compiler::DiskSourceTree::VirtualFileToDiskFile ( const std::string virtual_file,
std::string disk_file 
)

Definition at line 441 of file importer.cc.

Member Data Documentation

◆ last_error_message_

std::string google::protobuf::compiler::DiskSourceTree::last_error_message_
private

Definition at line 316 of file importer.h.

◆ mappings_

std::vector<Mapping> google::protobuf::compiler::DiskSourceTree::mappings_
private

Definition at line 315 of file importer.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:09