diff options
Diffstat (limited to 'cpp/src/Ice/UserExceptionFactoryManager.h')
-rw-r--r-- | cpp/src/Ice/UserExceptionFactoryManager.h | 41 |
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 |