summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/FileDescFactory.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-04-14 22:53:32 +0000
committerMarc Laukien <marc@zeroc.com>2002-04-14 22:53:32 +0000
commit91300e7dbe6528b6b887fbf8734ed1c49e437b55 (patch)
tree306ec331004b79146ff0ef217dde0aae1129b382 /cpp/src/IcePatch/FileDescFactory.cpp
parentudp fixes (diff)
downloadice-91300e7dbe6528b6b887fbf8734ed1c49e437b55.tar.bz2
ice-91300e7dbe6528b6b887fbf8734ed1c49e437b55.tar.xz
ice-91300e7dbe6528b6b887fbf8734ed1c49e437b55.zip
fixes to IcePatch
Diffstat (limited to 'cpp/src/IcePatch/FileDescFactory.cpp')
-rw-r--r--cpp/src/IcePatch/FileDescFactory.cpp38
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.
+}