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
 Refactoring: Move class to new file.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rain Dog
Ketchup Master

88 Posts

Posted - Jul 07 2006 :  2:23:48 PM  Show Profile  Reply with Quote
It arrises sometimes that I have multiple classes defined in the same .h/cpp file.

For example

Foo.h
CFoo {}
CFooBar : public CFoo.....

Foo.cpp
CFoo::////
CFooBar:://///


I would like to be able to split all CFooBar related code to a new file pair FooBar.h/.cpp

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jul 08 2006 :  2:27:15 PM  Show Profile  Reply with Quote
on the surface this sounds fairly easy, which always bothers me

how often do you need to do something like this? after some thought i can see problems when people do things like:
* define one class inside another, and then try to move it
* getting the #include entries correct, so you don't break the compile
* don't know where to place the new files, people often have "odd" directory structures

do you have outlining in your IDE? i am seeing it in VS2003 and VS2005. using this in the cpp file you can easily see the entries for each class, thus allowing you to select and delete them by hand.

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