Mercurial > hg > orthanc
comparison OrthancServer/OrthancConfiguration.h @ 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 |
---|---|
44 #include <boost/thread/lock_types.hpp> | 44 #include <boost/thread/lock_types.hpp> |
45 | 45 |
46 namespace Orthanc | 46 namespace Orthanc |
47 { | 47 { |
48 class MongooseServer; | 48 class MongooseServer; |
49 class ServerIndex; | |
49 | 50 |
50 class OrthancConfiguration : public boost::noncopyable | 51 class OrthancConfiguration : public boost::noncopyable |
51 { | 52 { |
52 private: | 53 private: |
53 boost::shared_mutex mutex_; | 54 boost::shared_mutex mutex_; |
54 Json::Value json_; | 55 Json::Value json_; |
55 boost::filesystem::path defaultDirectory_; | 56 boost::filesystem::path defaultDirectory_; |
56 std::string configurationAbsolutePath_; | 57 std::string configurationAbsolutePath_; |
57 FontRegistry fontRegistry_; | 58 FontRegistry fontRegistry_; |
58 const char* configurationFileArg_; | 59 const char* configurationFileArg_; |
60 ServerIndex* serverIndex_; | |
59 | 61 |
60 OrthancConfiguration() : | 62 OrthancConfiguration() : |
61 configurationFileArg_(NULL) | 63 configurationFileArg_(NULL) |
62 { | 64 { |
63 } | 65 } |
199 void Format(std::string& result) const; | 201 void Format(std::string& result) const; |
200 | 202 |
201 void SetDefaultEncoding(Encoding encoding); | 203 void SetDefaultEncoding(Encoding encoding); |
202 | 204 |
203 bool HasConfigurationChanged() const; | 205 bool HasConfigurationChanged() const; |
206 | |
207 void SetServerIndex(ServerIndex& index); | |
208 | |
209 void ResetServerIndex(); | |
204 }; | 210 }; |
205 } | 211 } |