diff options
Diffstat (limited to 'debian/htdig/htdig-3.2.0b6/htdig/URLRef.h')
-rw-r--r-- | debian/htdig/htdig-3.2.0b6/htdig/URLRef.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/debian/htdig/htdig-3.2.0b6/htdig/URLRef.h b/debian/htdig/htdig-3.2.0b6/htdig/URLRef.h new file mode 100644 index 00000000..dfc251ec --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/htdig/URLRef.h @@ -0,0 +1,50 @@ +// +// URLRef.h +// +// URLRef: A definition of a URL/Referer pair with associated hopcount +// +// Part of the ht://Dig package <http://www.htdig.org/> +// Copyright (c) 1995-2004 The ht://Dig Group +// For copyright details, see the file COPYING in your distribution +// or the GNU Library General Public License (LGPL) version 2 or later +// <http://www.gnu.org/copyleft/lgpl.html> +// +// $Id: URLRef.h,v 1.9 2004/05/28 13:15:16 lha Exp $ +// +// +#ifndef _URLRef_h_ +#define _URLRef_h_ + +#include "Object.h" +#include "htString.h" +#include "URL.h" + +class URLRef : public Object +{ +public: + // + // Construction/Destruction + // + URLRef(); + ~URLRef(); + + const URL &GetURL() const {return url;} + int GetHopCount() const {return hopcount;} + const URL &GetReferer() const {return referer;} + + void SetURL(const URL &u) {url = u;} + void SetHopCount(int h) {hopcount = h;} + void SetReferer(const URL &ref) {referer = ref;} + + int compare(const Object& to) const { return compare((const URLRef&) to); } + int compare(const URLRef& to) const; + +private: + URL url; + URL referer; + int hopcount; +}; + +#endif + + |