Using Examples - AmayaHena/ClassCreator GitHub Wiki

There is some example to use ClassCreator without complex architecture.

Aswell you can just create a .hpp and .cpp by this command :

./classCreator Test

The output will be, and so the generation will be :

Created dir : ./Test
Created dir : Test/inc
Created dir : Test/src
File Test/inc/Test created
File Test/src/Test created

You can also create a project by passing your subfiles as arguments :

./classCreator Test Game Sound Input

The output will be, and so the generation will be :

Created dir : ./Test
Created dir : Test/inc
Created dir : Test/src
File Test/inc/Test created
File Test/src/Test created
Created dir : Test/inc/Game
File Test/inc/Game/Game created
Created dir : Test/src/Game
File Test/src/Game/Game created
Created dir : Test/inc/Sound
File Test/inc/Sound/Sound created
Created dir : Test/src/Sound
File Test/src/Sound/Sound created
Created dir : Test/inc/Input
File Test/inc/Input/Input created
Created dir : Test/src/Input
File Test/src/Input/Input created

If we take the same example as :

./classCreator Test Game Sound Input

And we add -i for inheritance (for this case from "Test" class) :

./classCreator Test -i Game Sound Input

The output will be the same, but all your files will get an inheritance.


This is the same logic for the 'I' (Interface) option. Aswell you can generate a project with inheritance on interface. Example :

./classCreator Test -iI Game Sound Input

Or :

./classCreator Test -i -I Game Sound Input