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

Class ServiceCodeRender

codegen/service_code_render.h:36–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34class SyntaxFunc;
35
36class ServiceCodeRender {
37 public:
38 ServiceCodeRender(NameRender &name_render);
39 virtual ~ServiceCodeRender();
40
41 virtual void GenerateServiceHpp(SyntaxTree *stree, FILE *write);
42
43 virtual void GenerateServiceCpp(SyntaxTree *stree, FILE *write);
44
45 virtual void GenerateServiceImplHpp(SyntaxTree *stree, FILE *write, const bool is_uthread_mode);
46
47 virtual void GenerateServiceImplCpp(SyntaxTree *stree, FILE *write, const bool is_uthread_mode);
48
49 virtual void GenerateDispatcherHpp(SyntaxTree *stree, FILE *write);
50
51 virtual void GenerateDispatcherCpp(SyntaxTree *stree, FILE *write);
52
53 protected:
54 virtual void GetServiceFuncDeclaration(SyntaxTree *stree,
55 const SyntaxFunc *const func, int is_header, int is_impl,
56 int need_param_name, std::string *result);
57
58 virtual void GenerateDispatcherFunc(const SyntaxTree *const stree,
59 const SyntaxFunc *const func,
60 FILE *write);
61
62 virtual void GenerateURIFuncMap(SyntaxTree *stree, FILE *write);
63
64 NameRender &name_render_;
65};
66
67
68}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected