https://github.com/covesa/capicxx-wamp-tools
Common API tooling with WAMP messaging
https://github.com/covesa/capicxx-wamp-tools
Last synced: about 1 month ago
JSON representation
Common API tooling with WAMP messaging
- Host: GitHub
- URL: https://github.com/covesa/capicxx-wamp-tools
- Owner: COVESA
- License: mpl-2.0
- Created: 2017-10-05T15:07:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T14:59:25.000Z (about 6 years ago)
- Last Synced: 2025-04-30T05:42:30.015Z (about 1 month ago)
- Language: C++
- Size: 13.5 MB
- Stars: 12
- Watchers: 11
- Forks: 8
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# capicxx-wamp-tools [](https://travis-ci.org/GENIVI/capicxx-wamp-tools)
Common API tooling with WAMP messaging.## Runtime library
The binding code generator from this project will create C++ code which needs a proper runtime library.
One can find the runtime library in the companion project https://github.com/GENIVI/capicxx-wamp-runtime.
Please ensure that the runtime library version matches the code generator version.## Command-line code generator
A jar-file with a portable command-line code generator from the latest successful master build can be downloaded
[from here](https://genivi.github.io/capicxx-wamp-tools/standalone/).It can be started by running `java -jar org.genivi.commonapi.wamp.cli-0.7.0.v201804182032-standalone.jar`. Please update the actual filename according to the version you have downloaded. With additional arguments, it will dump a list of command line options. Here is a snapshot of this list.
```
Usage: java -jar org.genivi.commonapi.wamp.cli-0.7.0.v201804182032-standalone.jar [OPTIONS]
-d,--dest Set output directory
-dc,--dest-common The directory for the common code
-dp,--dest-proxy The directory for proxy code
-ds,--dest-stub The directory for stub code
-dsub,--dest-subdirs Use subdir per interface
-f,--fidl Input file in Franca IDL (fidl) format
-h Print usage information
-l,--license The file path to the license text that
will be added to each generated file
-ll,--loglevel The log level
-nc,--no-common Switch off generation of common code
-ng,--no-gen Switch off code generation
-np,--no-proxy Switch off generation of proxy code
-ns,--no-stub Switch off generation of stub code
-nsc,--no-sync-calls Switch off code generation
-r,--recursive-validation Recursive validation
-v Activate verbose mode
```## Code generator for JS client
There is an experimental JS code generator for the client-side, which can be used in combination with the
CommonAPI C++ server-side generator.
It is provided as part of [Franca 13](https://github.com/franca/franca/releases/tag/v0.13.0) (or later).This code generator supports so far:
- connect/disconnect handling
- methods (not including fireAndForget)
- broadcasts (not including selective)
- primitive types, plus arrays, enums and structsThere is now a context menu item `Generate JS code for Autobahn-binding` for fidl-files, available in the _Franca_ sub-menu. It will generate the client side proxy and a blueprint-example-file in the `src-gen` folder of the containing workspace project.
## Further information
Additional information on this project is available [in this presentation](https://projects.itemis.de/html/web-presentations/kbi/2017/2017_05_genivi_amm_francaweb/#/).