ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/Page.cpp
(Generate patch)

Comparing trunk/Search/Page.cpp (file contents):
Revision 334 by Douglas Thrift, 2004-04-05T16:37:41-07:00 vs.
Revision 348 by Douglas Thrift, 2004-05-26T17:44:17-07:00

# Line 50 | Line 50
50  
51   #include "Page.hpp"
52  
53 Page::Page(string& url) : URL(url)
54 {
55        size = 0;
56 }
57
58 void Page::setSize(unsigned size)
59 {
60        this->size = size;
61 }
62
63 void Page::setTitle(string& title)
64 {
65        this->title = title;
66 }
67
68 void Page::setDescription(string& description)
69 {
70        this->description = description;
71 }
72
73 void Page::setText(string& text)
74 {
75        this->text = text;
76 }
77
78 void Page::setHeadings(vector<string>& headings)
79 {
80        this->headings = headings;
81 }
82
53   istream& operator>>(istream& is, Page& data)
54   {
55          string line;
# Line 311 | Line 281 | ostream& operator<<(ostream& os, Page& d
281  
282          os << "         <text>" << text << "</text>\n";
283  
284 <        for (int index = 0; index < data.getHeadings().size(); index++)
284 >        for (size_t index(0); index < data.getHeadings().size(); index++)
285          {
286                  string heading = data.getHeadings()[index];
287  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines