#ifndef SLAPLANETS_H
#define SLAPLANETS_H

#ifndef SLALIB_H
#include "Slalib.h"
#endif

typedef enum
{
    kESun      = 0,
    kEMercury  = 1,
    kEVenus    = 2,
    kEMoon     = 3, // earth moon barycentre
    kEMars     = 4,
    kEJupiter  = 5,
    kESaturn   = 6,
    kEUranus   = 7,
    kENeptune  = 8,
    kEPluto    = 9
} ePlanets_t;

class SlaPlanets : public Slalib
{
private:
    double fDt;        // [mjd] const: rootcint/TMemberInspector
    double fTt;        // [mjd] timescale TT

    ZdAz fZdAz[10];    // [rad]

    double fEarth[3];  // heliocentric coordinates

    ZdAz   GetMoonPos() const;

public:
    SlaPlanets(MObservatory::LocationName_t key);
    virtual ~SlaPlanets();

    void SetMjd(double mjd);

    void UpdatePlanetPos(ePlanets_t planet);
    ZdAz GetPlanetPos(ePlanets_t planet) const { return fZdAz[planet]; }

    ClassDef(SlaPlanets, 0)

};

#endif
