summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/NodeDescFactory.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-04-04 01:39:53 +0000
committerMarc Laukien <marc@zeroc.com>2002-04-04 01:39:53 +0000
commitbabb384bfc970d0b6411d996e897ccaa8d2d7323 (patch)
tree2f8430e601e1d0fc4554896d83c302ddfe8b49ff /cpp/src/IcePatch/NodeDescFactory.cpp
parentmore IcePatch stuff (diff)
downloadice-babb384bfc970d0b6411d996e897ccaa8d2d7323.tar.bz2
ice-babb384bfc970d0b6411d996e897ccaa8d2d7323.tar.xz
ice-babb384bfc970d0b6411d996e897ccaa8d2d7323.zip
more IcePatch stuff
Diffstat (limited to 'cpp/src/IcePatch/NodeDescFactory.cpp')
-rw-r--r--cpp/src/IcePatch/NodeDescFactory.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/cpp/src/IcePatch/NodeDescFactory.cpp b/cpp/src/IcePatch/NodeDescFactory.cpp
new file mode 100644
index 00000000000..5423adcfd2f
--- /dev/null
+++ b/cpp/src/IcePatch/NodeDescFactory.cpp
@@ -0,0 +1,38 @@
+// **********************************************************************
+//
+// Copyright (c) 2002
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#include <IcePatch/NodeDescFactory.h>
+
+using namespace std;
+using namespace Ice;
+using namespace IcePatch;
+
+ObjectPtr
+IcePatch::NodeDescFactory::create(const std::string& type)
+{
+ if (type == "::IcePatch::DirectoryDesc")
+ {
+ return new DirectoryDesc;
+ }
+
+ if (type == "::IcePatch::FileDesc")
+ {
+ return new FileDesc;
+ }
+
+ assert(false);
+ return 0; // To keep the compiler from complaining.
+}
+
+void
+IcePatch::NodeDescFactory::destroy()
+{
+ // Nothing to do.
+}