ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/SiteMapper/Page.hpp
(Generate patch)

Comparing SiteMapper/Page.hpp (file contents):
Revision 636 by douglas, 2005-07-17T04:58:55-07:00 vs.
Revision 637 by douglas, 2005-12-31T21:32:21-08:00

# Line 21 | Line 21 | private:
21          cse::String childOf;
22   public:
23          Page() {}
24 <        Page(const cse::String& address, const cse::String& path, const cse::String& title) : address(address), path(path), title(title) {}
25 <        Page(const cse::String& url, const cse::String& title) : title(title) { SetUrl(url); }
24 >        Page(const cse::String &address, const cse::String &path, const cse::String &title) : address(address), path(path), title(title) {}
25 >        Page(const cse::String &url, const cse::String &title) : title(title) { SetUrl(url); }
26          ~Page() {}
27 <        cse::String& GetAddress() { return address; }
28 <        cse::String& GetPath() { return path; }
29 <        cse::String& GetTitle() { return title; }
30 <        ext::Vector<Page>& GetChildren() { return children; }
31 <        cse::String& GetChildOf() { return childOf; }
27 >        cse::String &GetAddress() { return address; }
28 >        cse::String &GetPath() { return path; }
29 >        cse::String &GetTitle() { return title; }
30 >        ext::Vector<Page> &GetChildren() { return children; }
31 >        cse::String &GetChildOf() { return childOf; }
32          cse::String GetUrl() const { return _S<ios::String>() << _B("http://") << address << path; }
33 <        void SetAddress(const cse::String& address) { this->address = address; }
34 <        void SetPath(const cse::String& path) { this->path = path; }
35 <        void SetTitle(const cse::String& title) { this->title = title; }
36 <        void SetChildren(ext::Vector<Page>& children) { this->children = children; }
37 <        void SetChildOf(const cse::String& childOf) { this->childOf = childOf; }
38 <        void SetUrl(const cse::String& url);
39 <        bool operator==(const cse::String& thing);
40 <        bool operator==(const Page& page) const;
41 <        bool operator!=(const cse::String& thing) { return !(*this == thing); }
42 <        bool operator!=(const Page& page) const { return !(*this == page); }
33 >        void SetAddress(const cse::String &address) { this->address = address; }
34 >        void SetPath(const cse::String &path) { this->path = path; }
35 >        void SetTitle(const cse::String &title) { this->title = title; }
36 >        void SetChildren(ext::Vector<Page> &children) { this->children = children; }
37 >        void SetChildOf(const cse::String &childOf) { this->childOf = childOf; }
38 >        void SetUrl(const cse::String &url);
39 >        bool operator==(const cse::String &thing);
40 >        bool operator==(const Page &page) const;
41 >        bool operator!=(const cse::String &thing) { return !(*this == thing); }
42 >        bool operator!=(const Page &page) const { return !(*this == page); }
43   // friends:
44 <        friend bool operator==(const cse::String& thing, Page& page) { return page == thing; }
45 <        friend bool operator!=(const cse::String& thing, Page& page) { return page != thing; }
46 <        friend xml::TextWriter& operator<<(xml::TextWriter& xml, Page& page);
44 >        friend bool operator==(const cse::String &thing, Page &page) { return page == thing; }
45 >        friend bool operator!=(const cse::String &thing, Page &page) { return page != thing; }
46 >        friend xml::TextWriter &operator<<(xml::TextWriter &xml, Page &page);
47   };
48  
49   #endif // _Page_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines