diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-07-28 20:35:26 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-07-28 20:35:26 +0000 |
commit | a7270eb607bf5602b6f10dbd2e78da18e4f3d6fb (patch) | |
tree | ef3ca6c6da06abf84b16fcb3eff00f36ab5d65d3 /cppe/src/IceE/SharedContext.h | |
parent | cleaning up the Ruby settings (diff) | |
download | ice-a7270eb607bf5602b6f10dbd2e78da18e4f3d6fb.tar.bz2 ice-a7270eb607bf5602b6f10dbd2e78da18e4f3d6fb.tar.xz ice-a7270eb607bf5602b6f10dbd2e78da18e4f3d6fb.zip |
restored setDefaultContext
Diffstat (limited to 'cppe/src/IceE/SharedContext.h')
-rw-r--r-- | cppe/src/IceE/SharedContext.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/cppe/src/IceE/SharedContext.h b/cppe/src/IceE/SharedContext.h new file mode 100644 index 00000000000..6edf640c21d --- /dev/null +++ b/cppe/src/IceE/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 +// ICEE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#ifndef ICEE_SHARED_CONTEXT_H +#define ICEE_SHARED_CONTEXT_H + +#include <IceE/Shared.h> +#include <IceE/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 |