Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
cinder::JsonTree::WriteOptions Class Reference

Options for JSON writing. Passed to the write method. More...

#include <Json.h>

Public Member Functions

 WriteOptions ()
 Default options. Indents. Does not create root document. More...
 
WriteOptionscreateDocument (bool createDocument=true)
 Sets whether JSON is wrapped in a 'document root' object. Default false. More...
 
WriteOptionsindented (bool indent=true)
 Sets whether JSON string is indented. Default true. More...
 
bool getCreateDocument () const
 whether JSON is wrapped in a 'document root' object. More...
 
bool getIndented () const
 Returns whether JSON string is indented. More...
 

Detailed Description

Options for JSON writing. Passed to the write method.

Constructor & Destructor Documentation

cinder::JsonTree::WriteOptions::WriteOptions ( )

Default options. Indents. Does not create root document.

Member Function Documentation

JsonTree::WriteOptions & cinder::JsonTree::WriteOptions::createDocument ( bool  createDocument = true)

Sets whether JSON is wrapped in a 'document root' object. Default false.

JsonTree::WriteOptions & cinder::JsonTree::WriteOptions::indented ( bool  indent = true)

Sets whether JSON string is indented. Default true.

bool cinder::JsonTree::WriteOptions::getCreateDocument ( ) const

whether JSON is wrapped in a 'document root' object.

bool cinder::JsonTree::WriteOptions::getIndented ( ) const

Returns whether JSON string is indented.


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