To use the script first copy it to ~/.vim/plugin directory, then open a file with vim and run one of the commands:
To generate the class definition.
Both commands will use the filename as default for the class name. You can change it, by typing the class name manually. It will replace "-" with "_" and also try to apply Camel Case to the filename. For example a file named test-object.h will generate a class named TestObject.
To generate the class implementation.
If you are interested, you can download the updated version of the script from here