16#ifndef __Ice_ImplicitContext_h__
17#define __Ice_ImplicitContext_h__
34#ifndef ICE_IGNORE_VERSION
35# if ICE_INT_VERSION / 100 != 307
36# error Ice version mismatch!
38# if ICE_INT_VERSION % 100 >= 50
39# error Beta header file detected
41# if ICE_INT_VERSION % 100 < 11
42# error Ice patch level mismatch!
47# if defined(ICE_STATIC_LIBS)
49# elif defined(ICE_API_EXPORTS)
50# define ICE_API ICE_DECLSPEC_EXPORT
52# define ICE_API ICE_DECLSPEC_IMPORT
56#ifdef ICE_CPP11_MAPPING
92class ICE_CLASS(ICE_API) ImplicitContext
102 virtual ::Ice::Context getContext()
const = 0;
108 virtual void setContext(
const Context& newContext) = 0;
115 virtual bool containsKey(const ::std::string& key)
const = 0;
125 virtual ::std::string get(const ::std::string& key)
const = 0;
133 virtual ::std::string put(const ::std::string& key, const ::std::string& value) = 0;
140 virtual ::std::string remove(const ::std::string& key) = 0;
209#ifdef ICE_CPP11_COMPILER
242 virtual ::std::string
get(const ::std::string& key)
const = 0;
250 virtual ::std::string
put(const ::std::string& key, const ::std::string& value) = 0;
257 virtual ::std::string
remove(const ::std::string& key) = 0;
266inline bool operator<(
const ImplicitContext& lhs,
const ImplicitContext& rhs)
268 return static_cast<const LocalObject&
>(lhs) <
static_cast<const LocalObject&
>(rhs);
#define ICE_API
Definition Config.h:197
#define ICE_MEMBER(API)
Definition Config.h:177
Shared & operator=(const Shared &)
Definition Shared.h:94
An interface to associate implict contexts with communicators.
Definition ImplicitContext.h:202
ImplicitContextPtr PointerType
Definition ImplicitContext.h:205
virtual bool containsKey(const ::std::string &key) const =0
Check if this key has an associated value in the underlying context.
virtual Context getContext() const =0
Get a copy of the underlying context.
virtual::std::string get(const ::std::string &key) const =0
Get the value associated with the given key in the underlying context.
virtual::std::string put(const ::std::string &key, const ::std::string &value)=0
Create or update a key/value entry in the underlying context.
virtual void setContext(const Context &newContext)=0
Set the underlying context.
virtual::std::string remove(const ::std::string &key)=0
Remove the entry for the given key in the underlying context.
virtual ~ImplicitContext()
Base class for local Slice classes and interfaces.
Definition LocalObject.h:25
Definition BuiltinSequences.h:113
::std::map< ::std::string, ::std::string > Context
A request context.
Definition Current.h:207
::IceInternal::Handle< ImplicitContext > ImplicitContextPtr
Definition ImplicitContext.h:170
IceUtil::Shared * upCast(::Ice::AsyncResult *)