Lines Matching full:fstream
3 # include <fstream>
364 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
394 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
402 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary );
408 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( 0, ios_base::cur ) == fstream::pos_type(chars_read) );
409 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( -chars_read, ios_base::cur ) == fstream::pos_type(0) );
420 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
428 fstream s( "test_file.txt", ios_base::in | ios_base::out );
435 fstream::pos_type pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
448 CPPUNIT_ASSERT( pos == fstream::pos_type(5) );
449 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff(-5, ios_base::cur) == fstream::pos_type(0) );
488 fstream::pos_type pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
503 CPPUNIT_ASSERT( pos == fstream::pos_type(5) );
504 //CPPUNIT_ASSERT( s.rdbuf()->pubseekoff(-5, ios_base::cur) == fstream::pos_type(0) );
511 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
855 fstream nullStream(nullStreamName);
860 fstream nullStream(nullStreamName, ios_base::in | ios_base::out | ios_base::ate);
865 fstream nullStream(nullStreamName, ios_base::in | ios_base::out | ios_base::trunc);
893 fstream f( "test.txt", ios_base::in | ios_base::out | ios_base::trunc );