Lines Matching refs:root
208 FastWriter::write( const Value &root )
211 writeValue( root );
288 StyledWriter::write( const Value &root )
293 writeCommentBeforeValue( root );
294 writeValue( root );
295 writeCommentAfterValueOnSameLine( root );
495 StyledWriter::writeCommentBeforeValue( const Value &root )
497 if ( !root.hasComment( commentBefore ) )
499 document_ += normalizeEOL( root.getComment( commentBefore ) );
505 StyledWriter::writeCommentAfterValueOnSameLine( const Value &root )
507 if ( root.hasComment( commentAfterOnSameLine ) )
508 document_ += " " + normalizeEOL( root.getComment( commentAfterOnSameLine ) );
510 if ( root.hasComment( commentAfter ) )
513 document_ += normalizeEOL( root.getComment( commentAfter ) );
565 StyledStreamWriter::write( std::ostream &out, const Value &root )
570 writeCommentBeforeValue( root );
571 writeValue( root );
572 writeCommentAfterValueOnSameLine( root );
776 StyledStreamWriter::writeCommentBeforeValue( const Value &root )
778 if ( !root.hasComment( commentBefore ) )
780 *document_ << normalizeEOL( root.getComment( commentBefore ) );
786 StyledStreamWriter::writeCommentAfterValueOnSameLine( const Value &root )
788 if ( root.hasComment( commentAfterOnSameLine ) )
789 *document_ << " " + normalizeEOL( root.getComment( commentAfterOnSameLine ) );
791 if ( root.hasComment( commentAfter ) )
794 *document_ << normalizeEOL( root.getComment( commentAfter ) );
833 std::ostream& operator<<( std::ostream &sout, const Value &root )
836 writer.write(sout, root);