summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/OperationMode.cpp
blob: 5df8f49b40ba8d4022b09acf1ab9c704f4bb93b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// **********************************************************************
//
// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
//
// This copy of Ice-E is licensed to you under the terms described in the
// ICEE_LICENSE file included in this distribution.
//
// **********************************************************************

#include <IceE/OperationMode.h>
#include <IceE/BasicStream.h>

void
Ice::__write(::IceInternal::BasicStream* __os, ::Ice::OperationMode v)
{
    __os->write(static_cast< ::Ice::Byte>(v));
}

void
Ice::__read(::IceInternal::BasicStream* __is, ::Ice::OperationMode& v)
{
    ::Ice::Byte val;
    __is->read(val);
    v = static_cast< ::Ice::OperationMode>(val);
}