diff options
Diffstat (limited to 'cpp/src/Ice/PropertiesI.cpp')
-rw-r--r-- | cpp/src/Ice/PropertiesI.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/src/Ice/PropertiesI.cpp b/cpp/src/Ice/PropertiesI.cpp index 156278b92ab..06e13051d4e 100644 --- a/cpp/src/Ice/PropertiesI.cpp +++ b/cpp/src/Ice/PropertiesI.cpp @@ -38,6 +38,19 @@ Ice::PropertiesI::setProperty(const string& key, const string& value) _properties[key] = value; } +StringSeq +Ice::PropertiesI::getCommandLineOptions() +{ + StringSeq result; + result.reserve(_properties.size()); + map<string, string>::const_iterator p; + for (p = _properties.begin(); p != _properties.end(); ++p) + { + result.push_back("--" + p->first + "=" + p->second); + } + return result; +} + PropertiesPtr Ice::PropertiesI::clone() { |