33 #ifndef _GLIBCXX_FSTREAM
34 #define _GLIBCXX_FSTREAM 1
36 #pragma GCC system_header
43 #if __cplusplus >= 201103L
47 namespace std _GLIBCXX_VISIBILITY(default)
49 _GLIBCXX_BEGIN_NAMESPACE_VERSION
71 template<
typename _CharT,
typename _Traits>
76 typedef _CharT char_type;
77 typedef _Traits traits_type;
78 typedef typename traits_type::int_type int_type;
79 typedef typename traits_type::pos_type pos_type;
80 typedef typename traits_type::off_type off_type;
84 typedef __basic_file<char> __file_type;
85 typedef typename traits_type::state_type __state_type;
102 __state_type _M_state_beg;
107 __state_type _M_state_cur;
111 __state_type _M_state_last;
124 bool _M_buf_allocated;
228 {
return _M_file.is_open(); }
270 open(
const char* __s, ios_base::openmode __mode);
272 #if __cplusplus >= 201103L
301 _M_allocate_internal_buffer();
304 _M_destroy_internal_buffer() throw();
319 pbackfail(int_type __c = _Traits::eof());
329 overflow(int_type __c = _Traits::eof());
334 _M_convert_to_external(char_type*,
streamsize);
348 virtual __streambuf_type*
349 setbuf(char_type* __s, streamsize __n);
361 _M_seek(off_type __off,
ios_base::seekdir __way, __state_type __state);
364 _M_get_ext_pos(__state_type &__state);
373 xsgetn(char_type* __s, streamsize __n);
376 xsputn(const char_type* __s, streamsize __n);
380 _M_terminate_output();
400 if (__testin && __off > 0)
426 template<
typename _CharT,
typename _Traits>
431 typedef _CharT char_type;
432 typedef _Traits traits_type;
433 typedef typename traits_type::int_type int_type;
434 typedef typename traits_type::pos_type pos_type;
435 typedef typename traits_type::off_type off_type;
454 { this->
init(&_M_filebuf); }
470 this->
init(&_M_filebuf);
471 this->
open(__s, __mode);
474 #if __cplusplus >= 201103L
487 this->
init(&_M_filebuf);
488 this->
open(__s, __mode);
518 {
return _M_filebuf.
is_open(); }
524 {
return _M_filebuf.
is_open(); }
548 #if __cplusplus >= 201103L
578 if (!_M_filebuf.
close())
598 template<
typename _CharT,
typename _Traits>
603 typedef _CharT char_type;
604 typedef _Traits traits_type;
605 typedef typename traits_type::int_type int_type;
606 typedef typename traits_type::pos_type pos_type;
607 typedef typename traits_type::off_type off_type;
626 { this->
init(&_M_filebuf); }
644 this->
init(&_M_filebuf);
645 this->
open(__s, __mode);
648 #if __cplusplus >= 201103L
662 this->
init(&_M_filebuf);
663 this->
open(__s, __mode);
693 {
return _M_filebuf.
is_open(); }
699 {
return _M_filebuf.
is_open(); }
724 #if __cplusplus >= 201103L
755 if (!_M_filebuf.
close())
775 template<
typename _CharT,
typename _Traits>
780 typedef _CharT char_type;
781 typedef _Traits traits_type;
782 typedef typename traits_type::int_type int_type;
783 typedef typename traits_type::pos_type pos_type;
784 typedef typename traits_type::off_type off_type;
805 { this->
init(&_M_filebuf); }
820 this->
init(&_M_filebuf);
821 this->
open(__s, __mode);
824 #if __cplusplus >= 201103L
835 this->
init(&_M_filebuf);
836 this->
open(__s, __mode);
866 {
return _M_filebuf.
is_open(); }
872 {
return _M_filebuf.
is_open(); }
889 if (!_M_filebuf.
open(__s, __mode))
897 #if __cplusplus >= 201103L
910 if (!_M_filebuf.
open(__s, __mode))
928 if (!_M_filebuf.
close())
933 _GLIBCXX_END_NAMESPACE_VERSION