[BACK]Return to MyDecoder.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / cfep

File: [local] / OpenXM / src / cfep / MyDecoder.h (download)

Revision 1.2, Mon Mar 6 08:55:31 2006 UTC (18 years, 2 months ago) by takayama
Branch: MAIN
CVS Tags: R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, HEAD, DEB_REL_1_2_3-9
Changes since 1.1: +7 -0 lines

In the cfep pretty printmode, each result is typeset by tex and displayed
on the cfep window.
cf.
print_png_form2() (asir-contrib).
[self setPrettyPrint: sender] (cfep).
!cfep_png; (ox_texmacs).

//
//  MyDecoder.h
//  cfep
//
//  Created by Nobuki Takayama on 06/01/29.
//  Copyright 2006 OpenXM.org. All rights reserved.
//

// channel allocation
//  0  error
//  1  OpenGL redraw
//  2  OpenGL init
//  3~9  OpenGL reserved
// 10  png   

#import <Cocoa/Cocoa.h>
#define OX_PACKET_START '{'
#define OX_PACKET_END   '}'
#define OX_DATA_CMO_DATA_START '<' 
#define OX_DATA_CMO_DATA_END_SIZE ' '
#define OX_DATA_CMO_DATA_END   '>'
#define MYDECODER_MAX  30000

@interface MyDecoder : NSObject {
  int channel;
  int size;
  NSMutableData *data;
  
  int state;
}

-(void) dealloc;
-(NSString *)myDecoder: (int) c from: (id) myDocument;
-(int) getChannel;
-(void) reset;
-(void) reportError: (NSString *)msg to: (id) myDocument;

@end