How malyuvin/cpp_project_template works
CppProjectTemplate is a starter layout for a modern C++ application, with separate executable and reusable-library code. Its demonstrated user workflow is to invoke the CLI with a filename, read and parse that file as JSON, and optionally print a parsed field. The libraries also provide standalone example functions; the sampled application does not call them. The README documents additional testing, package-manager, documentation, and developer-tooling capabilities, but those build and support systems are not runtime components. Relationships below are limited to the README and sampled source.
Main entry points: main.cc CLI and JSON workflow
Components 9
Application
- CLI and JSON workflow
app/main.cc
Libraries
- Foo functions
src/foo/foo.cc - Bar functions
src/bar/bar.cc
Integrations
- cxxopts
- JSON library
- fmt
- spdlog
Other components
- User
- JSON input file
Connections 6
- User → CLI and JSON workflow: invokes
app/main.cc - CLI and JSON workflow → cxxopts: parses arguments
app/main.cc - JSON input file → CLI and JSON workflow: is read by
app/main.cc - CLI and JSON workflow → JSON library: parses JSON
app/main.cc - CLI and JSON workflow → fmt: formats output
app/main.cc - CLI and JSON workflow → spdlog: logs greeting
app/main.cc