This project uses QuickType to generate C++ headers from the gnus-processing-schema.json file. This ensures your model classes stay in sync with the schema specification.
First, install QuickType globally using npm:
npm install -g quicktypeYou must have Node.js installed. This also provides
npm.
To regenerate headers manually from the schema:
quicktype \
--src-lang schema \
--lang cpp \
--top-level SGNSProcessing \
--code-format with-getter-setter \
--const-style west-const \
--namespace sgns \
--type-style pascal-case \
--member-style underscore-case \
--boost \
--source-style multi-source \
--include-location global-include \
--out generated/SGNSProcMain.hpp \
gnus-processing-schema.jsonThis command:
- Parses
gnus-processing-schema.json - Generates multiple C++ header files into the
generated/directory - Applies naming conventions and Boost support
- Uses
SGNSProcessingas the root class name in thesgnsnamespace
- Only edit the
gnus-processing-schema.jsonfile — the headers are regenerated from it. - A GitHub Action will automatically create a PR with regenerated headers on schema change.
- If you want to manually verify changes before pushing, inspect
git diffafter running the command.