summaryrefslogtreecommitdiff
path: root/src/SessionSerializer.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-21 13:51:56 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-21 13:51:56 +0000
commitca4940622c05e50a50f77c621ade914029663446 (patch)
tree2715d87c6b4faa669ae317f6f95d9694630cd4a0 /src/SessionSerializer.cc
parentae957baa98d4f97ea2437596db5073f9c33d22ae (diff)
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed naming standards for class member variable: now it looks like var_ instead of _var.
Diffstat (limited to 'src/SessionSerializer.cc')
-rw-r--r--src/SessionSerializer.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/SessionSerializer.cc b/src/SessionSerializer.cc
index 5e1a1c9d..4310aa67 100644
--- a/src/SessionSerializer.cc
+++ b/src/SessionSerializer.cc
@@ -54,10 +54,10 @@ namespace aria2 {
SessionSerializer::SessionSerializer
(const SharedHandle<RequestGroupMan>& requestGroupMan):
- _rgman(requestGroupMan),
- _saveError(true),
- _saveInProgress(true),
- _saveWaiting(true) {}
+ rgman_(requestGroupMan),
+ saveError_(true),
+ saveInProgress_(true),
+ saveWaiting_(true) {}
bool SessionSerializer::save(const std::string& filename) const
{
@@ -161,25 +161,25 @@ void SessionSerializer::save(std::ostream& out) const
{
std::set<int64_t> metainfoCache;
const std::deque<SharedHandle<DownloadResult> >& results =
- _rgman->getDownloadResults();
+ rgman_->getDownloadResults();
for(std::deque<SharedHandle<DownloadResult> >::const_iterator itr =
results.begin(), eoi = results.end(); itr != eoi; ++itr) {
if((*itr)->result == downloadresultcode::FINISHED) {
continue;
} else if((*itr)->result == downloadresultcode::IN_PROGRESS) {
- if(_saveInProgress) {
+ if(saveInProgress_) {
writeDownloadResult(out, metainfoCache, *itr);
}
} else {
// error download
- if(_saveError) {
+ if(saveError_) {
writeDownloadResult(out, metainfoCache, *itr);
}
}
}
- if(_saveInProgress) {
+ if(saveInProgress_) {
const std::deque<SharedHandle<RequestGroup> >& groups =
- _rgman->getRequestGroups();
+ rgman_->getRequestGroups();
for(std::deque<SharedHandle<RequestGroup> >::const_iterator itr =
groups.begin(), eoi = groups.end(); itr != eoi; ++itr) {
SharedHandle<DownloadResult> result = (*itr)->createDownloadResult();
@@ -189,9 +189,9 @@ void SessionSerializer::save(std::ostream& out) const
writeDownloadResult(out, metainfoCache, result);
}
}
- if(_saveWaiting) {
+ if(saveWaiting_) {
const std::deque<SharedHandle<RequestGroup> >& groups =
- _rgman->getReservedGroups();
+ rgman_->getReservedGroups();
for(std::deque<SharedHandle<RequestGroup> >::const_iterator itr =
groups.begin(), eoi = groups.end(); itr != eoi; ++itr) {
SharedHandle<DownloadResult> result = (*itr)->createDownloadResult();