summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/PropertiesI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-09-18 11:21:00 -0400
committerBernard Normier <bernard@zeroc.com>2007-09-18 11:21:00 -0400
commit15fec2519f3bbea20349aa971f8a76cfa7c83363 (patch)
treebe529a224ece49a857f30e44af2888a95639868f /cpp/src/Ice/PropertiesI.cpp
parentAdded comment to CHANGES (diff)
downloadice-15fec2519f3bbea20349aa971f8a76cfa7c83363.tar.bz2
ice-15fec2519f3bbea20349aa971f8a76cfa7c83363.tar.xz
ice-15fec2519f3bbea20349aa971f8a76cfa7c83363.zip
Squashed commit of the following:
commit 70a72ca50d39f20ab8d850f0842a8cd2c2a8351d Author: Bernard Normier <bernard@zeroc.com> Date: Tue Sep 18 11:18:19 2007 -0400 Bug fixes commit 2983094468845f39614128cd82973b9c503680a5 Author: Bernard Normier <bernard@zeroc.com> Date: Fri Sep 7 11:00:18 2007 -0400 First commit for bug 1532
Diffstat (limited to 'cpp/src/Ice/PropertiesI.cpp')
-rw-r--r--cpp/src/Ice/PropertiesI.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/cpp/src/Ice/PropertiesI.cpp b/cpp/src/Ice/PropertiesI.cpp
index cc49cd4f78f..72671064a06 100644
--- a/cpp/src/Ice/PropertiesI.cpp
+++ b/cpp/src/Ice/PropertiesI.cpp
@@ -15,6 +15,7 @@
#include <Ice/PropertyNames.h>
#include <Ice/Logger.h>
#include <Ice/LoggerUtil.h>
+#include <Ice/Communicator.h>
#include <fstream>
using namespace std;
@@ -471,3 +472,44 @@ Ice::PropertiesI::loadConfig()
PropertyValue pv(value, true);
_properties["Ice.Config"] = pv;
}
+
+
+//
+// PropertiesAdminI
+//
+
+
+Ice::PropertiesAdminI::PropertiesAdminI(const PropertiesPtr& properties) :
+ _properties(properties)
+{
+}
+
+string
+Ice::PropertiesAdminI::getProperty(const string& name, const Ice::Current&)
+{
+ return _properties->getProperty(name);
+}
+
+string
+Ice::PropertiesAdminI::getPropertyWithDefault(const string& name, const string& dflt, const Ice::Current&)
+{
+ return _properties->getPropertyWithDefault(name, dflt);
+}
+
+Ice::Int
+Ice::PropertiesAdminI::getPropertyAsInt(const string& name, const Ice::Current&)
+{
+ return _properties->getPropertyAsInt(name);
+}
+
+Ice::Int
+Ice::PropertiesAdminI::getPropertyAsIntWithDefault(const string& name, Ice::Int dflt, const Ice::Current&)
+{
+ return _properties->getPropertyAsIntWithDefault(name, dflt);
+}
+
+Ice::PropertyDict
+Ice::PropertiesAdminI::getPropertiesForPrefix(const string& prefix, const Ice::Current&)
+{
+ return _properties->getPropertiesForPrefix(prefix);
+}