summaryrefslogtreecommitdiff
path: root/objective-c/src/Ice/StreamI.h
blob: 564781c9f8d0841fcd0322264d0c530e41702857 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
// **********************************************************************
//
// Copyright (c) 2003-2015 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.
//
// **********************************************************************

#import <objc/Ice/Stream.h>
#import <objc/Ice/LocalObject.h>

#include <Ice/InputStream.h>
#include <Ice/OutputStream.h>

@protocol ICECommunicator;

@interface ICEInputStream : NSObject<ICEInputStream>
{
    Ice::InputStream* is_;
    Ice::InputStream stream_;
    NSDictionary* prefixTable_;
    NSData* data_;
}
+(Ice::Object*)createObjectReader:(ICEObject*)obj;
-initWithCxxCommunicator:(Ice::Communicator*)com data:(const std::pair<const Byte*, const Byte*>&)data;
-initWithCommunicator:(id<ICECommunicator>)com data:(NSData*)data encoding:(ICEEncodingVersion*)e;
-(Ice::InputStream*) is;
@end

@interface ICEOutputStream : NSObject<ICEOutputStream>
{
    Ice::OutputStream* os_;
    Ice::OutputStream stream_;
    std::map<ICEObject*, Ice::ObjectPtr>* objectWriters_;
}
-initWithCxxCommunicator:(Ice::Communicator*)communicator;
-initWithCxxStream:(Ice::OutputStream*)stream;
-initWithCommunicator:(id<ICECommunicator>)com encoding:(ICEEncodingVersion*)e;
-(Ice::OutputStream*) os;
@end