Index: third_party/protobuf/src/google/protobuf/compiler/objectivec/objectivec_generator.h |
diff --git a/third_party/protobuf/src/google/protobuf/compiler/objectivec/objectivec_generator.h b/third_party/protobuf/src/google/protobuf/compiler/objectivec/objectivec_generator.h |
index 09266b042f5dbddb53b8f6b7cb69a311a476886c..b172331861b2c726f0a973b9807451296704a21d 100644 |
--- a/third_party/protobuf/src/google/protobuf/compiler/objectivec/objectivec_generator.h |
+++ b/third_party/protobuf/src/google/protobuf/compiler/objectivec/objectivec_generator.h |
@@ -41,14 +41,25 @@ namespace protobuf { |
namespace compiler { |
namespace objectivec { |
+// CodeGenerator implementation which generates a ObjectiveC source file and |
+// header. If you create your own protocol compiler binary and you want it to |
+// support ObjectiveC output, you can do so by registering an instance of this |
+// CodeGenerator with the CommandLineInterface in your main() function. |
class LIBPROTOC_EXPORT ObjectiveCGenerator : public CodeGenerator { |
public: |
ObjectiveCGenerator(); |
~ObjectiveCGenerator(); |
// implements CodeGenerator ---------------------------------------- |
- bool Generate(const FileDescriptor* file, const string& parameter, |
- OutputDirectory* output_directory, string* error) const; |
+ bool HasGenerateAll() const; |
+ bool Generate(const FileDescriptor* file, |
+ const string& parameter, |
+ GeneratorContext* context, |
+ string* error) const; |
+ bool GenerateAll(const vector<const FileDescriptor*>& files, |
+ const string& parameter, |
+ GeneratorContext* context, |
+ string* error) const; |
private: |
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ObjectiveCGenerator); |