summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/PropertiesI.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2007-09-19 11:22:45 +1000
committerMichi Henning <michi@zeroc.com>2007-09-19 11:22:45 +1000
commitcd0338e842b7751c423f5384d247202d3c981be4 (patch)
tree2b2965f974c3f7f0dda3b94ed4d7c1c49175d375 /cpp/src/Ice/PropertiesI.cpp
parentAdded more tests. Changed stack marshaling to reverse order during (diff)
parentAdded missing facet (diff)
downloadice-cd0338e842b7751c423f5384d247202d3c981be4.tar.bz2
ice-cd0338e842b7751c423f5384d247202d3c981be4.tar.xz
ice-cd0338e842b7751c423f5384d247202d3c981be4.zip
Merge branch 'master' of ssh://cvs.zeroc.com/home/git/ice
Conflicts: cs/src/Ice/Instance.cs Removed conflicts. Added more tests. Changed stack marshaling to reverse order during marshaling instead of during unmarshaling.
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);
+}