diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-04-20 21:25:37 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-04-20 21:25:37 +0000 |
commit | bf9657eb1fbd77b0fb287e1bb2a386159bf4d74c (patch) | |
tree | 10cf69bd6e9e0682102e55da8b1dc41fc4a95544 /cpp/include/IcePatch/Util.h | |
parent | adding support for download totals; misc minor cleanup (diff) | |
download | ice-bf9657eb1fbd77b0fb287e1bb2a386159bf4d74c.tar.bz2 ice-bf9657eb1fbd77b0fb287e1bb2a386159bf4d74c.tar.xz ice-bf9657eb1fbd77b0fb287e1bb2a386159bf4d74c.zip |
adding support for download totals
Diffstat (limited to 'cpp/include/IcePatch/Util.h')
-rw-r--r-- | cpp/include/IcePatch/Util.h | 19 |
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 |