X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fephemeris%2Fstardata.hxx;h=40513e65d4472816926fcb821ffd8146be9ae741;hb=0369d1f50650de31e897ced8f82e73d5b0e71ec4;hp=7f2078886fc59fe5804e5deaa7d4d6ffd1582f8a;hpb=dcb95d131bc6aef1abe25d1f415e309f06e52436;p=simgear.git diff --git a/simgear/ephemeris/stardata.hxx b/simgear/ephemeris/stardata.hxx index 7f207888..40513e65 100644 --- a/simgear/ephemeris/stardata.hxx +++ b/simgear/ephemeris/stardata.hxx @@ -24,37 +24,28 @@ #ifndef _SG_STARDATA_HXX #define _SG_STARDATA_HXX +#include +#include -#include - -#include - - -#define SG_MAX_STARS 850 - +class SGPath; class SGStarData { - - int nstars; - sgdVec3 *stars; - - SGPath data_path; - public: - // Constructor - SGStarData(); - SGStarData( SGPath path ); + SGStarData( const SGPath& path ); // Destructor ~SGStarData(); // load the stars database - bool load(); + bool load( const SGPath& path ); // stars - inline int getNumStars() const { return nstars; } - inline sgdVec3 *getStars() { return stars; } + inline int getNumStars() const { return _stars.size(); } + inline SGVec3d *getStars() { return &(_stars[0]); } + +private: + std::vector _stars; };