Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Extract interface from a type (C++)

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
tony.riviere Posted - Oct 27 2021 : 05:58:10 AM
Hello,

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.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 27 2021 : 11:26:12 AM
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:

case=30546

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000