JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::JSON::FormatOptions Class Reference

Allows formatting var objects as JSON with various configurable options. More...

#include "juce_JSON.h"

Public Member Functions

FormatOptions withSpacing (Spacing x) const
 Returns a copy of this Formatter with the specified spacing.
 
FormatOptions withMaxDecimalPlaces (int x) const
 Returns a copy of this Formatter with the specified maximum number of decimal places.
 
FormatOptions withIndentLevel (int x) const
 Returns a copy of this Formatter with the specified indent level.
 
Spacing getSpacing () const
 Returns the spacing used by this Formatter.
 
int getMaxDecimalPlaces () const
 Returns the maximum number of decimal places used by this Formatter.
 
int getIndentLevel () const
 Returns the indent level of this Formatter.
 

Detailed Description

Allows formatting var objects as JSON with various configurable options.

Definition at line 101 of file juce_JSON.h.

Member Function Documentation

◆ getIndentLevel()

int juce::JSON::FormatOptions::getIndentLevel ( ) const

Returns the indent level of this Formatter.

Definition at line 124 of file juce_JSON.h.

◆ getMaxDecimalPlaces()

int juce::JSON::FormatOptions::getMaxDecimalPlaces ( ) const

Returns the maximum number of decimal places used by this Formatter.

Definition at line 121 of file juce_JSON.h.

◆ getSpacing()

Spacing juce::JSON::FormatOptions::getSpacing ( ) const

Returns the spacing used by this Formatter.

Definition at line 118 of file juce_JSON.h.

◆ withIndentLevel()

FormatOptions juce::JSON::FormatOptions::withIndentLevel ( int  x) const

Returns a copy of this Formatter with the specified indent level.

This should only be necessary when serialising multiline nested types.

Definition at line 115 of file juce_JSON.h.

◆ withMaxDecimalPlaces()

FormatOptions juce::JSON::FormatOptions::withMaxDecimalPlaces ( int  x) const

Returns a copy of this Formatter with the specified maximum number of decimal places.

This option determines the precision of floating point numbers in scientific notation.

Definition at line 110 of file juce_JSON.h.

◆ withSpacing()

FormatOptions juce::JSON::FormatOptions::withSpacing ( Spacing  x) const

Returns a copy of this Formatter with the specified spacing.

Definition at line 105 of file juce_JSON.h.


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