class MergedDescriptorDatabase
Defined at line 347 of file ../../third_party/protobuf/src/google/protobuf/descriptor_database.h
A DescriptorDatabase that wraps two or more others. It first searches the
first database and, if that fails, tries the second, and so on.
Public Methods
void MergedDescriptorDatabase (DescriptorDatabase * source1, DescriptorDatabase * source2)
Merge just two databases. The sources remain property of the caller.
void MergedDescriptorDatabase (const std::vector<DescriptorDatabase *> & sources)
Merge more than two databases. The sources remain property of the caller.
The vector may be deleted after the constructor returns but the
DescriptorDatabases need to stick around.
void MergedDescriptorDatabase (const MergedDescriptorDatabase & )
Defined at line 357 of file ../../third_party/protobuf/src/google/protobuf/descriptor_database.h
MergedDescriptorDatabase & operator= (const MergedDescriptorDatabase & )
Defined at line 358 of file ../../third_party/protobuf/src/google/protobuf/descriptor_database.h
void ~MergedDescriptorDatabase ()
bool FindFileByName (const std::string & filename, FileDescriptorProto * output)
implements DescriptorDatabase -----------------------------------
bool FindFileContainingSymbol (const std::string & symbol_name, FileDescriptorProto * output)
bool FindFileContainingExtension (const std::string & containing_type, int field_number, FileDescriptorProto * output)
bool FindAllExtensionNumbers (const std::string & extendee_type, std::vector<int> * output)
Merges the results of calling all databases. Returns true iff any
of the databases returned true.
bool FindAllFileNames (std::vector<std::string> * output)
This function is best-effort. Returns true if at least one underlying
DescriptorDatabase returns true.