summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/PropertiesI.h
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-05-16 13:14:53 +0000
committerDwayne Boone <dwayne@zeroc.com>2007-05-16 13:14:53 +0000
commit97471800e2eea67243ef838a74634b83a51f9cb9 (patch)
treedc4427a9b5baf9c332570f53fd89c1458bef9051 /cpp/src/Ice/PropertiesI.h
parentFixed mono compile errors (diff)
downloadice-97471800e2eea67243ef838a74634b83a51f9cb9.tar.bz2
ice-97471800e2eea67243ef838a74634b83a51f9cb9.tar.xz
ice-97471800e2eea67243ef838a74634b83a51f9cb9.zip
Bug 1625 - unused property warning
Diffstat (limited to 'cpp/src/Ice/PropertiesI.h')
-rw-r--r--cpp/src/Ice/PropertiesI.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/cpp/src/Ice/PropertiesI.h b/cpp/src/Ice/PropertiesI.h
index a5d78edb9d1..369460addd7 100644
--- a/cpp/src/Ice/PropertiesI.h
+++ b/cpp/src/Ice/PropertiesI.h
@@ -14,6 +14,8 @@
#include <Ice/Properties.h>
#include <Ice/StringConverter.h>
+#include <set>
+
namespace Ice
{
@@ -33,6 +35,8 @@ public:
virtual void load(const std::string&);
virtual PropertiesPtr clone();
+ std::set<std::string> getUnusedProperties();
+
private:
PropertiesI(const StringConverterPtr&);
PropertiesI(StringSeq&, const PropertiesPtr&, const StringConverterPtr&);
@@ -42,12 +46,16 @@ private:
friend ICE_API PropertiesPtr createProperties(StringSeq&, const PropertiesPtr&, const StringConverterPtr&);
friend ICE_API PropertiesPtr createProperties(int&, char*[], const PropertiesPtr&, const StringConverterPtr&);
-
void parseLine(const std::string&, const StringConverterPtr&);
void loadConfig();
- std::map<std::string, std::string> _properties;
+ struct PropertyValue
+ {
+ std::string value;
+ bool used;
+ };
+ std::map<std::string, PropertyValue> _properties;
const StringConverterPtr _converter;
};