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. |
|
|