Mercurial > hg > orthanc
diff OrthancServer/Search/Compatibility/CompatibilityDatabaseWrapper.h @ 3080:1a75595d8e44 db-changes
started refactoring of ServerIndex::Store()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Jan 2019 18:21:22 +0100 |
parents | aae1d6d31fef |
children | 847a0ed92654 |
line wrap: on
line diff
--- a/OrthancServer/Search/Compatibility/CompatibilityDatabaseWrapper.h Thu Jan 03 14:03:39 2019 +0100 +++ b/OrthancServer/Search/Compatibility/CompatibilityDatabaseWrapper.h Thu Jan 03 18:21:22 2019 +0100 @@ -33,7 +33,7 @@ #pragma once -#include "../../IDatabaseWrapper.h" +#include "ICompatibilityCreateInstance.h" namespace Orthanc { @@ -44,7 +44,9 @@ * that were used in Orthanc <= 1.5.1, and that have been removed * during the optimization of the database engine. **/ - class CompatibilityDatabaseWrapper : public IDatabaseWrapper + class CompatibilityDatabaseWrapper : + public IDatabaseWrapper, + public ICompatibilityCreateInstance { public: virtual void ApplyLookupResources(std::list<std::string>& resourcesId, @@ -54,9 +56,18 @@ size_t limit) ORTHANC_OVERRIDE; + virtual bool CreateInstance(CreateInstanceResult& result, + int64_t& instanceId, + const std::string& patient, + const std::string& study, + const std::string& series, + const std::string& instance, + bool overwrite) + ORTHANC_OVERRIDE; + virtual void GetAllInternalIds(std::list<int64_t>& target, ResourceType resourceType) = 0; - + virtual void LookupIdentifier(std::list<int64_t>& result, ResourceType level, const DicomTag& tag,