blob: f694e706d40b83bc0b3cda178d88880f930a9dc2 [file] [log] [blame]
C++ Generated Code Guide
========================
Usage
-----
.. sourcecode:: bash
usage: generate_cxx_backend.py [-h] [--input INPUT] [--output OUTPUT] [--namespace NAMESPACE] [--include-header INCLUDE_HEADER] [--using-namespace USING_NAMESPACE]
options:
-h, --help show this help message and exit
--input INPUT Input PDL-JSON source
--output OUTPUT Output C++ file
--namespace NAMESPACE
Generated module namespace
--include-header INCLUDE_HEADER
Added include directives
--using-namespace USING_NAMESPACE
Added using namespace statements
Example invocation:
.. sourcecode:: bash
cargo run my-protocol.pdl --output-format json | \
./scripts/generate_cxx_backend.py > my-protocol.h