comparison OrthancServer/ServerIndex.cpp @ 1249:40725595aaf0

Plugins can get/set global properties to save their configuration
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 15 Dec 2014 10:20:33 +0100
parents 32fcc5dc7562
children cf5bd2dc3b7a
comparison
equal deleted inserted replaced
1248:db753e57934f 1249:40725595aaf0
1957 1957
1958 return true; 1958 return true;
1959 } 1959 }
1960 1960
1961 1961
1962 void ServerIndex::SetGlobalProperty(GlobalProperty property,
1963 const std::string& value)
1964 {
1965 boost::mutex::scoped_lock lock(mutex_);
1966 db_.SetGlobalProperty(property, value);
1967 }
1968
1969
1962 std::string ServerIndex::GetGlobalProperty(GlobalProperty property, 1970 std::string ServerIndex::GetGlobalProperty(GlobalProperty property,
1963 const std::string& defaultValue) 1971 const std::string& defaultValue)
1964 { 1972 {
1965 boost::mutex::scoped_lock lock(mutex_); 1973 boost::mutex::scoped_lock lock(mutex_);
1966 1974