diff options
Diffstat (limited to 'cpp/src/IcePatch/FileDescFactory.cpp')
-rw-r--r-- | cpp/src/IcePatch/FileDescFactory.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/cpp/src/IcePatch/FileDescFactory.cpp b/cpp/src/IcePatch/FileDescFactory.cpp new file mode 100644 index 00000000000..4b7c9fc442e --- /dev/null +++ b/cpp/src/IcePatch/FileDescFactory.cpp @@ -0,0 +1,38 @@ +// **********************************************************************
+//
+// Copyright (c) 2002
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#include <IcePatch/FileDescFactory.h>
+
+using namespace std;
+using namespace Ice;
+using namespace IcePatch;
+
+ObjectPtr
+IcePatch::FileDescFactory::create(const std::string& type)
+{
+ if (type == "::IcePatch::DirectoryDesc")
+ {
+ return new DirectoryDesc;
+ }
+
+ if (type == "::IcePatch::RegularDesc")
+ {
+ return new RegularDesc;
+ }
+
+ assert(false);
+ return 0; // To keep the compiler from complaining.
+}
+
+void
+IcePatch::FileDescFactory::destroy()
+{
+ // Nothing to do.
+}
|