X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fephemeris%2Fstardata.hxx;h=40513e65d4472816926fcb821ffd8146be9ae741;hb=598b64fa9569c16878c904e344e2e2775e210c42;hp=5ac685b30117c0f10509aaf154bda1826dd2341c;hpb=84dd54b33a6d8b35e57c32194b025f79245f35c4;p=simgear.git diff --git a/simgear/ephemeris/stardata.hxx b/simgear/ephemeris/stardata.hxx index 5ac685b3..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; - SGVec3d *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 SGVec3d *getStars() { return stars; } + inline int getNumStars() const { return _stars.size(); } + inline SGVec3d *getStars() { return &(_stars[0]); } + +private: + std::vector _stars; };