{"id":21186629,"url":"https://github.com/geontech/vrtgen","last_synced_at":"2025-07-10T01:31:29.556Z","repository":{"id":146038892,"uuid":"370374078","full_name":"Geontech/vrtgen","owner":"Geontech","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-07T01:45:38.000Z","size":1873,"stargazers_count":10,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-07T02:39:31.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Geontech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-24T14:07:57.000Z","updated_at":"2024-11-07T01:44:36.000Z","dependencies_parsed_at":"2024-05-10T15:45:01.670Z","dependency_job_id":"63d55c81-6ff9-4380-9a8e-62fd4084239c","html_url":"https://github.com/Geontech/vrtgen","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geontech%2Fvrtgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geontech%2Fvrtgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geontech%2Fvrtgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geontech%2Fvrtgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Geontech","download_url":"https://codeload.github.com/Geontech/vrtgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225608560,"owners_count":17495938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T18:24:53.746Z","updated_at":"2024-11-20T18:24:54.421Z","avatar_url":"https://github.com/Geontech.png","language":"C++","readme":"# VITA 49.2 Packet Generator\n\nGenerates native-language classes/structs for V49.2 packet definitons in a YAML configuration file.\n\n## Dependencies\n\n`vrtgen` requires Python \u003e= 3.7 as well as `pip` for Python \u003e= 3.7.\n\nTo build the C++ header library, CMake 3.15 or later must be installed.\n\nGenerated C++ code requires g++ \u003e= 10 for C++20 support, including concepts.\nThe only dependency is the C++ header library.\nSee the testing section.\n\nIf using the NATS command socket type option with `vrtpktgen`, the following library is also\nrequired:\n\n- [nats.c](https://github.com/nats-io/nats.c)\n\n## Installation\n\nInstallation via `pip` is recommended, as it will automatically install the required dependencies.\nTo install via `pip`:\n\n```sh\nsudo pip3 install --upgrade pip\npip3 install --user .\n```\n\nThis will install both the `vrtgen` Python modules and the `vrtpktgen` executable.\n\n### Backend Installation\n\nThe `vrtgen` backend library is header only and can be included directly into your build tree\nby adding the contents of the [include](include) folder to your project's build structure.\n\nTo install the C++ library header files on your system:\n\n```sh\ncmake3 -B build\nsudo cmake3 --build build --target install\n```\n\nOn some Linux systems, CMake 3 is the default; run `cmake` instead of `cmake3`.\n\nThe headers are installed to `/usr/local/include/vrtgen` by default.\n\n### CMake Integration\n\n**External**\n\nTo use the library from a CMake project, you can use `find_package()` to discover and use the\nnamespaced target from the package configuration:\n\n```cmake\n# CMakeLists.txt\nfind_package(vrtgen REQUIRED)\n...\nadd_executable(foo foo.cpp)\n...\ntarget_link_libraries(foo PRIVATE vrtgen::vrtgen)\n```\n\n**FetchContent**\n\nUsing CMake's FetchContent allows this library to be downloaded and used as a dependency at\nconfiguration time, therefore avoiding the need to install it on your system:\n\n```cmake\n# CMakeLists.txt\ninclude(FetchContent)\n\nFetchContent_Declare(\n    vrtgen\n    GIT_REPOSITORY https://github.com/geontech/vrtgen\n    GIT_TAG v0.7.14\n)\nFetchContent_MakeAvailable(vrtgen)\n...\nadd_executable(foo foo.cpp)\n...\ntarget_link_libraries(foo PRIVATE vrtgen::vrtgen)\n```\n\n### Developer Setup\n\nFor developers, `pip` supports an editable install mode that links the source code to the Python\n`site-packages` directory.\nIt is strongly recommended to use a `venv` environment or Docker image for development.\nTo perform a \"developer install\" using a virtual environment:\n\n```sh\npython3 -m venv venv\n. venv/bin/activate\npython -m pip install --upgrade pip\npython -m pip install -e .\n```\n\n## Usage\n\nThis package installs a `vrtpktgen` executable in your path.\nThe `vrtpktgen` program supports backend plug-ins to target different output types.\nBy default, the `cpp` backend is installed.\n\nSelect an available backend with the first positional argument.\n\n```\nvrtpktgen cpp \u003cfilename\u003e.yaml\n```\n\nHelp is available with the `--help` (or `-h`) option.\nTo get general help or to check which backends are available:\n\n```sh\nvrtpktgen --help\n```\n\n## Testing\n\nTo build and execute the tests:\n\n```sh\ncmake3 -B build -DVRTGEN_BUILD_TESTS=ON\ncmake3 --build build --target check\n```\n\nTo run the Python parser tests:\n\n```sh\npytest\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeontech%2Fvrtgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeontech%2Fvrtgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeontech%2Fvrtgen/lists"}