Lines Matching full:fstream
3 # include <fstream>
346 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
376 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
384 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary );
390 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( 0, ios_base::cur ) == fstream::pos_type(chars_read) );
391 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( -chars_read, ios_base::cur ) == fstream::pos_type(0) );
402 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
410 fstream s( "test_file.txt", ios_base::in | ios_base::out );
417 fstream::pos_type pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
430 CPPUNIT_ASSERT( pos == fstream::pos_type(5) );
431 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff(-5, ios_base::cur) == fstream::pos_type(0) );
470 fstream::pos_type pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
485 CPPUNIT_ASSERT( pos == fstream::pos_type(5) );
486 //CPPUNIT_ASSERT( s.rdbuf()->pubseekoff(-5, ios_base::cur) == fstream::pos_type(0) );
493 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
837 fstream nullStream(nullStreamName);
842 fstream nullStream(nullStreamName, ios_base::in | ios_base::out | ios_base::ate);
847 fstream nullStream(nullStreamName, ios_base::in | ios_base::out | ios_base::trunc);
875 fstream f( "test.txt", ios_base::in | ios_base::out | ios_base::trunc );