How to automatically generate C ++ headers

Given foo.hpp

class Foo
{
public:
   void MethodA()
   {
        //BODY IMPLEMENTATION
   }
   int MerhodB()
   {
       return 2+3;
   }
}

I need a tool to create two files foo.cpp and foo.hpp. For instance,

foo.hpp

class Foo
{
public:
   void MethodA();
   int MerhodB();
}

foo.cpp

void Foo::MethodA()
{
     //BODY IMPLEMENTATION
}
int Foo::MerhodB()
{
    return 2+3;
}

I tried Lazy C ++, but it does not work for me. Any other suggestions?

Edit: I do not use Windows, so please avoid Visual Studio tools. Thanks

+5
source share
1 answer

Visual Studio 2005 with Visual Assist X (or later)

You write everything in a file .hpp, and then you can use the "Move implementation to source" refactoring function in the pop-up menu if you right-click on your method.

+5
source

All Articles