Files
rippled/classJson_1_1StyledStreamWriter.html
2025-08-19 09:49:50 -07:00

666 lines
36 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: Json::StyledStreamWriter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceJson.html">Json</a></li><li class="navelem"><a class="el" href="classJson_1_1StyledStreamWriter.html">StyledStreamWriter</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classJson_1_1StyledStreamWriter-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">Json::StyledStreamWriter Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Writes a <a class="el" href="classJson_1_1Value.html" title="Represents a JSON value.">Value</a> in <a href="http://www.json.org">JSON</a> format in a human friendly way, to a stream rather than to a string.
<a href="classJson_1_1StyledStreamWriter.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="json__writer_8h_source.html">json_writer.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for Json::StyledStreamWriter:</div>
<div class="dyncontent">
<div class="center"><img src="classJson_1_1StyledStreamWriter__coll__graph.png" border="0" usemap="#aJson_1_1StyledStreamWriter_coll__map" alt="Collaboration graph"/></div>
<map name="aJson_1_1StyledStreamWriter_coll__map" id="aJson_1_1StyledStreamWriter_coll__map">
<area shape="rect" title="Writes a Value in JSON format in a human friendly way, to a stream rather than to a string." alt="" coords="115,364,301,389"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="115,274,301,299"/>
<area shape="poly" title=" " alt="" coords="211,313,211,364,205,364,205,313"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="57,177,143,202"/>
<area shape="poly" title=" " alt="" coords="68,212,42,230,20,252,9,276,9,288,14,300,35,322,60,339,88,352,117,361,116,366,86,357,57,344,31,326,10,303,4,289,3,275,16,249,39,226,65,207"/>
<area shape="poly" title=" " alt="" coords="125,209,196,272,193,276,122,213"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="31,80,169,120"/>
<area shape="poly" title=" " alt="" coords="103,134,103,176,97,176,97,134"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html" title=" " alt="" coords="325,274,429,299"/>
<area shape="poly" title=" " alt="" coords="353,309,300,342,243,366,241,361,297,338,350,305"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html" title=" " alt="" coords="305,169,450,209"/>
<area shape="poly" title=" " alt="" coords="380,223,380,274,375,274,375,223"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/io/basic_ios.html" title=" " alt="" coords="292,87,463,113"/>
<area shape="poly" title=" " alt="" coords="380,127,380,169,375,169,375,127"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/io/ios_base.html" title=" " alt="" coords="324,5,431,31"/>
<area shape="poly" title=" " alt="" coords="380,44,380,87,375,87,375,44"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae87567a08de865b6dc84d7218a3001df" id="r_ae87567a08de865b6dc84d7218a3001df"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#ae87567a08de865b6dc84d7218a3001df">StyledStreamWriter</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> indentation=&quot;\t&quot;)</td></tr>
<tr class="separator:ae87567a08de865b6dc84d7218a3001df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17444a59f617970279714e97b0ddfa46" id="r_a17444a59f617970279714e97b0ddfa46"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#a17444a59f617970279714e97b0ddfa46">~StyledStreamWriter</a> ()</td></tr>
<tr class="separator:a17444a59f617970279714e97b0ddfa46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26689edbfb5b9fe83989eaa7deea9b94" id="r_a26689edbfb5b9fe83989eaa7deea9b94"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#a26689edbfb5b9fe83989eaa7deea9b94">write</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a> &amp;out, <a class="el" href="classJson_1_1Value.html">Value</a> const &amp;root)</td></tr>
<tr class="memdesc:a26689edbfb5b9fe83989eaa7deea9b94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serialize a <a class="el" href="classJson_1_1Value.html" title="Represents a JSON value.">Value</a> in <a href="http://www.json.org">JSON</a> format. <br /></td></tr>
<tr class="separator:a26689edbfb5b9fe83989eaa7deea9b94"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-types" name="pri-types"></a>
Private Types</h2></td></tr>
<tr class="memitem:afacf79851509cdffc99dad4facb7b5e6" id="r_afacf79851509cdffc99dad4facb7b5e6"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#afacf79851509cdffc99dad4facb7b5e6">ChildValues</a> = <a class="elRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &gt;</td></tr>
<tr class="separator:afacf79851509cdffc99dad4facb7b5e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a5ff904b6430ea9661878a691f2c60fd7" id="r_a5ff904b6430ea9661878a691f2c60fd7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#a5ff904b6430ea9661878a691f2c60fd7">writeValue</a> (<a class="el" href="classJson_1_1Value.html">Value</a> const &amp;value)</td></tr>
<tr class="separator:a5ff904b6430ea9661878a691f2c60fd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9da2ceb0ce779977e004ae98811486c6" id="r_a9da2ceb0ce779977e004ae98811486c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#a9da2ceb0ce779977e004ae98811486c6">writeArrayValue</a> (<a class="el" href="classJson_1_1Value.html">Value</a> const &amp;value)</td></tr>
<tr class="separator:a9da2ceb0ce779977e004ae98811486c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57a01e64802b997b174107d782346b47" id="r_a57a01e64802b997b174107d782346b47"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#a57a01e64802b997b174107d782346b47">isMultineArray</a> (<a class="el" href="classJson_1_1Value.html">Value</a> const &amp;value)</td></tr>
<tr class="separator:a57a01e64802b997b174107d782346b47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af90ae5d54d7f96c311b83772e9e6ee5c" id="r_af90ae5d54d7f96c311b83772e9e6ee5c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#af90ae5d54d7f96c311b83772e9e6ee5c">pushValue</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;value)</td></tr>
<tr class="separator:af90ae5d54d7f96c311b83772e9e6ee5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a52fa5b406f1580a61dde3b5638e76d" id="r_a5a52fa5b406f1580a61dde3b5638e76d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#a5a52fa5b406f1580a61dde3b5638e76d">writeIndent</a> ()</td></tr>
<tr class="separator:a5a52fa5b406f1580a61dde3b5638e76d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5499b8750176ac05fa3c2eb3446f30c7" id="r_a5499b8750176ac05fa3c2eb3446f30c7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#a5499b8750176ac05fa3c2eb3446f30c7">writeWithIndent</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;value)</td></tr>
<tr class="separator:a5499b8750176ac05fa3c2eb3446f30c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab49409578422aa73b060e3492dd6c72a" id="r_ab49409578422aa73b060e3492dd6c72a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#ab49409578422aa73b060e3492dd6c72a">indent</a> ()</td></tr>
<tr class="separator:ab49409578422aa73b060e3492dd6c72a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74d8fb9beecd29759d7b79f430386358" id="r_a74d8fb9beecd29759d7b79f430386358"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#a74d8fb9beecd29759d7b79f430386358">unindent</a> ()</td></tr>
<tr class="separator:a74d8fb9beecd29759d7b79f430386358"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:aafd62e00a401df73fcacb2e410114b3d" id="r_aafd62e00a401df73fcacb2e410114b3d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classJson_1_1StyledStreamWriter.html#afacf79851509cdffc99dad4facb7b5e6">ChildValues</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#aafd62e00a401df73fcacb2e410114b3d">childValues_</a></td></tr>
<tr class="separator:aafd62e00a401df73fcacb2e410114b3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6a4be02f654d9105af8fa560b676967" id="r_aa6a4be02f654d9105af8fa560b676967"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#aa6a4be02f654d9105af8fa560b676967">document_</a></td></tr>
<tr class="separator:aa6a4be02f654d9105af8fa560b676967"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9ebd4487e7f69bd1074e6ce29c7cf02" id="r_af9ebd4487e7f69bd1074e6ce29c7cf02"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#af9ebd4487e7f69bd1074e6ce29c7cf02">indentString_</a></td></tr>
<tr class="separator:af9ebd4487e7f69bd1074e6ce29c7cf02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67fdaa6758885f082b6a7ede52b0ab91" id="r_a67fdaa6758885f082b6a7ede52b0ab91"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#a67fdaa6758885f082b6a7ede52b0ab91">rightMargin_</a></td></tr>
<tr class="separator:a67fdaa6758885f082b6a7ede52b0ab91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58dc0eaf85c58b83d19d6bba8eead27d" id="r_a58dc0eaf85c58b83d19d6bba8eead27d"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#a58dc0eaf85c58b83d19d6bba8eead27d">indentation_</a></td></tr>
<tr class="separator:a58dc0eaf85c58b83d19d6bba8eead27d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e4bb7fc223b2652b72b523b1ce414fa" id="r_a4e4bb7fc223b2652b72b523b1ce414fa"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJson_1_1StyledStreamWriter.html#a4e4bb7fc223b2652b72b523b1ce414fa">addChildValues_</a></td></tr>
<tr class="separator:a4e4bb7fc223b2652b72b523b1ce414fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Writes a <a class="el" href="classJson_1_1Value.html" title="Represents a JSON value.">Value</a> in <a href="http://www.json.org">JSON</a> format in a human friendly way, to a stream rather than to a string. </p>
<p>The rules for line break and indent are as follow:</p><ul>
<li><a class="el" href="classJson_1_1Object.html" title="Represents a JSON object being written to a Writer.">Object</a> value:<ul>
<li>if empty then print {} without indent and line break</li>
<li>if not empty the print '{', line break &amp; indent, print one value per line and then unindent and line break and print '}'.</li>
</ul>
</li>
<li><a class="el" href="classJson_1_1Array.html" title="Represents a JSON array being written to a Writer.">Array</a> value:<ul>
<li>if empty then print [] without indent and line break</li>
<li>if the array contains no object value, empty array or some other value types, and all the values fit on one lines, then print the array on a single line.</li>
<li>otherwise, it the values do not fit on one line, or the array contains object or non empty array, then print one value per line.</li>
</ul>
</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">indentation</td><td>Each level will be indented by this amount extra. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classJson_1_1Reader.html" title="Unserialize a JSON document into a Value.">Reader</a>, <a class="el" href="classJson_1_1Value.html" title="Represents a JSON value.">Value</a> </dd></dl>
<p class="definition">Definition at line <a class="el" href="json__writer_8h_source.html#l00155">155</a> of file <a class="el" href="json__writer_8h_source.html">json_writer.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="afacf79851509cdffc99dad4facb7b5e6" name="afacf79851509cdffc99dad4facb7b5e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afacf79851509cdffc99dad4facb7b5e6">&#9670;&#160;</a></span>ChildValues</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classJson_1_1StyledStreamWriter.html#afacf79851509cdffc99dad4facb7b5e6">Json::StyledStreamWriter::ChildValues</a> = <a class="elRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&gt;</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8h_source.html#l00191">191</a> of file <a class="el" href="json__writer_8h_source.html">json_writer.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae87567a08de865b6dc84d7218a3001df" name="ae87567a08de865b6dc84d7218a3001df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae87567a08de865b6dc84d7218a3001df">&#9670;&#160;</a></span>StyledStreamWriter()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Json::StyledStreamWriter::StyledStreamWriter </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&#160;</td>
<td class="paramname"><em>indentation</em> = <code>&quot;\t&quot;</code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8cpp_source.html#l00504">504</a> of file <a class="el" href="json__writer_8cpp_source.html">json_writer.cpp</a>.</p>
</div>
</div>
<a id="a17444a59f617970279714e97b0ddfa46" name="a17444a59f617970279714e97b0ddfa46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17444a59f617970279714e97b0ddfa46">&#9670;&#160;</a></span>~StyledStreamWriter()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Json::StyledStreamWriter::~StyledStreamWriter </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8h_source.html#l00159">159</a> of file <a class="el" href="json__writer_8h_source.html">json_writer.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a26689edbfb5b9fe83989eaa7deea9b94" name="a26689edbfb5b9fe83989eaa7deea9b94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26689edbfb5b9fe83989eaa7deea9b94">&#9670;&#160;</a></span>write()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Json::StyledStreamWriter::write </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a> &amp;&#160;</td>
<td class="paramname"><em>out</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classJson_1_1Value.html">Value</a> const &amp;&#160;</td>
<td class="paramname"><em>root</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Serialize a <a class="el" href="classJson_1_1Value.html" title="Represents a JSON value.">Value</a> in <a href="http://www.json.org">JSON</a> format. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">out</td><td>Stream to write to. (Can be ostringstream, e.g.) </td></tr>
<tr><td class="paramname">root</td><td><a class="el" href="classJson_1_1Value.html" title="Represents a JSON value.">Value</a> to serialize. </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>There is no point in deriving from <a class="el" href="classJson_1_1Writer.html" title="Writer implements an O(1)-space, O(1)-granular output JSON writer.">Writer</a>, since <a class="el" href="classJson_1_1StyledStreamWriter.html#a26689edbfb5b9fe83989eaa7deea9b94" title="Serialize a Value in JSON format.">write()</a> should not return a value. </dd></dl>
<p class="definition">Definition at line <a class="el" href="json__writer_8cpp_source.html#l00510">510</a> of file <a class="el" href="json__writer_8cpp_source.html">json_writer.cpp</a>.</p>
</div>
</div>
<a id="a5ff904b6430ea9661878a691f2c60fd7" name="a5ff904b6430ea9661878a691f2c60fd7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ff904b6430ea9661878a691f2c60fd7">&#9670;&#160;</a></span>writeValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Json::StyledStreamWriter::writeValue </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classJson_1_1Value.html">Value</a> const &amp;&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8cpp_source.html#l00521">521</a> of file <a class="el" href="json__writer_8cpp_source.html">json_writer.cpp</a>.</p>
</div>
</div>
<a id="a9da2ceb0ce779977e004ae98811486c6" name="a9da2ceb0ce779977e004ae98811486c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9da2ceb0ce779977e004ae98811486c6">&#9670;&#160;</a></span>writeArrayValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Json::StyledStreamWriter::writeArrayValue </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classJson_1_1Value.html">Value</a> const &amp;&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8cpp_source.html#l00587">587</a> of file <a class="el" href="json__writer_8cpp_source.html">json_writer.cpp</a>.</p>
</div>
</div>
<a id="a57a01e64802b997b174107d782346b47" name="a57a01e64802b997b174107d782346b47"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57a01e64802b997b174107d782346b47">&#9670;&#160;</a></span>isMultineArray()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool Json::StyledStreamWriter::isMultineArray </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classJson_1_1Value.html">Value</a> const &amp;&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8cpp_source.html#l00646">646</a> of file <a class="el" href="json__writer_8cpp_source.html">json_writer.cpp</a>.</p>
</div>
</div>
<a id="af90ae5d54d7f96c311b83772e9e6ee5c" name="af90ae5d54d7f96c311b83772e9e6ee5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af90ae5d54d7f96c311b83772e9e6ee5c">&#9670;&#160;</a></span>pushValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Json::StyledStreamWriter::pushValue </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8cpp_source.html#l00680">680</a> of file <a class="el" href="json__writer_8cpp_source.html">json_writer.cpp</a>.</p>
</div>
</div>
<a id="a5a52fa5b406f1580a61dde3b5638e76d" name="a5a52fa5b406f1580a61dde3b5638e76d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a52fa5b406f1580a61dde3b5638e76d">&#9670;&#160;</a></span>writeIndent()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Json::StyledStreamWriter::writeIndent </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8cpp_source.html#l00689">689</a> of file <a class="el" href="json__writer_8cpp_source.html">json_writer.cpp</a>.</p>
</div>
</div>
<a id="a5499b8750176ac05fa3c2eb3446f30c7" name="a5499b8750176ac05fa3c2eb3446f30c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5499b8750176ac05fa3c2eb3446f30c7">&#9670;&#160;</a></span>writeWithIndent()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Json::StyledStreamWriter::writeWithIndent </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8cpp_source.html#l00707">707</a> of file <a class="el" href="json__writer_8cpp_source.html">json_writer.cpp</a>.</p>
</div>
</div>
<a id="ab49409578422aa73b060e3492dd6c72a" name="ab49409578422aa73b060e3492dd6c72a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab49409578422aa73b060e3492dd6c72a">&#9670;&#160;</a></span>indent()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Json::StyledStreamWriter::indent </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8cpp_source.html#l00714">714</a> of file <a class="el" href="json__writer_8cpp_source.html">json_writer.cpp</a>.</p>
</div>
</div>
<a id="a74d8fb9beecd29759d7b79f430386358" name="a74d8fb9beecd29759d7b79f430386358"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74d8fb9beecd29759d7b79f430386358">&#9670;&#160;</a></span>unindent()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Json::StyledStreamWriter::unindent </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8cpp_source.html#l00720">720</a> of file <a class="el" href="json__writer_8cpp_source.html">json_writer.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aafd62e00a401df73fcacb2e410114b3d" name="aafd62e00a401df73fcacb2e410114b3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafd62e00a401df73fcacb2e410114b3d">&#9670;&#160;</a></span>childValues_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classJson_1_1StyledStreamWriter.html#afacf79851509cdffc99dad4facb7b5e6">ChildValues</a> Json::StyledStreamWriter::childValues_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8h_source.html#l00193">193</a> of file <a class="el" href="json__writer_8h_source.html">json_writer.h</a>.</p>
</div>
</div>
<a id="aa6a4be02f654d9105af8fa560b676967" name="aa6a4be02f654d9105af8fa560b676967"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6a4be02f654d9105af8fa560b676967">&#9670;&#160;</a></span>document_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a>* Json::StyledStreamWriter::document_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8h_source.html#l00194">194</a> of file <a class="el" href="json__writer_8h_source.html">json_writer.h</a>.</p>
</div>
</div>
<a id="af9ebd4487e7f69bd1074e6ce29c7cf02" name="af9ebd4487e7f69bd1074e6ce29c7cf02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9ebd4487e7f69bd1074e6ce29c7cf02">&#9670;&#160;</a></span>indentString_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> Json::StyledStreamWriter::indentString_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8h_source.html#l00195">195</a> of file <a class="el" href="json__writer_8h_source.html">json_writer.h</a>.</p>
</div>
</div>
<a id="a67fdaa6758885f082b6a7ede52b0ab91" name="a67fdaa6758885f082b6a7ede52b0ab91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67fdaa6758885f082b6a7ede52b0ab91">&#9670;&#160;</a></span>rightMargin_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int Json::StyledStreamWriter::rightMargin_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8h_source.html#l00196">196</a> of file <a class="el" href="json__writer_8h_source.html">json_writer.h</a>.</p>
</div>
</div>
<a id="a58dc0eaf85c58b83d19d6bba8eead27d" name="a58dc0eaf85c58b83d19d6bba8eead27d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58dc0eaf85c58b83d19d6bba8eead27d">&#9670;&#160;</a></span>indentation_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> Json::StyledStreamWriter::indentation_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8h_source.html#l00197">197</a> of file <a class="el" href="json__writer_8h_source.html">json_writer.h</a>.</p>
</div>
</div>
<a id="a4e4bb7fc223b2652b72b523b1ce414fa" name="a4e4bb7fc223b2652b72b523b1ce414fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e4bb7fc223b2652b72b523b1ce414fa">&#9670;&#160;</a></span>addChildValues_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool Json::StyledStreamWriter::addChildValues_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="json__writer_8h_source.html#l00198">198</a> of file <a class="el" href="json__writer_8h_source.html">json_writer.h</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>