Cinder  0.9.1
Public Member Functions | List of all members
cinder::JsonTree::ParseOptions Class Reference

#include <Json.h>

Public Member Functions

 ParseOptions ()
 
ParseOptionsignoreErrors (bool ignore=true)
 
bool getIgnoreErrors () const
 
ParseOptionsallowComments (bool allow=true)
 
bool getAllowComments () const
 

Detailed Description

Options for JSON parsing. Passed to the JsonTree constructor.

Constructor & Destructor Documentation

cinder::JsonTree::ParseOptions::ParseOptions ( )

Default options. Enables parsing errors.

Member Function Documentation

JsonTree::ParseOptions & cinder::JsonTree::ParseOptions::ignoreErrors ( bool  ignore = true)

Sets if JSON parse errors are ignored. Default false.

bool cinder::JsonTree::ParseOptions::getIgnoreErrors ( ) const

Returns whether JSON parse errors are ignored.

JsonTree::ParseOptions & cinder::JsonTree::ParseOptions::allowComments ( bool  allow = true)

Sets if comments are allowed. Default true.

bool cinder::JsonTree::ParseOptions::getAllowComments ( ) const

Returns whether comments are allowed or not.


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