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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Generate the CallMethod() method of the service. | 98 // Generate the CallMethod() method of the service. |
99 void GenerateCallMethod(io::Printer* printer); | 99 void GenerateCallMethod(io::Printer* printer); |
100 | 100 |
101 // Generate the Get{Request,Response}Prototype() methods. | 101 // Generate the Get{Request,Response}Prototype() methods. |
102 void GenerateGetPrototype(RequestOrResponse which, io::Printer* printer); | 102 void GenerateGetPrototype(RequestOrResponse which, io::Printer* printer); |
103 | 103 |
104 // Generate the stub's implementations of the service methods. | 104 // Generate the stub's implementations of the service methods. |
105 void GenerateStubMethods(io::Printer* printer); | 105 void GenerateStubMethods(io::Printer* printer); |
106 | 106 |
107 const ServiceDescriptor* descriptor_; | 107 const ServiceDescriptor* descriptor_; |
108 std::map<string, string> vars_; | 108 map<string, string> vars_; |
109 | 109 |
110 int index_in_metadata_; | |
111 | |
112 friend class FileGenerator; | |
113 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ServiceGenerator); | 110 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ServiceGenerator); |
114 }; | 111 }; |
115 | 112 |
116 } // namespace cpp | 113 } // namespace cpp |
117 } // namespace compiler | 114 } // namespace compiler |
118 } // namespace protobuf | 115 } // namespace protobuf |
119 | 116 |
120 } // namespace google | 117 } // namespace google |
121 #endif // GOOGLE_PROTOBUF_COMPILER_CPP_SERVICE_H__ | 118 #endif // GOOGLE_PROTOBUF_COMPILER_CPP_SERVICE_H__ |
OLD | NEW |