diff options
Diffstat (limited to 'cpp/demo/Ice/pickle/Factory.cpp')
-rw-r--r-- | cpp/demo/Ice/pickle/Factory.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cpp/demo/Ice/pickle/Factory.cpp b/cpp/demo/Ice/pickle/Factory.cpp new file mode 100644 index 00000000000..be24fc0cea8 --- /dev/null +++ b/cpp/demo/Ice/pickle/Factory.cpp @@ -0,0 +1,25 @@ +// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include <Ice/Ice.h> +#include <Factory.h> +#include <Pickle.h> + +using namespace std; + +Ice::ObjectPtr +Factory::create(const string& id) +{ + if (id == "::Persistent") + return new Persistent; + + assert(false); + return 0; +} |