-
Notifications
You must be signed in to change notification settings - Fork 55
/
Config.h
28 lines (22 loc) · 676 Bytes
/
Config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// Config.h
// Enjoy
//
// Created by Sam McCall on 4/05/09.
// Copyright 2009 University of Otago. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class Target;
@interface Config : NSObject {
NSString *name;
NSMutableDictionary *entries;
}
@property(readwrite, copy) NSString* name;
@property(readonly) NSMutableDictionary* entries;
-(void) setTarget:(Target*)target forAction:(id)jsa;
-(Target*) getTargetForAction: (id) jsa;
-(void) saveJSONTo: (NSURL*)filename;
// Load only the name from the JSON file (for loading 1st pass)
-(Config*) loadSkelFromJSON: (NSData*)jsonData;
-(Config*) loadFromJSON: (NSData*)jsonData withConfigList:(NSArray*)configs;
@end