Lines Matching refs:stream

34 void TiXmlBase::PutString( const std::string& str, std::ostream* stream )
45 stream->write( &str.at( i ), str.length() - i );
51 stream->write( &str.at( i ), next - i );
60 stream->put( str[i] );
68 stream->write( entity[j].str, entity[j].strLength );
74 stream->put( str[i] );
528 void TiXmlElement::StreamOut( std::ostream* stream ) const
530 (*stream) << "<" << value;
535 (*stream) << " ";
536 attrib->StreamOut( stream );
544 (*stream) << ">";
548 node->StreamOut( stream );
550 (*stream) << "</" << value << ">";
554 (*stream) << " />";
706 // The stream in code will only read one element, so don't
736 ostringstream stream( ostringstream::out );
737 stream.str().reserve( 500 );
739 StreamOut( &stream );
740 fprintf( cfile, "%s", stream.str().c_str() );
744 void TiXmlAttribute::StreamOut( std::ostream* stream ) const
748 PutString( name, stream );
749 (*stream) << "=" << "'";
750 PutString( value, stream );
751 (*stream) << "'";
755 PutString( name, stream );
756 (*stream) << "=" << "\"";
757 PutString( value, stream );
758 (*stream) << "\"";
766 std::ostringstream stream( s );
767 stream << value;
768 SetValue( stream.str() );
775 std::ostringstream stream( s );
776 stream << value;
777 SetValue( stream.str() );
801 ostringstream stream( ostringstream::out );
802 stream.str().reserve( 1000 );
808 StreamOut( &stream );
809 fprintf( cfile, "%s", stream.str().c_str() );
813 void TiXmlComment::StreamOut( std::ostream* stream ) const
815 (*stream) << "<!--";
816 PutString( value, stream );
817 (*stream) << "-->";
835 ostringstream stream( ostringstream::out );
836 stream.str().reserve( 1000 );
837 StreamOut( &stream );
838 fprintf( cfile, "%s", stream.str().c_str() );
842 void TiXmlText::StreamOut( std::ostream* stream ) const
844 PutString( value, stream );
874 ostringstream stream( ostringstream::out );
875 stream.str().reserve( 200 );
876 StreamOut( &stream );
877 fprintf( cfile, "%s", stream.str().c_str() );
881 void TiXmlDeclaration::StreamOut( std::ostream* stream ) const
883 (*stream) << "<?xml ";
887 (*stream) << "version=\"";
888 PutString( version, stream );
889 (*stream) << "\" ";
893 (*stream) << "encoding=\"";
894 PutString( encoding, stream );
895 (*stream ) << "\" ";
899 (*stream) << "standalone=\"";
900 PutString( standalone, stream );
901 (*stream) << "\" ";
903 (*stream) << "?>";
924 ostringstream stream( ostringstream::out );
925 stream.str().reserve( 200 );
926 StreamOut( &stream );
930 fprintf( cfile, "%s", stream.str().c_str() );
934 void TiXmlUnknown::StreamOut( std::ostream* stream ) const
936 (*stream) << "<" << value << ">"; // Don't use entities hear! It is unknown.