summaryrefslogtreecommitdiff
path: root/cpp/include/IcePatch/Util.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/IcePatch/Util.h')
-rw-r--r--cpp/include/IcePatch/Util.h144
1 files changed, 72 insertions, 72 deletions
diff --git a/cpp/include/IcePatch/Util.h b/cpp/include/IcePatch/Util.h
index 4a5034bff4b..5b02b854761 100644
--- a/cpp/include/IcePatch/Util.h
+++ b/cpp/include/IcePatch/Util.h
@@ -1,72 +1,72 @@
-// **********************************************************************
-//
-// Copyright (c) 2002
-// MutableRealms, Inc.
-// Huntsville, AL, USA
-//
-// All Rights Reserved
-//
-// **********************************************************************
-
-#ifndef ICE_PATCH_UTIL_H
-#define ICE_PATCH_UTIL_H
-
-#include <Ice/Ice.h>
-#include <IcePatch/IcePatch.h>
-
-namespace IcePatch
-{
-
-ICE_PATCH_API std::string identityToPath(const Ice::Identity&);
-ICE_PATCH_API Ice::Identity pathToIdentity(const std::string&);
-
-ICE_PATCH_API std::string getSuffix(const std::string&);
-ICE_PATCH_API bool ignoreSuffix(const std::string&);
-ICE_PATCH_API std::string removeSuffix(const std::string&);
-
-enum FileType
-{
- FileTypeNotExist,
- FileTypeDirectory,
- FileTypeRegular,
- FileTypeUnknown
-};
-
-struct FileInfo
-{
- FileType type;
- off_t size;
- time_t time;
-};
-
-ICE_PATCH_API FileInfo getFileInfo(const std::string&, bool);
-
-ICE_PATCH_API void removeRecursive(const std::string&);
-
-ICE_PATCH_API Ice::StringSeq readDirectory(const std::string&);
-ICE_PATCH_API void createDirectory(const std::string&);
-
-ICE_PATCH_API Ice::ByteSeq getMD5(const std::string&);
-ICE_PATCH_API Ice::ByteSeq getPartialMD5(const std::string&, Ice::Int);
-ICE_PATCH_API void createMD5(const std::string&);
-
-ICE_PATCH_API Ice::ByteSeq getBZ2(const std::string&, Ice::Int, Ice::Int);
-ICE_PATCH_API void createBZ2(const std::string&);
-
-class ICE_PATCH_API ProgressCB
-{
-public:
-
- virtual void startDownload(Ice::Int, Ice::Int) = 0;
- virtual void updateDownload(Ice::Int, Ice::Int) = 0;
- virtual void finishedDownload(Ice::Int) = 0;
-
- virtual void startUncompress(Ice::Int, Ice::Int) = 0;
- virtual void updateUncompress(Ice::Int, Ice::Int) = 0;
- virtual void finishedUncompress(Ice::Int) = 0;
-};
-ICE_PATCH_API void getRegular(const IcePatch::RegularPrx&, ProgressCB&);
-
-}
-
-#endif
+// **********************************************************************
+//
+// Copyright (c) 2002
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#ifndef ICE_PATCH_UTIL_H
+#define ICE_PATCH_UTIL_H
+
+#include <Ice/Ice.h>
+#include <IcePatch/IcePatch.h>
+
+namespace IcePatch
+{
+
+ICE_PATCH_API std::string identityToPath(const Ice::Identity&);
+ICE_PATCH_API Ice::Identity pathToIdentity(const std::string&);
+
+ICE_PATCH_API std::string getSuffix(const std::string&);
+ICE_PATCH_API bool ignoreSuffix(const std::string&);
+ICE_PATCH_API std::string removeSuffix(const std::string&);
+
+enum FileType
+{
+ FileTypeNotExist,
+ FileTypeDirectory,
+ FileTypeRegular,
+ FileTypeUnknown
+};
+
+struct FileInfo
+{
+ FileType type;
+ off_t size;
+ time_t time;
+};
+
+ICE_PATCH_API FileInfo getFileInfo(const std::string&, bool);
+
+ICE_PATCH_API void removeRecursive(const std::string&);
+
+ICE_PATCH_API Ice::StringSeq readDirectory(const std::string&);
+ICE_PATCH_API void createDirectory(const std::string&);
+
+ICE_PATCH_API Ice::ByteSeq getMD5(const std::string&);
+ICE_PATCH_API Ice::ByteSeq getPartialMD5(const std::string&, Ice::Int);
+ICE_PATCH_API void createMD5(const std::string&);
+
+ICE_PATCH_API Ice::ByteSeq getBZ2(const std::string&, Ice::Int, Ice::Int);
+ICE_PATCH_API void createBZ2(const std::string&);
+
+class ICE_PATCH_API ProgressCB
+{
+public:
+
+ virtual void startDownload(Ice::Int, Ice::Int) = 0;
+ virtual void updateDownload(Ice::Int, Ice::Int) = 0;
+ virtual void finishedDownload(Ice::Int) = 0;
+
+ virtual void startUncompress(Ice::Int, Ice::Int) = 0;
+ virtual void updateUncompress(Ice::Int, Ice::Int) = 0;
+ virtual void finishedUncompress(Ice::Int) = 0;
+};
+ICE_PATCH_API void getRegular(const IcePatch::RegularPrx&, ProgressCB&);
+
+}
+
+#endif