190 |
|
|
191 |
|
void Poller::save() |
192 |
|
{ |
193 |
+ |
unsigned index; |
194 |
|
ofstream fout(file.c_str()); |
195 |
|
|
196 |
< |
// |
196 |
> |
fout << "_find_\n" |
197 |
> |
<< "reply=" << find.reply << "\n" |
198 |
> |
<< "news=" << find.news << "\n" |
199 |
> |
<< "sig=" << find.sig << "\n" |
200 |
> |
<< "search=" << find.search << "\n" |
201 |
> |
<< "link=" << find.link << "\n" |
202 |
> |
<< "browse=" << find.browse << "\n" |
203 |
> |
<< "other=" << find.other << "\n"; |
204 |
> |
|
205 |
> |
for (index = 0; index < find.approved.size(); index++) |
206 |
> |
{ |
207 |
> |
fout << "approved=" << find.approved[index] << "\n"; |
208 |
> |
} |
209 |
> |
|
210 |
> |
for (index = 0; index < find.approve.size(); index++) |
211 |
> |
{ |
212 |
> |
fout << "approve=" << find.approve[index] << "\n"; |
213 |
> |
} |
214 |
> |
|
215 |
> |
fout << "_help_\n" |
216 |
> |
<< "solved=" << help.solved << "\n" |
217 |
> |
<< "note=" << help.note << "\n" |
218 |
> |
<< "link=" << help.link << "\n" |
219 |
> |
<< "news=" << help.news << "\n" |
220 |
> |
<< "lazy=" << help.lazy << "\n" |
221 |
> |
<< "_improve_\n" |
222 |
> |
<< "nothing=" << improve.nothing << "\n" |
223 |
> |
<< "links=" << improve.links << "\n" |
224 |
> |
<< "suggest=" << improve.suggest << "\n"; |
225 |
> |
|
226 |
> |
for (index = 0; index < improve.approved.size(); index++) |
227 |
> |
{ |
228 |
> |
fout << "approved=" << improve.approved[index] << "\n"; |
229 |
> |
} |
230 |
> |
|
231 |
> |
for (index = 0; index < improve.approve.size(); index++) |
232 |
> |
{ |
233 |
> |
fout << "approve=" << improve.approve[index] << "\n"; |
234 |
> |
} |
235 |
|
|
236 |
|
fout.close(); |
237 |
|
} |