Skip to content

ClassInitiator is a script designed to simplify the process of creating C++ class files with basic content. It takes one or more filenames as arguments and generates corresponding .cpp and .h files with predefined content suitable for class initialization.

Notifications You must be signed in to change notification settings

Gabin221/ClassInitiator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ClassInitiator

This script takes one or more filenames as arguments, generates a .cpp and .h file with that name, and writes some basic content into them. The content written into the .cpp file includes an include directive for the corresponding .h file, along with a basic class constructor and destructor. The .h file contains a class declaration with private, protected, and public sections, along with declarations for the constructor and destructor.

To use this script, run it with the desired filename as an argument, like so:

./classinitiator.sh myclassname

This will generate myclassname.cpp and myclassname.h files with the appropriate content.
Additionally, to use this script from anywhere, you can create a bin directory in your home directory (~), move the script there, and reload your session. This way, the script will be executable from any location within your user environment.

About

ClassInitiator is a script designed to simplify the process of creating C++ class files with basic content. It takes one or more filenames as arguments and generates corresponding .cpp and .h files with predefined content suitable for class initialization.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages