Yini  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
DBJsonBase Class Reference

Common base class for parsing & writing. More...

#import <DBJsonBase.h>

Inheritance diagram for DBJsonBase:
DBJSON DBJsonParser DBJsonWriter

Public Member Functions

(void) - addErrorWithCode:description:
(void) - clearErrorTrace

Protected Attributes

NSMutableArray * errorTrace
NSUInteger depth

Properties

NSUInteger maxDepth
 The maximum recursing depth.
NSArray * errorTrace
 Return an error trace, or nil if there was no errors.

Detailed Description

Common base class for parsing & writing.

This class contains the common error-handling code and option between the parser/writer.

Member Function Documentation

- (void) addErrorWithCode: (NSUInteger)  code
description: (NSString *)  str 
- (void) clearErrorTrace

Member Data Documentation

- (NSUInteger) depth
protected
- (NSMutableArray*) errorTrace
protected

Property Documentation

- (NSArray*) errorTrace
readatomiccopy

Return an error trace, or nil if there was no errors.

Note that this method returns the trace of the last method that failed. You need to check the return value of the call you're making to figure out if the call actually failed, before you know call this method.

- (NSUInteger) maxDepth
readwriteatomic

The maximum recursing depth.

Defaults to 512. If the input is nested deeper than this the input will be deemed to be malicious and the parser returns nil, signalling an error. ("Nested too deep".) You can turn off this security feature by setting the maxDepth value to 0.


The documentation for this class was generated from the following file: