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
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;
156using ImplicitContextPtr = ::std::shared_ptr<ImplicitContext>;
170typedef ::IceInternal::Handle< ImplicitContext> ImplicitContextPtr;
205 typedef ImplicitContextPtr PointerType;
207 virtual ~ImplicitContext();
209#ifdef ICE_CPP11_COMPILER
210 ImplicitContext() =
default;
211 ImplicitContext(
const ImplicitContext&) =
default;
212 ImplicitContext& operator=(
const ImplicitContext&) =
default;
219 virtual Context getContext()
const = 0;
225 virtual void setContext(
const Context& newContext) = 0;
232 virtual bool containsKey(const ::std::string& key)
const = 0;
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;
263 return static_cast<const LocalObject&
>(lhs) ==
static_cast<const LocalObject&
>(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
An interface to associate implict contexts with communicators.
Definition ImplicitContext.h:93
virtual bool containsKey(const ::std::string &key) const =0
Check if this key has an associated value in 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::Ice::Context getContext() const =0
Get a copy of 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()
Definition BuiltinSequences.h:56
IceUtil::Shared * upCast(::Ice::LocalObject *)
::std::map<::std::string, ::std::string > Context
A request context.
Definition Current.h:68
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:136
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:184