blob: 1b8c4da4e319a10036268b9d6c3d244bf01b9345 (
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
26
27
28
|
// **********************************************************************
//
// Copyright (c) 2003-2007 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.
//
// **********************************************************************
#include <Ice/Stream.h>
using namespace std;
using namespace Ice;
using namespace IceInternal;
IceUtil::Shared* IceInternal::upCast(InputStream* p) { return p; }
IceUtil::Shared* IceInternal::upCast(OutputStream* p) { return p; }
Ice::ReadObjectCallbackI::ReadObjectCallbackI(PatchFunc func, void* arg) :
_func(func), _arg(arg)
{
}
void
Ice::ReadObjectCallbackI::invoke(const ::Ice::ObjectPtr& p)
{
_func(_arg, const_cast< ::Ice::ObjectPtr& >(p));
}
|