TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::compiler::DiskSourceTree Class Reference

#include <importer.h>

Classes

struct  Mapping
 

Public Types

enum  DiskFileToVirtualFileResult { SUCCESS, SHADOWED, CANNOT_OPEN, NO_MAPPING }
 

Public Member Functions

 DiskSourceTree ()
 
 ~DiskSourceTree ()
 
void MapPath (const string &virtual_path, const string &disk_path)
 
DiskFileToVirtualFileResult DiskFileToVirtualFile (const string &disk_file, string *virtual_file, string *shadowing_disk_file)
 
bool VirtualFileToDiskFile (const string &virtual_file, string *disk_file)
 
virtual io::ZeroCopyInputStreamOpen (const string &filename)
 
virtual string GetLastErrorMessage ()
 
- Public Member Functions inherited from google::protobuf::compiler::SourceTree
 SourceTree ()
 
virtual ~SourceTree ()
 

Private Member Functions

io::ZeroCopyInputStreamOpenVirtualFile (const string &virtual_file, string *disk_file)
 
io::ZeroCopyInputStreamOpenDiskFile (const string &filename)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (DiskSourceTree)
 

Private Attributes

vector< Mappingmappings_
 
string last_error_message_
 

Member Enumeration Documentation

Enumerator
SUCCESS 
SHADOWED 
CANNOT_OPEN 
NO_MAPPING 

Constructor & Destructor Documentation

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

Member Function Documentation

DiskFileToVirtualFileResult google::protobuf::compiler::DiskSourceTree::DiskFileToVirtualFile ( const string &  disk_file,
string *  virtual_file,
string *  shadowing_disk_file 
)
virtual string google::protobuf::compiler::DiskSourceTree::GetLastErrorMessage ( )
virtual
google::protobuf::compiler::DiskSourceTree::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( DiskSourceTree  )
private
void google::protobuf::compiler::DiskSourceTree::MapPath ( const string &  virtual_path,
const string &  disk_path 
)
virtual io::ZeroCopyInputStream* google::protobuf::compiler::DiskSourceTree::Open ( const string &  filename)
virtual
io::ZeroCopyInputStream* google::protobuf::compiler::DiskSourceTree::OpenDiskFile ( const string &  filename)
private
io::ZeroCopyInputStream* google::protobuf::compiler::DiskSourceTree::OpenVirtualFile ( const string &  virtual_file,
string *  disk_file 
)
private
bool google::protobuf::compiler::DiskSourceTree::VirtualFileToDiskFile ( const string &  virtual_file,
string *  disk_file 
)

Member Data Documentation

string google::protobuf::compiler::DiskSourceTree::last_error_message_
private
vector<Mapping> google::protobuf::compiler::DiskSourceTree::mappings_
private

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