[Kstars-devel] Comets and Asteroids in the Conjunction Tool

Jason Harris kstars at 30doradus.org
Sat Jul 12 17:55:51 CEST 2008


Hi Akarsh,

You can go ahead and add either a copy or blank ctor (or both) to
KScomet and KSAsteroid.

I can't wait to check out these new changes :)

Jason

On Sat, Jul 12, 2008 at 7:46 AM, Akarsh Simha <akarshsimha at gmail.com> wrote:
> 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
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFIeMO7kAo+aFFLL8MRAj/LAJ97y1XMdAx5VW8bksvfpNpK5TPCDACg5pT0
> 6nsB+lydck0SVL0Yp8OkZOU=
> =4Le6
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel
>
>


More information about the Kstars-devel mailing list