comparison OrthancServer/ServerIndex.cpp @ 1246:54bf0f0245f4

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Dec 2014 12:56:30 +0100
parents a0e420c5f2b8
children 32fcc5dc7562
comparison
equal deleted inserted replaced
1245:aea9277dee75 1246:54bf0f0245f4
1155 assert(ok); 1155 assert(ok);
1156 } 1156 }
1157 } 1157 }
1158 1158
1159 // No need for a SQLite::ITransaction here, as we only insert 1 record 1159 // No need for a SQLite::ITransaction here, as we only insert 1 record
1160 db_->LogExportedResource(type, 1160 ExportedResource resource(-1,
1161 publicId, 1161 type,
1162 remoteModality, 1162 publicId,
1163 patientId, 1163 remoteModality,
1164 studyInstanceUid, 1164 Toolbox::GetNowIsoString(),
1165 seriesInstanceUid, 1165 patientId,
1166 sopInstanceUid, 1166 studyInstanceUid,
1167 boost::posix_time::second_clock::local_time()); 1167 seriesInstanceUid,
1168 sopInstanceUid);
1169 db_->LogExportedResource(resource);
1168 } 1170 }
1169 1171
1170 1172
1171 bool ServerIndex::GetExportedResources(Json::Value& target, 1173 bool ServerIndex::GetExportedResources(Json::Value& target,
1172 int64_t since, 1174 int64_t since,