OLD | NEW |
1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
3 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 struct Options; | 43 struct Options; |
44 | 44 |
45 class SourceGeneratorBase { | 45 class SourceGeneratorBase { |
46 protected: | 46 protected: |
47 SourceGeneratorBase(const FileDescriptor* descriptor, const Options* options); | 47 SourceGeneratorBase(const FileDescriptor* descriptor, const Options* options); |
48 virtual ~SourceGeneratorBase(); | 48 virtual ~SourceGeneratorBase(); |
49 | 49 |
50 std::string class_access_level(); | 50 std::string class_access_level(); |
51 const Options* options(); | 51 const Options* options(); |
52 | 52 |
53 // Write any attributes used to decorate generated function members (methods a
nd properties). | |
54 // Should not be used to decorate types. | |
55 void WriteGeneratedCodeAttributes(io::Printer* printer); | 53 void WriteGeneratedCodeAttributes(io::Printer* printer); |
56 | 54 |
57 private: | 55 private: |
58 const FileDescriptor* descriptor_; | 56 const FileDescriptor* descriptor_; |
59 const Options *options_; | 57 const Options *options_; |
60 | 58 |
61 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(SourceGeneratorBase); | 59 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(SourceGeneratorBase); |
62 }; | 60 }; |
63 | 61 |
64 } // namespace csharp | 62 } // namespace csharp |
65 } // namespace compiler | 63 } // namespace compiler |
66 } // namespace protobuf | 64 } // namespace protobuf |
67 } // namespace google | 65 } // namespace google |
68 | 66 |
69 #endif // GOOGLE_PROTOBUF_COMPILER_CSHARP_SOURCE_GENERATOR_BASE_H__ | 67 #endif // GOOGLE_PROTOBUF_COMPILER_CSHARP_SOURCE_GENERATOR_BASE_H__ |
70 | 68 |
OLD | NEW |