summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/UserExceptionFactoryManager.h
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-10-14 17:58:55 +0000
committerMarc Laukien <marc@zeroc.com>2001-10-14 17:58:55 +0000
commit5c872d29b6223e23daea5b510a2bcb4d43fa08eb (patch)
treee4e7f5a7f43a76c7cee0a52626b2a1c294763bb9 /cpp/src/Ice/UserExceptionFactoryManager.h
parentfixes (diff)
downloadice-5c872d29b6223e23daea5b510a2bcb4d43fa08eb.tar.bz2
ice-5c872d29b6223e23daea5b510a2bcb4d43fa08eb.tar.xz
ice-5c872d29b6223e23daea5b510a2bcb4d43fa08eb.zip
user exceptin factories
Diffstat (limited to 'cpp/src/Ice/UserExceptionFactoryManager.h')
-rw-r--r--cpp/src/Ice/UserExceptionFactoryManager.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/cpp/src/Ice/UserExceptionFactoryManager.h b/cpp/src/Ice/UserExceptionFactoryManager.h
new file mode 100644
index 00000000000..a27bdc8a826
--- /dev/null
+++ b/cpp/src/Ice/UserExceptionFactoryManager.h
@@ -0,0 +1,41 @@
+// **********************************************************************
+//
+// Copyright (c) 2002
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#ifndef ICE_USER_EXCEPTION_FACTORY_MANAGER_H
+#define ICE_USER_EXCEPTION_FACTORY_MANAGER_H
+
+#include <IceUtil/Shared.h>
+#include <Ice/UserExceptionFactoryManagerF.h>
+#include <Ice/UserExceptionFactoryF.h>
+
+namespace IceInternal
+{
+
+class UserExceptionFactoryManager : public ::IceUtil::Shared, public JTCMutex
+{
+public:
+
+ void add(const ::Ice::UserExceptionFactoryPtr&, const std::string&);
+ void remove(const std::string&);
+ ::Ice::UserExceptionFactoryPtr find(const std::string&);
+
+private:
+
+ UserExceptionFactoryManager();
+ void destroy();
+ friend class Instance;
+
+ std::map<std::string, ::Ice::UserExceptionFactoryPtr> _factoryMap;
+ std::map<std::string, ::Ice::UserExceptionFactoryPtr>::iterator _factoryMapHint;
+};
+
+}
+
+#endif