Much of my time spent developing C++ applications is wasted implementing class definitions. By that I mean the prototyping of classes then creating their respective implementations.
For example:
#ifndef FOO_H
#define FOO_H
class Foo
{
public:
Foo (const X& x, const Y& Y);
~Foo ();
void PerformXYZ (int Count);
};
#endif
And now I'll have to copy and paste, then add the repetitive Foo:: onto each function.
Foo::Foo (const X& x, const Y& Y)
{
}
Foo::~Foo ()
{
}
void Foo::PerformXYZ (int Count)
{
}
For now I copy the function declarations over to their respective *.cpp files, remove empty lines, then replace ';' with "\n{\n\n}\n". However, I still have to specify the namespace for each function.
Are there tools in Eclipse, Vim or any other IDE/editor that take this burden off a developer?
In Visual Studio there are tools to add functions and variable. Tools automates the process in question. But I never use them :)
In the Visual Assist X there is the feature that helps to add implementation for methods. It is the best solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With