Support magic @Application token for automatic mapping names. Fall back to the bundle...
[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
22 @end