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; } |
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); } |
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_ |