[Kstars-devel] Comets and Asteroids in the Conjunction Tool
Akarsh Simha
akarshsimha at gmail.com
Sat Jul 12 16:46:19 CEST 2008
Hi
Some of us, Indian KDE Hackers are all hacking away at Geodesic,
Bangalore at the "KDE.IN Monsoon Hackathon". The recent changes I made
to the Conjunction Tool are an outcome of this :)
[ http://www.twitter.com/kdehackathon ]
What I'm unable to figure out is how to make a copy of KSComet or
KSAsteroid. One way is to have a copy constructor, which both of these
classes don't have. The other way, would be to define blank
constructors for KSComet, KSAsteroid and KSPlanetBase, and then use
the assignment operator to copy:
KSComet *newComet;
newComet = new KSComet();
*newComet = (KSComet *) Object;
The other way to do this, would be to use the "real" comet, without
making a copy, and later update it back with the current KSNumbers.
I just wanted to know which would be the best way to go about it.
Regards
Akarsh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20080712/0fc5ddeb/attachment.pgp
More information about the Kstars-devel
mailing list