1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2008 Google Inc. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 #ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_ENUM_H__ 9 #define GOOGLE_PROTOBUF_COMPILER_CSHARP_ENUM_H__ 10 11 #include <string> 12 13 #include "google/protobuf/compiler/code_generator.h" 14 #include "google/protobuf/compiler/csharp/csharp_source_generator_base.h" 15 #include "google/protobuf/descriptor.h" 16 #include "google/protobuf/io/printer.h" 17 18 namespace google { 19 namespace protobuf { 20 namespace compiler { 21 namespace csharp { 22 23 class EnumGenerator : public SourceGeneratorBase { 24 public: 25 EnumGenerator(const EnumDescriptor* descriptor, const Options* options); 26 ~EnumGenerator(); 27 28 EnumGenerator(const EnumGenerator&) = delete; 29 EnumGenerator& operator=(const EnumGenerator&) = delete; 30 31 void Generate(io::Printer* printer); 32 33 private: 34 const EnumDescriptor* descriptor_; 35 }; 36 37 } // namespace csharp 38 } // namespace compiler 39 } // namespace protobuf 40 } // namespace google 41 42 #endif // GOOGLE_PROTOBUF_COMPILER_CSHARP_ENUM_H__ 43 44