Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 979 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 979 Bytes

cppOrthodoxCanonicalGenerator

Class Generator

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.

Usage

  1. Clone this repository to your local machine or download the script:

    git clone https://github.com/ZakariaElbouzkri/class-ganerator.git
    
  2. Navigate to the project directory:

    cd class-generator
    
  3. 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
    

Examples:

    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.