Mercurial > hg > orthanc-databases
diff Framework/Plugins/IndexBackend.h @ 202:2def2df94f94
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 18 Mar 2021 17:00:38 +0100 |
parents | 42990b2dd51b |
children | 2089d4071408 |
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.h Thu Mar 18 16:51:51 2021 +0100 +++ b/Framework/Plugins/IndexBackend.h Thu Mar 18 17:00:38 2021 +0100 @@ -323,5 +323,21 @@ int64_t id) ORTHANC_OVERRIDE; # endif #endif + + virtual bool HasCreateInstance() const ORTHANC_OVERRIDE + { + return false; // TODO - Shouldn't this be "true"? + } + +#if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1 + virtual void CreateInstance(OrthancPluginCreateInstanceResult& result, + const char* hashPatient, + const char* hashStudy, + const char* hashSeries, + const char* hashInstance) + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); + } +#endif }; }