17 |
|
string address; |
18 |
|
string path; |
19 |
|
string title; |
20 |
< |
list<Page> children; |
20 |
> |
vector<Page> children; |
21 |
|
unsigned tab; |
22 |
|
public: |
23 |
– |
Page(const Page& page); |
23 |
|
Page(const string& address, const string& path, const string& title); |
24 |
|
Page(const string& url, const string& title); |
25 |
|
~Page() {} |
26 |
|
string& getAddress(void) { return address; } |
27 |
|
string& getPath(void) { return path; } |
28 |
|
string& getTitle(void) { return title; } |
29 |
< |
list<Page>& getChildren(void) { return children; } |
29 |
> |
vector<Page>& getChildren(void) { return children; } |
30 |
|
string getUrl(void) { return "http://" + address + path; } |
31 |
|
void setAddress(const string& address) { this->address = address; } |
32 |
|
void setPath(const string& path) { this->path = path; } |
33 |
|
void setTitle(const string& title) { this->title = title; } |
34 |
< |
void setChildren(list<Page>& children) { this->children = children; } |
34 |
> |
void setChildren(vector<Page>& children) { this->children = children; } |
35 |
|
void setUrl(const string& url); |
36 |
|
Page& operator()(unsigned tab) { this->tab = tab; return *this; } |
37 |
|
bool operator==(const string& thing); |