comparison OrthancServer/ServerIndex.cpp @ 237:16a4ac70bd8a

last change and export
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 30 Nov 2012 15:45:15 +0100
parents c11273198cef
children e4148b0ab1d0
comparison
equal deleted inserted replaced
236:6d9be2b470b4 237:16a4ac70bd8a
615 bool ServerIndex::GetChanges(Json::Value& target, 615 bool ServerIndex::GetChanges(Json::Value& target,
616 int64_t since, 616 int64_t since,
617 unsigned int maxResults) 617 unsigned int maxResults)
618 { 618 {
619 boost::mutex::scoped_lock lock(mutex_); 619 boost::mutex::scoped_lock lock(mutex_);
620
621 db_->GetChanges(target, since, maxResults); 620 db_->GetChanges(target, since, maxResults);
622 621 return true;
622 }
623
624 bool ServerIndex::GetLastChange(Json::Value& target)
625 {
626 boost::mutex::scoped_lock lock(mutex_);
627 db_->GetLastChange(target);
623 return true; 628 return true;
624 } 629 }
625 630
626 void ServerIndex::LogExportedResource(const std::string& publicId, 631 void ServerIndex::LogExportedResource(const std::string& publicId,
627 const std::string& remoteModality) 632 const std::string& remoteModality)
701 { 706 {
702 boost::mutex::scoped_lock lock(mutex_); 707 boost::mutex::scoped_lock lock(mutex_);
703 db_->GetExportedResources(target, since, maxResults); 708 db_->GetExportedResources(target, since, maxResults);
704 return true; 709 return true;
705 } 710 }
711
712 bool ServerIndex::GetLastExportedResource(Json::Value& target)
713 {
714 boost::mutex::scoped_lock lock(mutex_);
715 db_->GetLastExportedResource(target);
716 return true;
717 }
706 } 718 }