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 129 by Douglas Thrift, 2004-03-23T22:49:41-08:00 vs.
Revision 135 by Douglas Thrift, 2004-03-25T01:02:24-08:00

# Line 16 | Line 16 | private:
16          string path;
17          string title;
18          vector<Page> children;
19 +        unsigned tab;
20   public:
21          Page(const string& address, const string& path, const string& title);
22 <        Page(const string& url);
22 >        Page(const string& url, const string& title);
23          ~Page() {}
24          string& getAddress(void) { return address; }
25          string& getPath(void) { return path; }
# Line 30 | Line 31 | public:
31          void setTitle(const string& title) { this->title = title; }
32          void setChildren(vector<Page>& children) { this->children = children; }
33          void setUrl(const string& url);
34 +        Page& operator()(unsigned tab) { this->tab = tab; return *this; }
35          bool operator==(const string& thing);
36          bool operator==(Page& page);
37          bool operator!=(const string& thing) { return !(*this == thing); }
# Line 41 | Line 43 | public:
43                  thing; }
44          friend bool operator!=(const string& thing, Page& page) { return page ==
45                  thing; }
46 +        friend ostream& operator<<(ostream& output, Page& page);
47   };
48  
49   #endif // _Page_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines