comparison OrthancServer/ServerJobs/ArchiveJob.cpp @ 2812:ea7aea6f6a95

improved naming of methods in IJob
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Sep 2018 16:23:40 +0200
parents cb1b26a7db98
children bbfd95a0c429
comparison
equal deleted inserted replaced
2811:7cfc8d266f41 2812:ea7aea6f6a95
808 ResourceIdentifiers resource(context_.GetIndex(), publicId); 808 ResourceIdentifiers resource(context_.GetIndex(), publicId);
809 archive_->Add(context_.GetIndex(), resource); 809 archive_->Add(context_.GetIndex(), resource);
810 } 810 }
811 811
812 812
813 void ArchiveJob::SignalResubmit() 813 void ArchiveJob::Reset()
814 { 814 {
815 LOG(ERROR) << "Cannot resubmit the creation of an archive"; 815 LOG(ERROR) << "Cannot resubmit the creation of an archive";
816 throw OrthancException(ErrorCode_BadSequenceOfCalls); 816 throw OrthancException(ErrorCode_BadSequenceOfCalls);
817 } 817 }
818 818
830 instancesCount_ = writer_->GetInstancesCount(); 830 instancesCount_ = writer_->GetInstancesCount();
831 uncompressedSize_ = writer_->GetUncompressedSize(); 831 uncompressedSize_ = writer_->GetUncompressedSize();
832 } 832 }
833 833
834 834
835 JobStepResult ArchiveJob::ExecuteStep() 835 JobStepResult ArchiveJob::Step()
836 { 836 {
837 assert(writer_.get() != NULL); 837 assert(writer_.get() != NULL);
838 838
839 if (target_.unique()) 839 if (target_.unique())
840 { 840 {