Remove helpindex now that it is generated during build. Add a bit to the help about...
[enjoyable.git] / NJMapping.h
1 //
2 // NJMapping.h
3 // Enjoy
4 //
5 // Created by Sam McCall on 4/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
7 //
8
9 @class NJOutput;
10 @class NJInput;
11
12 @interface NJMapping : NSObject
13
14 @property (nonatomic, copy) NSString *name;
15 @property (nonatomic, readonly) NSMutableDictionary *entries;
16
17 - (id)initWithName:(NSString *)name;
18 - (NJOutput *)objectForKeyedSubscript:(NJInput *)input;
19 - (void)setObject:(NJOutput *)output forKeyedSubscript:(NJInput *)input;
20 - (NSDictionary *)serialize;
21 - (BOOL)writeToURL:(NSURL *)url error:(NSError **)error;
22
23 + (id)mappingWithContentsOfURL:(NSURL *)url mappings:(NSArray *)mappings error:(NSError **)error;
24
25 @end