diff options
Diffstat (limited to 'contrib/native/client/src/include/drill/userProperties.hpp')
-rw-r--r-- | contrib/native/client/src/include/drill/userProperties.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/contrib/native/client/src/include/drill/userProperties.hpp b/contrib/native/client/src/include/drill/userProperties.hpp index 3490dce7a..62a04f787 100644 --- a/contrib/native/client/src/include/drill/userProperties.hpp +++ b/contrib/native/client/src/include/drill/userProperties.hpp @@ -36,20 +36,17 @@ class DECLSPEC_DRILL_CLIENT DrillUserProperties{ size_t size() const { return m_properties.size(); } - //const std::string& keyAt(size_t i) const { return m_properties.at(i).first; } - - //const std::string& valueAt(size_t i) const { return m_properties.at(i).second; } - const bool isPropSet(const std::string& key) const{ bool isSet=true; - auto f= m_properties.find(key); + std::map<std::string, std::string>::const_iterator f=m_properties.find(key); if(f==m_properties.end()){ isSet=false; } return isSet; } + const std::string& getProp(const std::string& key, std::string& value) const{ - auto f= m_properties.find(key); + std::map<std::string, std::string>::const_iterator f=m_properties.find(key); if(f!=m_properties.end()){ value=f->second; } |