/*============================================================
interface entre shell et iostream
Par Martin Robinson
permet d'afficher le contenu des objets
et de les stocker
==============================================================
preprocessor*/
#pragma once
#ifndef _SHELLSTD
#define _SHELLSTD

#include "point.hpp"
#include "wire.hpp"
#include "color.hpp"
#include "shell.hpp"
#include "disk.hpp"

#include <iostream>
#include <fstream>
using namespace std;

/*===========================================================
fonction
===========================================================*/

shell loadShell(const char * filename);     //chargé une shell depuis un fichier
point loadPoint(istream& in);                //chargé un poit depuis istream
wire loadLine(istream&);                     //chargé une ligne depuis istream
color loadColor(istream& in);                //chargé une couleur depuis istream
disk loadDisk(const char* filename);        //chargé un plateau de jeux depuis un fichier

void printPoint(ostream&,point);             //afficher un point
void printLine(ostream&,wire);               //afficher une ligne
void printColor(ostream&,color);             //afficher une couleur

#endif
