/vendor/TouchJSON/Experimental/CFilteringJSONSerializer.h
C Header | 25 lines | 12 code | 6 blank | 7 comment | 0 complexity | 2e2048034c63b9b3c04c4c5513d8e9ce MD5 | raw file
1// 2// CFilteringJSONSerializer.h 3// CouchNotes 4// 5// Created by Jonathan Wight on 06/20/10. 6// Copyright 2010 toxicsoftware.com. All rights reserved. 7// 8 9#import "CJSONSerializer.h" 10 11typedef NSString *(^JSONConversionTest)(id inObject); 12typedef id (^JSONConversionConverter)(id inObject); // TODO replace with value transformers. 13 14@interface CFilteringJSONSerializer : CJSONSerializer { 15 NSSet *tests; 16 NSDictionary *convertersByName; 17} 18 19@property (readwrite, nonatomic, retain) NSSet *tests; 20@property (readwrite, nonatomic, retain) NSDictionary *convertersByName; 21 22- (void)addTest:(JSONConversionTest)inTest; 23- (void)addConverter:(JSONConversionConverter)inConverter forName:(NSString *)inName; 24 25@end