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 NSMutableAttributedString
*buffer
;
17 NSDictionary
*outputTag
,*errorTag
,*promptTag
;
19 NSMutableArray
*deviceList
;
27 + (RInterpreter
*)sharedInterpreter
;
31 #pragma mark Configuration
32 - (void)setArgv
:(char**)argv argc
:(int)argc
;
34 - (void)setDelegate
:(id
)delegate
;
37 - (void)setBufferSize
:(long)bufferSize
;
40 - (void)setAllowTerminal
:(BOOL
)aBool
;
41 - (BOOL
)allowTerminal
;
43 - (void)setVend
:(BOOL
)aBool
;
46 - (void)setHomePath
:(NSString
*)aPath
;
47 - (NSString
*)homePath
;
49 - (void)setLocaleIdentifier
:(NSString
*)aLocale
;
50 - (NSString
*)localeIdentifier
;
53 #pragma mark Interaction Protocol
54 - (NSString
*)serverName
;
57 - (void)evaluateInput
:(NSString
*)aString
;
60 #pragma mark Moving Data Between Servers
62 - (NSData
*)serializeObjectWithName
:(NSString
*)anName error
:(NSError
**)anError
;
63 - (BOOL
)deserializeObject
:(NSData
*)anObject withName
:(NSString
*)aName replace
:(BOOL
)shouldReplace error
:(NSError
**)error
;
64 - (void)copyObjectWithName
:(NSString
*)anObject toServer
:(NSString
*)aServer error
:(NSError
**)anError
;