1 #import <Cocoa/Cocoa.h>
4 @interface RInterpreter
: NSObject
{
7 unsigned char *readerBuffer
,*readerTemp
;
8 int readerBufferLength
,readerBufferUsed
;
9 int readerAddToHistory
;
13 BOOL configured
,suppressOutput
,allowTerminal
,vend
,waiting
;
16 int (*ptr_R_OldReadConsole
)(char*,unsigned char*,int,int);
17 void (*ptr_R_OldWriteConsole
)(char*,int);
18 void (*ptr_R_OldFlushConsole
)();
19 int (*ptr_R_OldShowFiles
)(int,char**,char**,char*,int,char*);
22 NSMutableAttributedString
*buffer
;
24 NSMutableArray
*deviceList
;
32 + (RInterpreter
*)sharedInterpreter
;
36 #pragma mark Configuration
37 - (void)setArgv
:(char**)argv argc
:(int)argc
;
39 - (void)setDelegate
:(id
)delegate
;
42 - (void)setBufferSize
:(long)bufferSize
;
45 - (void)setAllowTerminal
:(BOOL
)aBool
;
46 - (BOOL
)allowTerminal
;
48 - (void)setVend
:(BOOL
)aBool
;
51 - (void)setHomePath
:(NSString
*)aPath
;
52 - (NSString
*)homePath
;
54 - (void)setLocaleIdentifier
:(NSString
*)aLocale
;
55 - (NSString
*)localeIdentifier
;
58 #pragma mark Interaction Protocol
59 - (NSString
*)serverName
;
62 - (void)evaluateInput
:(NSString
*)aString
;
65 #pragma mark Moving Data Between Servers
67 - (NSData
*)serializeObjectWithName
:(NSString
*)anName error
:(NSError
**)anError
;
68 - (BOOL
)deserializeObject
:(NSData
*)anObject withName
:(NSString
*)aName replace
:(BOOL
)shouldReplace error
:(NSError
**)error
;
69 - (void)copyObjectWithName
:(NSString
*)anObject toServer
:(NSString
*)aServer error
:(NSError
**)anError
;