diff options
Diffstat (limited to 'cpp/src/Ice/SharedContext.h')
-rw-r--r-- | cpp/src/Ice/SharedContext.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/cpp/src/Ice/SharedContext.h b/cpp/src/Ice/SharedContext.h new file mode 100644 index 00000000000..00982f43b78 --- /dev/null +++ b/cpp/src/Ice/SharedContext.h @@ -0,0 +1,47 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2006 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_SHARED_CONTEXT_H +#define ICE_SHARED_CONTEXT_H + +#include <IceUtil/Shared.h> +#include <IceUtil/Handle.h> +#include <string> +#include <map> + +namespace Ice +{ +typedef ::std::map< ::std::string, ::std::string> Context; +} + +namespace IceInternal +{ + +class SharedContext : public IceUtil::Shared +{ +public: + + SharedContext(const Ice::Context& val) : + _val(val) + { + } + + inline const Ice::Context& getValue() + { + return _val; + } + +private: + + Ice::Context _val; +}; +typedef IceUtil::Handle<SharedContext> SharedContextPtr; +} + +#endif |