Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2266:a344e47e9c9a
OrthancConfiguration::LookupSetOfStrings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 14 Feb 2017 16:03:18 +0100 |
parents | e46b0ee6c19d |
children | ce5c13b95dac |
comparison
equal
deleted
inserted
replaced
2265:e46b0ee6c19d | 2266:a344e47e9c9a |
---|---|
38 #include <orthanc/OrthancCPlugin.h> | 38 #include <orthanc/OrthancCPlugin.h> |
39 #include <boost/noncopyable.hpp> | 39 #include <boost/noncopyable.hpp> |
40 #include <boost/lexical_cast.hpp> | 40 #include <boost/lexical_cast.hpp> |
41 #include <json/value.h> | 41 #include <json/value.h> |
42 #include <list> | 42 #include <list> |
43 #include <set> | |
43 | 44 |
44 | 45 |
45 #if (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER >= 2 || \ | 46 #if (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER >= 2 || \ |
46 (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER == 1 && \ | 47 (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER == 1 && \ |
47 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER >= 2)) | 48 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER >= 2)) |
250 const std::string& key) const; | 251 const std::string& key) const; |
251 | 252 |
252 bool LookupListOfStrings(std::list<std::string>& target, | 253 bool LookupListOfStrings(std::list<std::string>& target, |
253 const std::string& key, | 254 const std::string& key, |
254 bool allowSingleString) const; | 255 bool allowSingleString) const; |
256 | |
257 bool LookupSetOfStrings(std::set<std::string>& target, | |
258 const std::string& key, | |
259 bool allowSingleString) const; | |
255 | 260 |
256 std::string GetStringValue(const std::string& key, | 261 std::string GetStringValue(const std::string& key, |
257 const std::string& defaultValue) const; | 262 const std::string& defaultValue) const; |
258 | 263 |
259 int GetIntegerValue(const std::string& key, | 264 int GetIntegerValue(const std::string& key, |