Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2263:b9775db0fd9b
OrthancPlugins::OrthancConfiguration::LookupListOfStrings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 Feb 2017 15:27:20 +0100 |
parents | a3a65de1840f |
children | 8e5e0de75839 |
comparison
equal
deleted
inserted
replaced
2262:6d425452247e | 2263:b9775db0fd9b |
---|---|
37 | 37 |
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 | 43 |
43 | 44 |
44 #if (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER >= 2 || \ | 45 #if (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER >= 2 || \ |
45 (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER == 1 && \ | 46 (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER == 1 && \ |
46 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER >= 2)) | 47 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER >= 2)) |
230 const std::string& key) const; | 231 const std::string& key) const; |
231 | 232 |
232 bool LookupFloatValue(float& target, | 233 bool LookupFloatValue(float& target, |
233 const std::string& key) const; | 234 const std::string& key) const; |
234 | 235 |
236 bool LookupListOfStrings(std::list<std::string>& target, | |
237 const std::string& key) const; | |
238 | |
235 std::string GetStringValue(const std::string& key, | 239 std::string GetStringValue(const std::string& key, |
236 const std::string& defaultValue) const; | 240 const std::string& defaultValue) const; |
237 | 241 |
238 int GetIntegerValue(const std::string& key, | 242 int GetIntegerValue(const std::string& key, |
239 int defaultValue) const; | 243 int defaultValue) const; |