/usr/share/vim-scripts/vimplate-templates/hpp-default.tt is in vim-scripts 20130814ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | [% classname=input('Class name: ')
doxygen=choice('with Doxygen comments: ', 'no', 'yes')
-%]
#ifndef [% uc(classname) %]_HPP
#define [% uc(classname) %]_HPP
[% IF doxygen=='yes' -%]
/**
* @brief [% classname %] ... short description ...
* @author [% user.firstname %] [% user.lastname %] <[% user.mail %]>
* @date [% date('%Y-%m-%d') %]
* ... description ...
*/
[% END -%]
class [% classname %]
{
public:
[% IF doxygen=='yes' -%]
/**
* Default constructor
*/
[% END -%]
[% classname %]();
[% IF doxygen=='yes' -%]
/**
* Destructor
*/
[% END -%]
virtual ~[% classname %]();
[% IF doxygen=='yes' -%]
/**
* Copy constructor
* @param other Reference on object to copy.
*/
[% END -%]
[% classname %](const [% classname %]& other);
[% IF doxygen=='yes' -%]
/**
* Assignment operator
* @param other Reference on object to copy.
* @return Reference on initialisated object.
*/
[% END -%]
[% classname %]& operator=(const [% classname %]& other);
private:
};
#endif /* #ifndef [% uc(classname) %]_HPP */
|