summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/Current.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-07-05 11:09:55 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-07-05 11:09:55 +0000
commit9b8cc712d4a41d71840416776bc94ee8485bb9b3 (patch)
tree7d467fdd6a66bc2b5878d82070d45adbd5c20414 /cppe/src/IceE/Current.cpp
parentcleaning the cache method out of ReferenceFactory (diff)
downloadice-9b8cc712d4a41d71840416776bc94ee8485bb9b3.tar.bz2
ice-9b8cc712d4a41d71840416776bc94ee8485bb9b3.tar.xz
ice-9b8cc712d4a41d71840416776bc94ee8485bb9b3.zip
Changed Ice to IceE EVERYWHERE!!!
Diffstat (limited to 'cppe/src/IceE/Current.cpp')
-rwxr-xr-xcppe/src/IceE/Current.cpp136
1 files changed, 136 insertions, 0 deletions
diff --git a/cppe/src/IceE/Current.cpp b/cppe/src/IceE/Current.cpp
new file mode 100755
index 00000000000..1a59e605061
--- /dev/null
+++ b/cppe/src/IceE/Current.cpp
@@ -0,0 +1,136 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2005 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.
+//
+// **********************************************************************
+
+#include <IceE/Current.h>
+#include <IceE/BasicStream.h>
+#include <IceE/Object.h>
+
+void
+IceE::__write(::IceEInternal::BasicStream* __os, ::IceE::OperationMode v)
+{
+ __os->write(static_cast< ::IceE::Byte>(v));
+}
+
+void
+IceE::__read(::IceEInternal::BasicStream* __is, ::IceE::OperationMode& v)
+{
+ ::IceE::Byte val;
+ __is->read(val);
+ v = static_cast< ::IceE::OperationMode>(val);
+}
+
+bool
+IceE::Current::operator==(const Current& __rhs) const
+{
+ return !operator!=(__rhs);
+}
+
+bool
+IceE::Current::operator!=(const Current& __rhs) const
+{
+ if(this == &__rhs)
+ {
+ return false;
+ }
+ if(adapter != __rhs.adapter)
+ {
+ return true;
+ }
+ if(con != __rhs.con)
+ {
+ return true;
+ }
+ if(id != __rhs.id)
+ {
+ return true;
+ }
+ if(facet != __rhs.facet)
+ {
+ return true;
+ }
+ if(operation != __rhs.operation)
+ {
+ return true;
+ }
+ if(mode != __rhs.mode)
+ {
+ return true;
+ }
+ if(ctx != __rhs.ctx)
+ {
+ return true;
+ }
+ return false;
+}
+
+bool
+IceE::Current::operator<(const Current& __rhs) const
+{
+ if(this == &__rhs)
+ {
+ return false;
+ }
+ if(adapter < __rhs.adapter)
+ {
+ return true;
+ }
+ else if(__rhs.adapter < adapter)
+ {
+ return false;
+ }
+ if(con < __rhs.con)
+ {
+ return true;
+ }
+ else if(__rhs.con < con)
+ {
+ return false;
+ }
+ if(id < __rhs.id)
+ {
+ return true;
+ }
+ else if(__rhs.id < id)
+ {
+ return false;
+ }
+ if(facet < __rhs.facet)
+ {
+ return true;
+ }
+ else if(__rhs.facet < facet)
+ {
+ return false;
+ }
+ if(operation < __rhs.operation)
+ {
+ return true;
+ }
+ else if(__rhs.operation < operation)
+ {
+ return false;
+ }
+ if(mode < __rhs.mode)
+ {
+ return true;
+ }
+ else if(__rhs.mode < mode)
+ {
+ return false;
+ }
+ if(ctx < __rhs.ctx)
+ {
+ return true;
+ }
+ else if(__rhs.ctx < ctx)
+ {
+ return false;
+ }
+ return false;
+}