diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-10-20 16:21:11 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-10-20 16:21:11 +0000 |
commit | 6cb72acd28e758df501d0ef0ece489889860e49f (patch) | |
tree | db3891db78db0ac03d1edfff5dc0a203be58fda9 /cpp/src/Ice/ImplicitContextI.h | |
parent | Converted Windows build to use nmake (diff) | |
download | ice-6cb72acd28e758df501d0ef0ece489889860e49f.tar.bz2 ice-6cb72acd28e758df501d0ef0ece489889860e49f.tar.xz ice-6cb72acd28e758df501d0ef0ece489889860e49f.zip |
Implicit context: first cut
Diffstat (limited to 'cpp/src/Ice/ImplicitContextI.h')
-rw-r--r-- | cpp/src/Ice/ImplicitContextI.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/cpp/src/Ice/ImplicitContextI.h b/cpp/src/Ice/ImplicitContextI.h new file mode 100644 index 00000000000..5583b377d2c --- /dev/null +++ b/cpp/src/Ice/ImplicitContextI.h @@ -0,0 +1,43 @@ +// ********************************************************************** +// +// 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_IMPLICIT_CONTEXT_I_H +#define ICE_IMPLICIT_CONTEXT_I_H +#endif + +#include <Ice/ImplicitContext.h> + +namespace Ice +{ + +// +// The base class for all ImplicitContext implementations +// + +class ImplicitContextI : public ImplicitContext +{ +public: + + static ImplicitContextI* create(const std::string&); + +#ifdef _WIN32 + static void cleanupThread(); +#endif + + // + // Marshals the underlying context plus the given context + // (entries in the given context overwrite entries in + // the underlying context) + // + virtual void write(const Context&, ::IceInternal::BasicStream*) const = 0; +}; + +typedef IceInternal::Handle<ImplicitContextI> ImplicitContextIPtr; + +} |