https://github.com/vroncevic/gen_cc_mod
Generate C++ Module
https://github.com/vroncevic/gen_cc_mod
bash c-plus-plus cxx development generator linux macos module qnx shell unix
Last synced: 2 months ago
JSON representation
Generate C++ Module
- Host: GitHub
- URL: https://github.com/vroncevic/gen_cc_mod
- Owner: vroncevic
- License: gpl-3.0
- Created: 2017-01-25T21:09:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-06-14T17:59:53.000Z (about 2 years ago)
- Last Synced: 2025-08-19T22:52:09.409Z (10 months ago)
- Topics: bash, c-plus-plus, cxx, development, generator, linux, macos, module, qnx, shell, unix
- Language: Shell
- Homepage: https://vroncevic.github.io/gen_cc_mod
- Size: 6.63 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Generate C++ Module

**gen_cc_mod** is shell tool for generating C++ modules.
Developed in **[bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))** code: **100%**.
[](https://github.com/vroncevic/gen_cc_mod/actions/workflows/gen_cc_mod_shell_checker.yml)
The README is used to introduce the modules and provide instructions on
how to install the modules, any machine dependencies it may have and any
other information that should be provided before the modules are installed.
[](https://github.com/vroncevic/gen_cc_mod/issues) [](https://github.com/vroncevic/gen_cc_mod/graphs/contributors)
**Table of Contents**
- [Installation](#installation)
- [Usage](#usage)
- [Dependencies](#dependencies)
- [Shell tool structure](#shell-tool-structure)
- [Docs](#docs)
- [Copyright and licence](#copyright-and-licence)
### Installation

Navigate to release **[page](https://github.com/vroncevic/gen_cc_mod/releases)** download and extract release archive.
To install **gen_cc_mod** type the following
```bash
./gen_cc_mod_setup.sh
[setup] installing App/Tool/Script gen_cc_mod
Wed Dec 3 07:51:40 PM CET 2025
[setup] clean up App/Tool/Script structure
[setup] copy App/Tool/Script structure
[setup] remove github editor configuration files
[setup] set App/Tool/Script permission
[setup] create symbolic link of App/Tool/Script
[setup] done
/root/scripts/gen_cc_mod/ver.4.0/
├── bin/
│ └── gen_cc_mod.sh
├── conf/
│ ├── gen_cc_mod.cfg
│ ├── gen_cc_mod.logo
│ ├── gen_cc_mod_util.cfg
│ └── template/
│ ├── cc_editorconfig.template
│ ├── cc_source.template
│ └── h_header.template
└── log/
└── gen_cc_mod.log
5 directories, 8 files
lrwxrwxrwx 1 root root 50 Dec 3 19:51 /root/bin/gen_cc_mod -> /root/scripts/gen_cc_mod/ver.4.0/bin/gen_cc_mod.sh
```
Or You can use docker to create image/container.
### Usage
```bash
# Create symlink for shell tool
ln -s /root/scripts/gen_cc_mod/ver.4.0/bin/gen_cc_mod.sh /root/bin/gen_cc_mod
# Setting PATH
export PATH=${PATH}:/root/bin/
# Generating module-pair (source+header file)
gen_cc_mod GTKMyOption
gen_cc_mod ver.4.0
Wed Dec 3 07:52:22 PM CET 2025
[check_root] Check permission for current session? [ok]
[check_root] Done
██
░██
█████ █████ ███████ █████ █████ ██████████ ██████ ░██
██░░░██ ██░░░██░░██░░░██ ██░░░██ ██░░░██ ░░██░░██░░██ ██░░░░██ ██████
░██ ░██░███████ ░██ ░██ ░██ ░░ ░██ ░░ ░██ ░██ ░██░██ ░██ ██░░░██
░░██████░██░░░░ ░██ ░██ ░██ ██░██ ██ ░██ ░██ ░██░██ ░██░██ ░██
░░░░░██░░██████ ███ ░██ █████░░█████ ░░█████ █████ ███ ░██ ░██░░██████ ░░██████
█████ ░░░░░░ ░░░ ░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░ ░░ ░░ ░░░░░░ ░░░░░░
░░░░░
Info github.io/gen_cc_mod ver.4.0
Issue github.io/issue
Author vroncevic.github.io
[gen_cc_mod] Loading basic and util configuration!
100% [================================================]
[load_conf] Loading App/Tool/Script configuration!
[check_cfg] Checking configuration file [/root/scripts/gen_cc_mod/ver.4.0/conf/gen_cc_mod.cfg] [ok]
[check_cfg] Done
[load_conf] Done
[load_util_conf] Load module configuration!
[check_cfg] Checking configuration file [/root/scripts/gen_cc_mod/ver.4.0/conf/gen_cc_mod_util.cfg] [ok]
[check_cfg] Done
[load_util_conf] Done
[gen_cc_mod] Generating file [GTKMyOption.cc]
[gen_cc_mod] Generate file [GTKMyOption.h]
[gen_cc_mod] Generating file [.editorconfig]
[gen_cc_mod] Set owner!
[gen_cc_mod] Set permission!
[logging] Checking directory [/root/scripts/gen_cc_mod/ver.4.0/log/]? [ok]
[logging] Write info log!
[logging] Done
[gen_cc_mod] Done
[check_tool] Checking tool [/usr/bin/tree]? [ok]
[check_tool] Done
.
├── GTKMyOption.cc
└── GTKMyOption.h
```
### Dependencies
**gen_cc_mod** requires next modules and libraries
* sh_util [https://github.com/vroncevic/sh_util](https://github.com/vroncevic/sh_util)
### Shell tool structure
**gen_cc_mod** is based on MOP.
Shell tool structure
```bash
sh_tool/
├── bin/
│ └── gen_cc_mod.sh
├── conf/
│ ├── gen_cc_mod.cfg
│ ├── gen_cc_mod.logo
│ ├── gen_cc_mod_util.cfg
│ └── template/
│ ├── cc_editorconfig.template
│ ├── cc_source.template
│ └── h_header.template
└── log/
└── gen_cc_mod.log
```
### Docs
[](https://gen-cc-mod.readthedocs.io/projects/gen_cc_mod/en/latest/?badge=latest)
More documentation and info at
* [https://gen_cc_mod.readthedocs.io/en/latest/](https://gen-cc-mod.readthedocs.io/en/latest/)
* [https://www.gnu.org/software/bash/manual/](https://www.gnu.org/software/bash/manual/)
### Copyright and licence
[](https://www.gnu.org/licenses/gpl-4.0) [](https://opensource.org/licenses/Apache-2.0)
Copyright (C) 2017 - 2026 by [vroncevic.github.io/gen_cc_mod](https://vroncevic.github.io/gen_cc_mod)
**gen_cc_mod** is free software; you can redistribute it and/or modify
it under the same terms as Bash itself, either Bash version 4.2.47 or,
at your option, any later version of Bash 4 you may have available.
Lets help and support FSF.
[](https://my.fsf.org/)
[](https://my.fsf.org/donate/)