// URL.h: interface for the URL class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_URL_H__5783FE40_572D_11D3_933D_0060674E1056__INCLUDED_)
#define AFX_URL_H__5783FE40_572D_11D3_933D_0060674E1056__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include<string>
#include<iostream>

using namespace std;

//these three lines are to avoid VC++ bugs.
class URL;
ostream & operator<<(ostream & os, const URL & u);
istream & operator>>(istream & is, URL & u);

class URL  
{
	string url;
	string title;
	string description;
public:
	URL(const URL &u);
	URL(string & u, string &t, string &d);
	URL();
	URL(string &u);
	virtual ~URL();
	friend ostream & operator<<(ostream & os, const URL & u);
	friend istream & operator>>(istream & is, URL & u);
	int operator==(const URL &u) const;

};

#endif // !defined(AFX_URL_H__5783FE40_572D_11D3_933D_0060674E1056__INCLUDED_)