summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ValueFactoryManagerI.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2016-01-19 16:46:11 -0800
committerMark Spruiell <mes@zeroc.com>2016-01-19 16:46:11 -0800
commitd5dd7c866e9e1dc59dc7e127eb39f641530bf823 (patch)
tree61771e4f322a7138b643d5325a6d10acea30fb84 /cpp/src/Ice/ValueFactoryManagerI.h
parentDeprecate ice_name and add ice_id (diff)
downloadice-d5dd7c866e9e1dc59dc7e127eb39f641530bf823.tar.bz2
ice-d5dd7c866e9e1dc59dc7e127eb39f641530bf823.tar.xz
ice-d5dd7c866e9e1dc59dc7e127eb39f641530bf823.zip
ICE-6861 - removing public stream API
Diffstat (limited to 'cpp/src/Ice/ValueFactoryManagerI.h')
-rw-r--r--cpp/src/Ice/ValueFactoryManagerI.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/cpp/src/Ice/ValueFactoryManagerI.h b/cpp/src/Ice/ValueFactoryManagerI.h
new file mode 100644
index 00000000000..bdddb42cb65
--- /dev/null
+++ b/cpp/src/Ice/ValueFactoryManagerI.h
@@ -0,0 +1,49 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#ifndef ICE_VALUE_FACTORY_MANAGER_I_H
+#define ICE_VALUE_FACTORY_MANAGER_I_H
+
+#include <Ice/ValueFactory.h>
+#include <Ice/VirtualShared.h>
+#include <IceUtil/Mutex.h>
+
+namespace IceInternal
+{
+
+class ValueFactoryManagerI;
+ICE_DEFINE_PTR(ValueFactoryManagerIPtr, ValueFactoryManagerI);
+
+class ValueFactoryManagerI : public Ice::EnableSharedFromThis<ValueFactoryManagerI>,
+ public Ice::ValueFactoryManager,
+ public IceUtil::Mutex
+{
+public:
+
+ ValueFactoryManagerI();
+
+#ifdef ICE_CPP11_MAPPING
+ virtual void add(std::function<std::shared_ptr<Ice::Value> (std::string)>, const std::string&);
+ virtual std::function<std::shared_ptr<Ice::Value> (const std::string&)> find(const std::string&) const;
+#else
+ virtual void add(const Ice::ValueFactoryPtr&, const std::string&);
+ virtual Ice::ValueFactoryPtr find(const std::string&) const;
+#endif
+
+private:
+
+ typedef std::map<std::string, ICE_VALUE_FACTORY> FactoryMap;
+
+ FactoryMap _factoryMap;
+ mutable FactoryMap::iterator _factoryMapHint;
+};
+
+}
+
+#endif