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

 All Forums
 Visual Assist
 Feature Requests
 Extract interface from a type (C++)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ketchup Master

52 Posts

Posted - Oct 27 2021 :  05:58:10 AM  Show Profile  Reply with Quote

I was thinking of a feature which might be useful in some cases. Say I started to write a class and I want to create an interface / abstract base class with a subset of the member functions of the initial class.

Here is a workflow example:
  • Right-click on the class name
  • Extract interface
  • A popup appears with all member functions (public, protected, private)
  • Press Ok
  • Write the interface class above the initial one with all selected member functions as virtual pure, copy the documentation if any
  • Modify the initial class to inherit from the newly created class and mark corresponding functions as override

As a bonus, it could create its own file.

Whole Tomato Software

United Kingdom
17921 Posts

Posted - Oct 27 2021 :  11:26:12 AM  Show Profile  Reply with Quote
We are considering doing this at some point. Thank you for a clearly thought out approach for how this would work, since it is good to see how you would see this working, and want to use this:


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:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000