Mercurial > hg > orthanc
diff OrthancServer/OrthancConfiguration.cpp @ 2941:e292798f9980
OrthancConfiguration::SetServerIndex()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 29 Nov 2018 15:16:32 +0100 |
parents | 4767d36679ed |
children | f395460af74d |
line wrap: on
line diff
--- a/OrthancServer/OrthancConfiguration.cpp Thu Nov 29 11:47:00 2018 +0100 +++ b/OrthancServer/OrthancConfiguration.cpp Thu Nov 29 15:16:32 2018 +0100 @@ -40,6 +40,8 @@ #include "../Core/SystemToolbox.h" #include "../Core/Toolbox.h" +#include "ServerIndex.h" + namespace Orthanc { static void AddFileToConfiguration(Json::Value& target, @@ -717,4 +719,16 @@ return a != b; } + + + void OrthancConfiguration::SetServerIndex(ServerIndex& index) + { + serverIndex_ = &index; + } + + + void OrthancConfiguration::ResetServerIndex() + { + serverIndex_ = NULL; + } }