summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-04-20 21:25:37 +0000
committerMark Spruiell <mes@zeroc.com>2004-04-20 21:25:37 +0000
commitbf9657eb1fbd77b0fb287e1bb2a386159bf4d74c (patch)
tree10cf69bd6e9e0682102e55da8b1dc41fc4a95544
parentadding support for download totals; misc minor cleanup (diff)
downloadice-bf9657eb1fbd77b0fb287e1bb2a386159bf4d74c.tar.bz2
ice-bf9657eb1fbd77b0fb287e1bb2a386159bf4d74c.tar.xz
ice-bf9657eb1fbd77b0fb287e1bb2a386159bf4d74c.zip
adding support for download totals
-rw-r--r--cpp/include/IcePatch/Util.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/cpp/include/IcePatch/Util.h b/cpp/include/IcePatch/Util.h
index 4c6bc32bed3..ebce9655c50 100644
--- a/cpp/include/IcePatch/Util.h
+++ b/cpp/include/IcePatch/Util.h
@@ -59,6 +59,25 @@ ICE_PATCH_API Ice::ByteSeq calcPartialMD5(const std::string&, Ice::Int, const Ic
ICE_PATCH_API Ice::ByteSeq getBZ2(const std::string&, Ice::Int, Ice::Int);
ICE_PATCH_API void createBZ2(const std::string&, const Ice::LoggerPtr&);
+typedef std::map<Ice::ByteSeq, Ice::Long> TotalMap;
+
+ICE_PATCH_API TotalMap getTotalMap(const Ice::CommunicatorPtr&, const std::string&);
+ICE_PATCH_API void putTotalMap(const Ice::CommunicatorPtr&, const std::string&, const TotalMap&);
+
+#ifdef _WIN32
+
+//
+// Function object to do case-insensitive string comparison.
+//
+class ICE_PATCH_API CICompare : public std::binary_function<std::string, std::string, bool>
+{
+public:
+
+ bool operator()(const std::string&, const std::string&) const;
+};
+
+#endif
+
}
#endif