File indexing completed on 2025-01-31 10:11:56
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_ENUM_H__
0009 #define GOOGLE_PROTOBUF_COMPILER_CSHARP_ENUM_H__
0010
0011 #include <string>
0012
0013 #include "google/protobuf/compiler/code_generator.h"
0014 #include "google/protobuf/compiler/csharp/csharp_source_generator_base.h"
0015 #include "google/protobuf/descriptor.h"
0016 #include "google/protobuf/io/printer.h"
0017
0018 namespace google {
0019 namespace protobuf {
0020 namespace compiler {
0021 namespace csharp {
0022
0023 class EnumGenerator : public SourceGeneratorBase {
0024 public:
0025 EnumGenerator(const EnumDescriptor* descriptor, const Options* options);
0026 ~EnumGenerator();
0027
0028 EnumGenerator(const EnumGenerator&) = delete;
0029 EnumGenerator& operator=(const EnumGenerator&) = delete;
0030
0031 void Generate(io::Printer* printer);
0032
0033 private:
0034 const EnumDescriptor* descriptor_;
0035 };
0036
0037 }
0038 }
0039 }
0040 }
0041
0042 #endif
0043