/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

  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. #import "CJSONSerializer.h"
  9. typedef NSString *(^JSONConversionTest)(id inObject);
  10. typedef id (^JSONConversionConverter)(id inObject); // TODO replace with value transformers.
  11. @interface CFilteringJSONSerializer : CJSONSerializer {
  12. NSSet *tests;
  13. NSDictionary *convertersByName;
  14. }
  15. @property (readwrite, nonatomic, retain) NSSet *tests;
  16. @property (readwrite, nonatomic, retain) NSDictionary *convertersByName;
  17. - (void)addTest:(JSONConversionTest)inTest;
  18. - (void)addConverter:(JSONConversionConverter)inConverter forName:(NSString *)inName;
  19. @end