X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fephemeris%2Fstardata.hxx;h=40513e65d4472816926fcb821ffd8146be9ae741;hb=598b64fa9569c16878c904e344e2e2775e210c42;hp=7f675b45f61658e56f99960f337fd2e407cbe2df;hpb=b2a4cd488dfcfbf1d02fa41f2dfa5ad39aabb13a;p=simgear.git diff --git a/simgear/ephemeris/stardata.hxx b/simgear/ephemeris/stardata.hxx index 7f675b45..40513e65 100644 --- a/simgear/ephemeris/stardata.hxx +++ b/simgear/ephemeris/stardata.hxx @@ -14,10 +14,9 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Library General Public License for more details. // -// You should have received a copy of the GNU Library General Public -// License along with this library; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ @@ -25,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; };