37 #ifndef GOOGLE_PROTOBUF_DESCRIPTOR_DATABASE_H__
38 #define GOOGLE_PROTOBUF_DESCRIPTOR_DATABASE_H__
51 class DescriptorDatabase;
52 class SimpleDescriptorDatabase;
53 class EncodedDescriptorDatabase;
54 class DescriptorPoolDatabase;
55 class MergedDescriptorDatabase;
72 virtual bool FindFileByName(
const string& filename,
78 virtual bool FindFileContainingSymbol(
const string& symbol_name,
85 virtual bool FindFileContainingExtension(
const string& containing_type,
145 bool FindFileByName(
const string& filename,
147 bool FindFileContainingSymbol(
const string& symbol_name,
149 bool FindFileContainingExtension(
const string& containing_type,
152 bool FindAllExtensionNumbers(
const string& extendee_type,
153 vector<int>* output);
161 template <
typename Value>
168 bool AddSymbol(
const string& name,
Value value);
174 Value FindFile(
const string& filename);
175 Value FindSymbol(
const string& name);
176 Value FindExtension(
const string& containing_type,
int field_number);
177 bool FindAllExtensionNumbers(
const string& containing_type,
178 vector<int>* output);
238 typename map<string, Value>::iterator FindLastLessOrEqual(
244 bool IsSubSymbol(
const string& sub_symbol,
const string& super_symbol);
248 bool ValidateSymbolName(
const string& name);
279 bool Add(
const void* encoded_file_descriptor,
int size);
283 bool AddCopy(
const void* encoded_file_descriptor,
int size);
286 bool FindNameOfFileContainingSymbol(
const string& symbol_name,
290 bool FindFileByName(
const string& filename,
292 bool FindFileContainingSymbol(
const string& symbol_name,
294 bool FindFileContainingExtension(
const string& containing_type,
297 bool FindAllExtensionNumbers(
const string& extendee_type,
298 vector<int>* output);
306 bool MaybeParse(pair<const void*, int> encoded_file,
319 bool FindFileByName(
const string& filename,
321 bool FindFileContainingSymbol(
const string& symbol_name,
323 bool FindFileContainingExtension(
const string& containing_type,
326 bool FindAllExtensionNumbers(
const string& extendee_type,
327 vector<int>* output);
348 bool FindFileByName(
const string& filename,
350 bool FindFileContainingSymbol(
const string& symbol_name,
352 bool FindFileContainingExtension(
const string& containing_type,
357 bool FindAllExtensionNumbers(
const string& extendee_type,
358 vector<int>* output);
369 #endif // GOOGLE_PROTOBUF_DESCRIPTOR_DATABASE_H__
SimpleDescriptorDatabase::DescriptorIndex< pair< const void *, int > > index_
Definition: descriptor_database.h:301
Definition: descriptor_database.h:268
DescriptorDatabase()
Definition: descriptor_database.h:67
DescriptorIndex< const FileDescriptorProto * > index_
Definition: descriptor_database.h:252
virtual bool FindAllExtensionNumbers(const string &, vector< int > *)
Definition: descriptor_database.h:99
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
Definition: common.h:89
Definition: descriptor_database.h:313
vector< DescriptorDatabase * > sources_
Definition: descriptor_database.h:362
Represents a JSON value. Use Value for UTF8 encoding and default allocator.
Definition: document.h:70
Definition: descriptor.h:1167
map< string, Value > by_name_
Definition: descriptor_database.h:181
Definition: descriptor.pb.h:722
Definition: descriptor.pb.h:546
Definition: descriptor_database.h:162
#define LIBPROTOBUF_EXPORT
Definition: common.h:105
vector< void * > files_to_delete_
Definition: descriptor_database.h:302
Definition: descriptor_database.h:65
Definition: descriptor_database.h:130
map< string, Value > by_symbol_
Definition: descriptor_database.h:182
const DescriptorPool & pool_
Definition: descriptor_database.h:330
Definition: BnetFileGenerator.h:47
const FieldDescriptor value
Definition: descriptor.h:1522
Definition: descriptor.pb.h:239
map< pair< string, int >, Value > by_extension_
Definition: descriptor_database.h:183
vector< const FileDescriptorProto * > files_to_delete_
Definition: descriptor_database.h:253
Definition: descriptor_database.h:336