Git Product home page Git Product logo

nodejscallc's Introduction

nodejscallc

这是一个用于快速生成管道通讯序列化反序列化脚手架的工程 目前支持node调用c/c++ node调用python的模版代码生成

参数传递支持四种类型

  1. long 32位整形
  2. string 字符串
  3. vector_long 整形数组
  4. vector_string 字符串数组

接口定义文件为json格式


{
    "func_name" : "test", //在c或者python中要实现的函数名称
    "init_params" : [     //初始化参数列表
        {
            "name" : "init_param_long",
            "type" : "long"
        },
        {
            "name" : "init_param_string",
            "type" : "string"
        },
        {
            "name" : "init_param_vector_string",
            "type" : "vector_string"
        },
        {
            "name" : "init_param_vector_long",
            "type" : "vector_long"
        }
    ],
    "req_params" : [    //传入参数列表
        {
            "name" : "param_long",
            "type" : "long"
        },
        {
            "name" : "param_string",
            "type" : "string"
        },
        {
            "name" : "param_vector_string",
            "type" : "vector_string"
        },
        {
            "name" : "param_vector_long",
            "type" : "vector_long"
        }
    ],
    "rsp_params" : [    //返回参数列表
        {
            "name" : "rsp_param_string",
            "type" : "string"
        },
        {
            "name" : "rsp_param_long",
            "type" : "long"
        },
        {
            "name" : "rsp_param_vector_string",
            "type" : "vector_string"
        },
        {
            "name" : "rsp_param_vector_long",
            "type" : "vector_long"
        }
    ]

}

image

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.