MCPcopy Create free account
hub / github.com/Tencent/phxrpc / GetCopyright

Method GetCopyright

codegen/name_render.cpp:210–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void NameRender::GetCopyright(const char *tool_name, const char *proto_file,
211 string *result, bool dont_edit,
212 const char *comment_prefix) {
213 ostringstream tmp;
214
215 tmp << comment_prefix << endl;
216 tmp << comment_prefix << " Generated by " << tool_name << " from " << proto_file << endl;
217
218 if (dont_edit) {
219 tmp << comment_prefix << endl;
220 tmp << comment_prefix << " Please DO NOT edit unless you know exactly what you are doing.\n";
221 }
222 tmp << comment_prefix << endl;
223
224 *result = tmp.str();
225}
226
227const char *NameRender::GetServiceClassName(const char *name, char *dest, int size) {
228 snprintf(dest, size, "%s%c%sService", prefix_, toupper(*name), name + 1);

Callers 15

GenerateServerMainCppMethod · 0.80
GenerateServerEtcMethod · 0.80
GenerateMakefileMethod · 0.80
GenerateStubHppMethod · 0.80
GenerateStubCppMethod · 0.80
GenerateClientHppMethod · 0.80
GenerateClientCppMethod · 0.80
GenerateClientEtcMethod · 0.80
GenerateToolHppMethod · 0.80
GenerateToolCppMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected