37 #ifndef GOOGLE_PROTOBUF_COMPILER_IMPORTER_H__
38 #define GOOGLE_PROTOBUF_COMPILER_IMPORTER_H__
51 namespace io {
class ZeroCopyInputStream; }
57 class MultiFileErrorCollector;
86 error_collector_ = error_collector;
94 using_validation_error_collector_ =
true;
95 return &validation_error_collector_;
100 bool FindFileContainingSymbol(
const string& symbol_name,
102 bool FindFileContainingExtension(
const string& containing_type,
107 class SingleFileErrorCollector;
118 void AddError(
const string& filename,
119 const string& element_name,
122 const string& message);
169 void AddUnusedImportTrackFile(
const string& file_name);
170 void ClearUnusedImportTrackFiles();
188 virtual void AddError(
const string& filename,
int line,
int column,
189 const string& message) = 0;
215 virtual string GetLastErrorMessage();
245 void MapPath(
const string& virtual_path,
const string& disk_path);
275 DiskFileToVirtualFileResult
276 DiskFileToVirtualFile(
const string& disk_file,
277 string* virtual_file,
278 string* shadowing_disk_file);
283 bool VirtualFileToDiskFile(
const string& virtual_file,
string* disk_file);
288 virtual string GetLastErrorMessage();
295 inline Mapping(
const string& virtual_path_param,
296 const string& disk_path_param)
297 : virtual_path(virtual_path_param), disk_path(disk_path_param) {}
317 #endif // GOOGLE_PROTOBUF_COMPILER_IMPORTER_H__
const DescriptorPool * pool() const
Definition: importer.h:165
SourceTree * source_tree_
Definition: importer.h:107
Definition: importer.h:112
string last_error_message_
Definition: importer.h:300
Definition: importer.h:142
Definition: importer.h:224
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
Definition: common.h:89
DescriptorPool pool_
Definition: importer.h:174
Definition: importer.h:291
Definition: importer.h:199
Definition: importer.h:251
ValidationErrorCollector validation_error_collector_
Definition: importer.h:131
string disk_path
Definition: importer.h:293
DescriptorPool::ErrorCollector * GetValidationErrorCollector()
Definition: importer.h:93
DiskFileToVirtualFileResult
Definition: importer.h:248
Definition: message.h:165
Definition: descriptor.h:1249
Definition: importer.h:76
Definition: descriptor.h:1167
Mapping(const string &virtual_path_param, const string &disk_path_param)
Definition: importer.h:295
vector< Mapping > mappings_
Definition: importer.h:299
string virtual_path
Definition: importer.h:292
void RecordErrorsTo(MultiFileErrorCollector *error_collector)
Definition: importer.h:85
bool using_validation_error_collector_
Definition: importer.h:129
Definition: importer.h:249
Definition: importer.h:250
SourceTreeDescriptorDatabase database_
Definition: importer.h:173
#define LIBPROTOBUF_EXPORT
Definition: common.h:105
MultiFileErrorCollector * error_collector_
Definition: importer.h:110
Definition: descriptor_database.h:65
SourceTreeDescriptorDatabase * owner_
Definition: importer.h:125
SourceLocationTable source_locations_
Definition: importer.h:130
ErrorLocation
Definition: descriptor.h:1257
Definition: BnetFileGenerator.h:47
Definition: importer.h:181
Definition: descriptor.pb.h:239
Definition: descriptor.h:986
SourceTree()
Definition: importer.h:201
MultiFileErrorCollector()
Definition: importer.h:183