comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 5579:77570cce8855 find-refactoring

removed redundant FindResponse::resourceId_
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 27 Apr 2024 11:31:39 +0200
parents 5a13483d12c5
children df7324d6e728
comparison
equal deleted inserted replaced
5577:9e74e761b108 5579:77570cce8855
3861 operations.Apply(*this, response, request, normalized); 3861 operations.Apply(*this, response, request, normalized);
3862 } 3862 }
3863 3863
3864 // TODO-FIND: we reuse the ExpandedResource class to reuse Serialization code from ExpandedResource 3864 // TODO-FIND: we reuse the ExpandedResource class to reuse Serialization code from ExpandedResource
3865 // But, finally, we might just get rid of ExpandedResource and replace it by FindResponse 3865 // But, finally, we might just get rid of ExpandedResource and replace it by FindResponse
3866 ExpandedResource::ExpandedResource(const FindResponse::Item& item) : 3866 ExpandedResource::ExpandedResource(ResourceType level,
3867 id_(item.GetResourceId()), 3867 const FindResponse::Item& item) :
3868 id_(item.GetIdentifiers().GetLevel(level)),
3868 level_(item.GetLevel()), 3869 level_(item.GetLevel()),
3869 isStable_(false), 3870 isStable_(false),
3870 expectedNumberOfInstances_(0), 3871 expectedNumberOfInstances_(0),
3871 fileSize_(0), 3872 fileSize_(0),
3872 indexInSeries_(0) 3873 indexInSeries_(0)