#include "Ligne.hxx"
#include <iostream>

ostream& operator<<(ostream &o,const Ligne& a)
{
  o << "Affichage d'une ligne" << endl;
  o << (ObjetGraphique &)(a) ; 
  o << "Longueur " << a.longueur_ << endl ;
  o << "Angle    " << a.angle_ << endl ;
  return o;
}

void Ligne::afficher(ostream &a)const
{
  a << *this;
}

void Ligne::afficher() const
{
  afficher(cout);
}

Ligne::~Ligne()
{
  cout << "Destruction d'une ligne d'adresse " << this << endl;
}
