Annotation of OpenXM/src/cfep/MyDecoder.h, Revision 1.1.1.1
1.1 takayama 1: //
2: // MyDecoder.h
3: // cfep
4: //
5: // Created by Nobuki Takayama on 06/01/29.
6: // Copyright 2006 OpenXM.org. All rights reserved.
7: //
8:
9: #import <Cocoa/Cocoa.h>
10: #define OX_PACKET_START '{'
11: #define OX_PACKET_END '}'
12: #define OX_DATA_CMO_DATA_START '<'
13: #define OX_DATA_CMO_DATA_END_SIZE ' '
14: #define OX_DATA_CMO_DATA_END '>'
15: #define MYDECODER_MAX 30000
16:
17: @interface MyDecoder : NSObject {
18: int channel;
19: int size;
20: NSMutableData *data;
21:
22: int state;
23: }
24:
25: -(void) dealloc;
26: -(NSString *)myDecoder: (int) c from: (id) myDocument;
27: -(int) getChannel;
28: -(void) reset;
29: -(void) reportError: (NSString *)msg to: (id) myDocument;
30:
31: @end
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>