summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/EndpointFactoryManager.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2002-04-26 02:53:33 +0000
committerMark Spruiell <mes@zeroc.com>2002-04-26 02:53:33 +0000
commit0d715a1edd4484c9b7074c9c3cb283d468a538bc (patch)
tree45934688c11aa189731ae51f07032050affd12ef /cpp/src/Ice/EndpointFactoryManager.h
parentWin32 fix (diff)
downloadice-0d715a1edd4484c9b7074c9c3cb283d468a538bc.tar.bz2
ice-0d715a1edd4484c9b7074c9c3cb283d468a538bc.tar.xz
ice-0d715a1edd4484c9b7074c9c3cb283d468a538bc.zip
Renaming Ice.Trace.Security to IceSSL.Trace.Security Cleaning up IceSSL
dependencies on Ice core
Diffstat (limited to 'cpp/src/Ice/EndpointFactoryManager.h')
-rw-r--r--cpp/src/Ice/EndpointFactoryManager.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/cpp/src/Ice/EndpointFactoryManager.h b/cpp/src/Ice/EndpointFactoryManager.h
new file mode 100644
index 00000000000..34f953f199c
--- /dev/null
+++ b/cpp/src/Ice/EndpointFactoryManager.h
@@ -0,0 +1,47 @@
+// **********************************************************************
+//
+// Copyright (c) 2002
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#ifndef ICE_ENDPOINT_FACTORY_MANAGER_H
+#define ICE_ENDPOINT_FACTORY_MANAGER_H
+
+#include <IceUtil/Shared.h>
+#include <IceUtil/Mutex.h>
+#include <Ice/InstanceF.h>
+#include <Ice/EndpointF.h>
+#include <Ice/EndpointFactoryF.h>
+#include <Ice/EndpointFactoryManagerF.h>
+
+namespace IceInternal
+{
+
+class BasicStream;
+
+class EndpointFactoryManager : public ::IceUtil::Shared, public ::IceUtil::Mutex
+{
+public:
+
+ void add(const EndpointFactoryPtr&);
+ EndpointFactoryPtr get(::Ice::Short) const;
+ EndpointPtr create(const std::string&) const;
+ EndpointPtr read(BasicStream*) const;
+
+private:
+
+ EndpointFactoryManager(const InstancePtr&);
+ void destroy();
+ friend class Instance;
+
+ InstancePtr _instance;
+ std::vector<EndpointFactoryPtr> _factories;
+};
+
+}
+
+#endif