Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Refactoring: Move class to new file.

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
Rain Dog Posted - Jul 07 2006 : 2:23:48 PM
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

1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 08 2006 : 2:27:15 PM
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.

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