Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
OOMacDebugger.h
Go to the documentation of this file.
1/*
2
3OOMacDebugger.h
4
5Mac OS X/Appkit based implementation of Oolite debugging interface.
6
7This mostly acts as a dispatcher. Currently it dispatches everything to
8OOJavaScriptConsoleController, but that could changed as non-JavaScript
9debugging facilities are added.
10
11
12Oolite Debug Bundle
13
14Copyright (C) 2007 Jens Ayton
15
16Permission is hereby granted, free of charge, to any person obtaining a copy
17of this software and associated documentation files (the "Software"), to deal
18in the Software without restriction, including without limitation the rights
19to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20copies of the Software, and to permit persons to whom the Software is
21furnished to do so, subject to the following conditions:
22
23The above copyright notice and this permission notice shall be included in all
24copies or substantial portions of the Software.
25
26THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32SOFTWARE.
33
34*/
35
36#import <Cocoa/Cocoa.h>
38
40
41
42@interface OOMacDebugger: NSObject <OODebuggerInterface>
43{
44@private
49 // "Local" copy of configuration. This distinction is of little importance in the current implementation, but will be useful if moving to a separate process.
50 NSMutableDictionary *_configuration;
52
53- (id) initWithController:(OOJavaScriptConsoleController *)controller;
54
55- (void)performConsoleCommand:(NSString *)command;
56
57// *** Configuration management.
58- (id)configurationValueForKey:(NSString *)key;
59- (id)configurationValueForKey:(NSString *)key class:(Class)class defaultValue:(id)value;
60- (long long)configurationIntValueForKey:(NSString *)key defaultValue:(long long)value;
61- (BOOL)configurationBoolValueForKey:(NSString *)key;
62
63- (void)setConfigurationValue:(id)value forKey:(NSString *)key;
64
65- (NSArray *)configurationKeys;
66
67@end
NSMutableDictionary * _configuration
OODebugMonitor * _monitor
OOJavaScriptConsoleController * _jsConsoleController
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque