GithubHelp home page GithubHelp logo

gabin221 / classinitiator Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 5 KB

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.

Shell 100.00%
constructor content-generation cpp destructor generate-files private script class-declaration class-initialization classinitiator

classinitiator's Introduction

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.

classinitiator's People

Contributors

gabin221 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

wthij

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.