Jump to content
  • Advertisement
Sign in to follow this  
Firzen2k5

VS2k5 auto-completion in *.cpp based on *.h

This topic is 4226 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I think the example will show what I mean :) We have file example.h like this:
#pragma once

class Example {
  Example();
  Example( float, float );

  void ExampleFunc();

  ~Example();
}
Is there any option that will add all those prototypes into example.cpp file in form like:
#include "example.h"
Example::Example()
{
}

Example::Example( float, float )
{
}

void Example::ExampleFunc()
{
}

Example::~Example()
{
}

Share this post


Link to post
Share on other sites
Advertisement
Unfortunately, such facilities are not available for C++ in the core VS2005 software. There may be some third-party add-ons which add this feature, but I am not aware of any.

Share this post


Link to post
Share on other sites
Quote:
Original post by ApochPiQ
There may be some third-party add-ons which add this feature, but I am not aware of any.


IIRC, the latest version of Visual Assist X may be able to do this, but I'm not positive.

Share this post


Link to post
Share on other sites
Quote:
Original post by Driv3MeFar
Quote:
Original post by ApochPiQ
There may be some third-party add-ons which add this feature, but I am not aware of any.


IIRC, the latest version of Visual Assist X may be able to do this, but I'm not positive.


The latest version of VA X can do this. Though you have to trigger it for each method you wish to 'stub in', it's triggered via 'Create Implementation' from their Refactoring tools. Their refactoring features are very nice, I use them pretty much every day.

Share this post


Link to post
Share on other sites
Quote:
Original post by Driv3MeFar
Quote:
Original post by ApochPiQ
There may be some third-party add-ons which add this feature, but I am not aware of any.


IIRC, the latest version of Visual Assist X may be able to do this, but I'm not positive.

Indeed, it has a command called "VAssistX.CreateImplementation" that does it. But you can hardly justify $149 for this feature alone [smile]

I know of no free tools that do this. If your schedule is free for the next couple of months, you can use gccxml to create such a tool, and wrap it with a Visual Studio macro or plugin, but it's not for the faint of heart [grin]

In conclusion, I think you're pretty much stuck.

Share this post


Link to post
Share on other sites
If you use a program like ArgoUML to create a UML class diagram (not such a bad idea on its own), it will create the basic .cpp and .h files for your whole application.

It can also include member variables and inheritance if you like.

And its free! (I think!)

ArgoUML

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!