35 #ifndef _GLIBCXX_FSTREAM
36 #define _GLIBCXX_FSTREAM 1
38 #pragma GCC system_header
45 #ifdef __GXX_EXPERIMENTAL_CXX0X__
49 namespace std _GLIBCXX_VISIBILITY(default)
51 _GLIBCXX_BEGIN_NAMESPACE_VERSION
68 template<
typename _CharT,
typename _Traits>
73 typedef _CharT char_type;
74 typedef _Traits traits_type;
75 typedef typename traits_type::int_type int_type;
76 typedef typename traits_type::pos_type pos_type;
77 typedef typename traits_type::off_type off_type;
81 typedef __basic_file<char> __file_type;
82 typedef typename traits_type::state_type __state_type;
99 __state_type _M_state_beg;
104 __state_type _M_state_cur;
108 __state_type _M_state_last;
121 bool _M_buf_allocated;
225 {
return _M_file.is_open(); }
267 open(
const char* __s, ios_base::openmode __mode);
269 #ifdef __GXX_EXPERIMENTAL_CXX0X__
298 _M_allocate_internal_buffer();
301 _M_destroy_internal_buffer() throw();
316 pbackfail(int_type __c = _Traits::eof());
326 overflow(int_type __c = _Traits::eof());
331 _M_convert_to_external(char_type*,
streamsize);
345 virtual __streambuf_type*
346 setbuf(char_type* __s, streamsize __n);
358 _M_seek(off_type __off,
ios_base::seekdir __way, __state_type __state);
361 _M_get_ext_pos(__state_type &__state);
370 xsgetn(char_type* __s, streamsize __n);
373 xsputn(const char_type* __s, streamsize __n);
377 _M_terminate_output();
397 if (__testin && __off > 0)
419 template<
typename _CharT,
typename _Traits>
424 typedef _CharT char_type;
425 typedef _Traits traits_type;
426 typedef typename traits_type::int_type int_type;
427 typedef typename traits_type::pos_type pos_type;
428 typedef typename traits_type::off_type off_type;
447 { this->
init(&_M_filebuf); }
463 this->
init(&_M_filebuf);
464 this->
open(__s, __mode);
467 #ifdef __GXX_EXPERIMENTAL_CXX0X__
480 this->
init(&_M_filebuf);
481 this->
open(__s, __mode);
511 {
return _M_filebuf.
is_open(); }
517 {
return _M_filebuf.
is_open(); }
541 #ifdef __GXX_EXPERIMENTAL_CXX0X__
571 if (!_M_filebuf.
close())
587 template<
typename _CharT,
typename _Traits>
592 typedef _CharT char_type;
593 typedef _Traits traits_type;
594 typedef typename traits_type::int_type int_type;
595 typedef typename traits_type::pos_type pos_type;
596 typedef typename traits_type::off_type off_type;
615 { this->
init(&_M_filebuf); }
633 this->
init(&_M_filebuf);
634 this->
open(__s, __mode);
637 #ifdef __GXX_EXPERIMENTAL_CXX0X__
651 this->
init(&_M_filebuf);
652 this->
open(__s, __mode);
682 {
return _M_filebuf.
is_open(); }
688 {
return _M_filebuf.
is_open(); }
713 #ifdef __GXX_EXPERIMENTAL_CXX0X__
744 if (!_M_filebuf.
close())
760 template<
typename _CharT,
typename _Traits>
765 typedef _CharT char_type;
766 typedef _Traits traits_type;
767 typedef typename traits_type::int_type int_type;
768 typedef typename traits_type::pos_type pos_type;
769 typedef typename traits_type::off_type off_type;
790 { this->
init(&_M_filebuf); }
805 this->
init(&_M_filebuf);
806 this->
open(__s, __mode);
809 #ifdef __GXX_EXPERIMENTAL_CXX0X__
820 this->
init(&_M_filebuf);
821 this->
open(__s, __mode);
851 {
return _M_filebuf.
is_open(); }
857 {
return _M_filebuf.
is_open(); }
874 if (!_M_filebuf.
open(__s, __mode))
882 #ifdef __GXX_EXPERIMENTAL_CXX0X__
895 if (!_M_filebuf.
open(__s, __mode))
913 if (!_M_filebuf.
close())
918 _GLIBCXX_END_NAMESPACE_VERSION