Add const accessors.

Modified Files:
	simgear/ephemeris/ephemeris.hxx
This commit is contained in:
frohlich
2009-03-17 12:23:15 +00:00
committed by Tim Moore
parent fd294b6f98
commit 471b9f02ec

View File

@@ -158,6 +158,7 @@ public:
* @return planets array
*/
inline SGVec3d *getPlanets() { return planets; }
inline const SGVec3d *getPlanets() const { return planets; }
/** @return the numbers of defined stars. */
inline int getNumStars() const { return stars->getNumStars(); }
@@ -170,6 +171,7 @@ public:
* @returns star array
*/
inline SGVec3d *getStars() { return stars->getStars(); }
inline const SGVec3d *getStars() const { return stars->getStars(); }
};