Big rename part 2: 'config' etc. to 'mapping.
[enjoyable.git] / NJMapping.h
diff --git a/NJMapping.h b/NJMapping.h
new file mode 100644 (file)
index 0000000..a4068ff
--- /dev/null
@@ -0,0 +1,22 @@
+//
+//  NJMapping.h
+//  Enjoy
+//
+//  Created by Sam McCall on 4/05/09.
+//  Copyright 2009 University of Otago. All rights reserved.
+//
+
+@class Target;
+@class NJInput;
+
+@interface NJMapping : NSObject
+
+@property (nonatomic, copy) NSString *name;
+@property (nonatomic, readonly) NSMutableDictionary *entries;
+
+- (id)initWithName:(NSString *)name;
+- (Target *)objectForKeyedSubscript:(NJInput *)input;
+- (void)setObject:(Target *)target forKeyedSubscript:(NJInput *)input;
+- (NSDictionary *)serialize;
+
+@end