Annotation of OpenXM/src/cfep/MyDecoder.h, Revision 1.2
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:
1.2 ! takayama 9: // channel allocation
! 10: // 0 error
! 11: // 1 OpenGL redraw
! 12: // 2 OpenGL init
! 13: // 3~9 OpenGL reserved
! 14: // 10 png
! 15:
1.1 takayama 16: #import <Cocoa/Cocoa.h>
17: #define OX_PACKET_START '{'
18: #define OX_PACKET_END '}'
19: #define OX_DATA_CMO_DATA_START '<'
20: #define OX_DATA_CMO_DATA_END_SIZE ' '
21: #define OX_DATA_CMO_DATA_END '>'
22: #define MYDECODER_MAX 30000
23:
24: @interface MyDecoder : NSObject {
25: int channel;
26: int size;
27: NSMutableData *data;
28:
29: int state;
30: }
31:
32: -(void) dealloc;
33: -(NSString *)myDecoder: (int) c from: (id) myDocument;
34: -(int) getChannel;
35: -(void) reset;
36: -(void) reportError: (NSString *)msg to: (id) myDocument;
37:
38: @end
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>