#include "bookmark.hh"
#include "tp1.hh"

//
// Example class implementing IDL interface bookmark
//
class bookmark_i: public POA_bookmark,
                public PortableServer::RefCountServantBase {
private:
  // Make sure all instances are built on the heap by making the
  // destructor non-public
  //virtual ~bookmark_i();
  Book *b;
public:
  // standard constructor
  bookmark_i();
  virtual ~bookmark_i();

  // methods corresponding to defined IDL attributes and operations
  void Ajouter(const char* alias, const char* url);
  void Supprimer(const char* alias);
  char* Recherche(const char* alias);
  void Sauvegarder(const char* fichier);
  
};
