![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Copy a class? Topic Summary: Created On: 14-Sep-2006 14:07 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi everyone,
Is there a way to make a complete copy of a class? I want to eventually move a couple of classes into their own package, but I want to make a copy first, get the new package setup and working and them slowly migrate the use of the class in the old package to the new one. So, I'd like to make a copy of the classes, get them working in the new package and then delete the old ones and reconnect. |
|
![]() |
|
![]() |
|
Hi Paul,
A typical way would be to click and then ctrl-click to select the two classes (works on Rhapsody 6.2), then ctrl-drag them to a package. If you drag to the same package the copies will be given names with the suffix _copy, but you could drag them to your new package. Does that do what you want? Regards, Charlie |
|
![]() |
|
![]() |
|
Yes.... Interestingly it gave them the same name, in the new package. As it turns out, the code generation ended up writing only 1 .cpp file for the class instead of 2. I imagine one overwrote the other during code gen, as the filename was simply class.cpp.
It's cool, now that I have the full copy, I'll just rename the new one. I feel like a newb now, seeing the answer. I'm too much of an old school command line guy to remember the standard sequences in windows. Thanks, Paul |
|
![]() |
|
![]() |
|
Select the class in the browser and drag while holding the ctrl key to make a copy.
Regards Paul |
|
![]() |
|
![]() |
|
If you want it to generate a file for each class, then in the properties, change it so that it generates the .cpp/.hpp files in a folder for each package.
|
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
Copy a class?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.