-
-
Notifications
You must be signed in to change notification settings - Fork 318
/
pyclientstubgenerator.h
30 lines (24 loc) · 1.05 KB
/
pyclientstubgenerator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef PYTHON_CLIENT_STUB_GENERATOR_H
#define PYTHON_CLIENT_STUB_GENERATOR_H
#include "../stubgenerator.h"
namespace jsonrpc
{
/**
* The stub client this class generates requires jsonrpc_pyclient
* to be installed from pypi.
*/
class PythonClientStubGenerator : public StubGenerator
{
public:
PythonClientStubGenerator(const std::string& stubname, std::vector<Procedure> &procedures, std::ostream& outputstream);
PythonClientStubGenerator(const std::string& stubname, std::vector<Procedure> &procedures, const std::string filename);
virtual void generateStub();
void generateMethod(Procedure& proc);
void generateAssignments(Procedure& proc);
void generateProcCall(Procedure &proc);
std::string generateParameterDeclarationList(Procedure &proc);
static std::string class2Filename(const std::string &classname);
static std::string normalizeString(const std::string &text);
};
}
#endif // PYTHON_CLIENT_STUB_GENERATOR_H