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

#include <Json.h>

Public Member Functions

 WriteOptions ()
 
WriteOptionscreateDocument (bool createDocument=true)
 
WriteOptionsindented (bool indent=true)
 
bool getCreateDocument () const
 
bool getIndented () const
 

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: