comparison 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
comparison
equal deleted inserted replaced
2940:4767d36679ed 2941:e292798f9980
38 #include "../Core/Logging.h" 38 #include "../Core/Logging.h"
39 #include "../Core/OrthancException.h" 39 #include "../Core/OrthancException.h"
40 #include "../Core/SystemToolbox.h" 40 #include "../Core/SystemToolbox.h"
41 #include "../Core/Toolbox.h" 41 #include "../Core/Toolbox.h"
42 42
43 #include "ServerIndex.h"
44
43 namespace Orthanc 45 namespace Orthanc
44 { 46 {
45 static void AddFileToConfiguration(Json::Value& target, 47 static void AddFileToConfiguration(Json::Value& target,
46 const boost::filesystem::path& path) 48 const boost::filesystem::path& path)
47 { 49 {
715 std::string a = writer.write(json_); 717 std::string a = writer.write(json_);
716 std::string b = writer.write(current); 718 std::string b = writer.write(current);
717 719
718 return a != b; 720 return a != b;
719 } 721 }
722
723
724 void OrthancConfiguration::SetServerIndex(ServerIndex& index)
725 {
726 serverIndex_ = &index;
727 }
728
729
730 void OrthancConfiguration::ResetServerIndex()
731 {
732 serverIndex_ = NULL;
733 }
720 } 734 }