Skip to content

a script to automate the creation of a Makefile and of canonical classes in c++

License

Notifications You must be signed in to change notification settings

Leo-Gyger/cpp_piscine_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

cpp_piscine_script

A script to automate the creation of a Makefile and of canonical classes in c++

What does it do

This script creates one header file (with header guards) that has one class that uses the name you passed as argument. This class follows the copelian canonical standard and therefore has a default constructor, a copy constructor, an overload of the assignment operator and a destructor.

It also creates the class file with all of the functions declared in the header file in it. As well as a Makefile that will be edited each time you add a new class in the same folder.

Usage

Simply launch it as you would with any script (it has a shebang) and pass as argument the name of the class you wish to create and pass as a second, argument the location where you want your files to be created, for example:

./script.py cat ex00

will create the folder ex00 and add the files inside it.

About

a script to automate the creation of a Makefile and of canonical classes in c++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages