Giter Site home page Giter Site logo

chenhaothink / autogrpc Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 14 KB

Google gRPC implements some code generation, but it's not automated enough. What I want is automatic generation of all code from existing C++ interfaces, including proto, C++ Client, JAVA Server, etc. (not including the protobuf itself generated part). Google gRPC实现了一部分代码成生成,还是不够自动化。 我想要的是从现有C++接口,所有代码全自动生成,包括proto,C++ Client,JAVA Server等(不含protobuf本身生成部分)。

Java 82.97% C 17.03%

autogrpc's Introduction

AutogRPC

​Google gRPC implements some code generation, but it's not automated enough. What I want is to automatically generate all code from existing C++ interfaces, including proto, C++ Client, JAVA Server, etc. (not including protobuf itself).

Google gRPC实现了一部分代码成生成,还是不够自动化。我想要的是从现有C++接口,全自动生成所有代码,包括proto,C++ Client,JAVA Server等(不含protobuf本身生成部分)。

方案:  1、已有C++接口,pos.h文件,比如

DWORD GetVersion(OUT char *pbVersion, IN OUT DWORD *pdwVersionLen, IN BYTE bFlag); DWORD GetDeviceInfo(OUT BYTE *pbInfo, IN OUT DWORD *pdwInfoLen, IN BYTE bFlag); DWORD UpdatePosFile(IN BYTE bFileType, IN char *szFilePath, IN DWORD dwFlag);

2、 需要生成代码proto,C++ Client,JAVA Server等(不含protobuf本身生成部分)

准备用java来写生成代码程序。

1)先按行读文件pos.h

2)一个字段一个字段的解析,生成各类代码。

IN参数名及类型 函数名 函数返回值类型,OUT参数名及类型 ​

autogrpc's People

Contributors

chenhaothink avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.