Basic but useful Bash script to automate the creation of the files containing a C++ class (in Orthodox Canonical Form)
$ git clone
this repository
$ cd cpp_class
$ chmod 711 cpp_class
$ echo $PATH
Choose one of the directories listed in $PATH
$ ln -s $PWD/cpp_class /the/path/you/chose
Finally use the command cpp_class ClassName
to create a .cpp
and a .hpp
file containing a basic layout to build a C++ class.
The command can also be used with more class names at the same time:
cpp_class ClassName1 ClassName2 ClassName3