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

Class ClientCodeRender

codegen/client_code_render.h:35–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33class SyntaxFunc;
34
35class ClientCodeRender {
36 public:
37 ClientCodeRender(NameRender &name_render);
38 virtual ~ClientCodeRender();
39
40 void GenerateStubHpp(SyntaxTree *stree, FILE *write);
41
42 void GenerateStubCpp(SyntaxTree *stree, FILE *write);
43
44 void GenerateClientHpp(SyntaxTree *stree, FILE *write, const bool is_uthread_mode);
45
46 void GenerateClientCpp(SyntaxTree *stree, FILE *write, const bool is_uthread_mode);
47
48 void GenerateClientEtc(SyntaxTree *stree, FILE *write);
49
50 private:
51 void GetStubFuncDeclaration(const SyntaxTree *const stree, const SyntaxFunc *const func,
52 int is_header, std::string *result);
53
54 void GenerateStubFunc(const SyntaxTree *const stree, const SyntaxFunc *const func, FILE *write);
55
56 void GetClienfuncDeclaration(const SyntaxTree *const stree, const SyntaxFunc *const func,
57 const int is_header, std::string *result, const bool is_uthread_mode);
58
59 NameRender &name_render_;
60};
61
62
63}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected