StarWrapper.hpp   StarWrapper.hpp 
skipping to change at line 47 skipping to change at line 47
//! overhead of having a dynamic type would simply be too much. //! overhead of having a dynamic type would simply be too much.
//! Therefore the StarWrapper is needed when returning Stars as StelObjects , e.g. for searching, and for constellations. //! Therefore the StarWrapper is needed when returning Stars as StelObjects , e.g. for searching, and for constellations.
//! The StarWrapper is destroyed when it is not needed anymore, by utilizin g reference counting. //! The StarWrapper is destroyed when it is not needed anymore, by utilizin g reference counting.
//! So there is no chance that more than a few hundreds of StarWrappers are alive simultanousely. //! So there is no chance that more than a few hundreds of StarWrappers are alive simultanousely.
//! Another reason for having the StarWrapper is to encapsulate the differe nces between the different kinds of Stars (Star1,Star2,Star3). //! Another reason for having the StarWrapper is to encapsulate the differe nces between the different kinds of Stars (Star1,Star2,Star3).
class StarWrapperBase : public StelObject class StarWrapperBase : public StelObject
{ {
protected: protected:
StarWrapperBase(void) : ref_count(0) {;} StarWrapperBase(void) : ref_count(0) {;}
virtual ~StarWrapperBase(void) {;} virtual ~StarWrapperBase(void) {;}
QString getType(void) const {return "Star";} QString getType(void) const {return STAR_TYPE;}
QString getID(void) const { return getEnglishName(); } //TODO: add a
proper ID here (probably based on position?)
QString getEnglishName(void) const {return "";} QString getEnglishName(void) const {return "";}
QString getNameI18n(void) const = 0; QString getNameI18n(void) const = 0;
//! StarWrapperBase supports the following InfoStringGroup flags <ul > //! StarWrapperBase supports the following InfoStringGroup flags <ul >
//! <li> Name //! <li> Name
//! <li> Magnitude //! <li> Magnitude
//! <li> RaDecJ2000 //! <li> RaDecJ2000
//! <li> RaDec //! <li> RaDec
//! <li> AltAzi //! <li> AltAzi
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/