Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Generate Constructors matching base class
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

aeskreis
New Member

2 Posts

Posted - Jun 29 2014 :  7:52:35 PM  Show Profile  Reply with Quote
Not sure if this exists or not, but I haven't been able to locate it. It would be great if you could generate stubs for a constructor with the same arguments as the base class. If this feature already exists, sorry for the inconvenience. Thanks

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jul 01 2014 :  4:21:27 PM  Show Profile  Reply with Quote
It does not exist directly, but if you get VA's Hovering Class Browser to show the base class:

http://docs.wholetomato.com/default.asp?W207

the bottom part of VA View, you can then right click on the constructor you are interested in and select "Copy Declaration", which you can then paste into the derived class, and simply replace the class name.

When you want stubs for virtual methods you can use Implement Interface / Virtual Methods:

http://docs.wholetomato.com/default.asp?W165

zen is the art of being at one with the two'ness
Go to Top of Page

aeskreis
New Member

2 Posts

Posted - Jul 01 2014 :  11:45:08 PM  Show Profile  Reply with Quote
Thank you, this solution will suffice. I think it would be great big picture though if this could be a feature, though your suggestion is very helpful. Thank you for the reply, and keep up the great work. These are some of the best C++ productivity tools I've ever seen on any platform.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jul 02 2014 :  11:14:59 PM  Show Profile  Reply with Quote
Thank you for your kind words, it is very good to know that you find VA to be so useful and helpful

Is this a common situation you find yourself in? Since you cannot make a constructor virtual, implementing virtual methods is not an option. At the same time, if you only need one or two constructors, copying the declaration is a quick and simple solution.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000