This Python script is designed to generate C++ class files in the Orthodox Canonical form. It creates the following files for a given class name: main.cpp
, ClassName.cpp
, ClassName.hpp
, and Makefile
.
-
Clone this repository to your local machine or download the script:
git clone https://github.com/ZakariaElbouzkri/class-ganerator.git
-
Navigate to the project directory:
cd class-generator
-
install for macOS:
in zsh: echo 'alias genClass="python3 ~/class-generator/script.py"' >> ~/.zshrc or in bash: echo 'alias genClass="python3 ~/class-generator/script.py"' >> ~/.bashrc
genClass Person
- this comand will generate the following files with orthodox-canonial form
- main.cpp
- Person.cpp
- Person.hpp
- Makefile
You can then edit the generated files to implement your class functionality.