/vendor/TouchJSON/Experimental/CFilteringJSONSerializer.h
http://github.com/tgunr/passengerpane · C Header · 25 lines · 12 code · 6 blank · 7 comment · 0 complexity · 2e2048034c63b9b3c04c4c5513d8e9ce MD5 · raw file
- //
- // CFilteringJSONSerializer.h
- // CouchNotes
- //
- // Created by Jonathan Wight on 06/20/10.
- // Copyright 2010 toxicsoftware.com. All rights reserved.
- //
- #import "CJSONSerializer.h"
- typedef NSString *(^JSONConversionTest)(id inObject);
- typedef id (^JSONConversionConverter)(id inObject); // TODO replace with value transformers.
- @interface CFilteringJSONSerializer : CJSONSerializer {
- NSSet *tests;
- NSDictionary *convertersByName;
- }
- @property (readwrite, nonatomic, retain) NSSet *tests;
- @property (readwrite, nonatomic, retain) NSDictionary *convertersByName;
- - (void)addTest:(JSONConversionTest)inTest;
- - (void)addConverter:(JSONConversionConverter)inConverter forName:(NSString *)inName;
- @end