Refactoring cpp templates into single one
Added union declaration, getter and setter generator