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

#if !defined(AFX_URL_H__E9240792_614A_11D3_933D_0060674E1056__INCLUDED_)
#define AFX_URL_H__E9240792_614A_11D3_933D_0060674E1056__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include<string>
#include<iostream>

using namespace std;
class URL;
ostream & operator<<(ostream & os, const URL & u);
istream & operator>>(istream & is, URL & u);

class URL  
{
	string url;
	string description;
public:
	string title;
	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;
	int operator<(const URL &u) const;
//	bool sortByTitle(const URL & b);

};


#endif // !defined(AFX_URL_H__E9240792_614A_11D3_933D_0060674E1056__INCLUDED_)