#ifndef AURINKOKUNTA_H
#define AURINKOKUNTA_H

#include "Solomite.h"
#include "Cities.h"
#include <time.h>

#define VAL_LINE	1234.5678
#define VAL_NA		8765.4321

struct BODY {
	struct tm day;			/* date for calculation */
	struct CITY city;		/* city in question */
	double rectascension;	/* h.min */
	double declination;		/* ° '   */
	double elongation;		/* °     */
	double distance;		/* au    */
	double diameter;		/* ''    */
	double maxHeight;		/* °     */
	double timeOf18DegRise;	/* h.min */
	double timeOf6DegRise;	/* h.min */
	double timeOfRise;		/* h.min */
	double timeOfSet;		/* h.min */
	double timeOf6DegSet;	/* h.min */
	double timeOf18DegSet;	/* h.min */
	char name[8];			/* name of the body */
};

#define BODYS 6

enum BODYNAME {
	BN_SUN,
	BN_MERCURY,
	BN_VENUS,
	BN_MARS,
	BN_JUPITER,
	BN_SATURN,
	BN_ALL
};

struct BODY *Aurinkokunta(enum BODYNAME bodyName, const struct tm *day, const struct CITY *city);

#endif
