tony.riviere
Ketchup Master
France
58 Posts |
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. |
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
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 |
zen is the art of being at one with the two'ness |
|
|