equal
deleted
inserted
replaced
94 public: // Opening and closing files. |
94 public: // Opening and closing files. |
95 _STLP_DECLSPEC _Filebuf_base(); |
95 _STLP_DECLSPEC _Filebuf_base(); |
96 |
96 |
97 _STLP_DECLSPEC bool _M_open(const char*, ios_base::openmode, long __protection); |
97 _STLP_DECLSPEC bool _M_open(const char*, ios_base::openmode, long __protection); |
98 _STLP_DECLSPEC bool _M_open(const char*, ios_base::openmode); |
98 _STLP_DECLSPEC bool _M_open(const char*, ios_base::openmode); |
99 _STLP_DECLSPEC bool _M_open(int __id, ios_base::openmode = ios_base::__default_mode); |
99 bool _M_open(int __id, ios_base::openmode = ios_base::__default_mode); |
100 _STLP_DECLSPEC bool _M_close(); |
100 _STLP_DECLSPEC bool _M_close(); |
101 |
101 |
102 public: // Low-level I/O, like Unix read/write |
102 public: // Low-level I/O, like Unix read/write |
103 _STLP_DECLSPEC ptrdiff_t _M_read(char* __buf, ptrdiff_t __n); |
103 _STLP_DECLSPEC ptrdiff_t _M_read(char* __buf, ptrdiff_t __n); |
104 _STLP_DECLSPEC streamoff _M_seek(streamoff __offset, ios_base::seekdir __dir); |
104 _STLP_DECLSPEC streamoff _M_seek(streamoff __offset, ios_base::seekdir __dir); |
685 typedef basic_iostream<_CharT, _Traits> _Base; |
685 typedef basic_iostream<_CharT, _Traits> _Base; |
686 typedef basic_filebuf<_CharT, _Traits> _Buf; |
686 typedef basic_filebuf<_CharT, _Traits> _Buf; |
687 |
687 |
688 public: // Constructors, destructor. |
688 public: // Constructors, destructor. |
689 |
689 |
690 _STLP_DECLSPEC basic_fstream(); |
690 _STLP_DUMMY_IMP_DECLSPEC basic_fstream(); |
691 explicit basic_fstream(const char* __s, |
691 explicit basic_fstream(const char* __s, |
692 ios_base::openmode __mod = ios_base::in | ios_base::out) : |
692 ios_base::openmode __mod = ios_base::in | ios_base::out) : |
693 basic_ios<_CharT, _Traits>(), basic_iostream<_CharT, _Traits>(0), _M_buf() { |
693 basic_ios<_CharT, _Traits>(), basic_iostream<_CharT, _Traits>(0), _M_buf() { |
694 this->init(&_M_buf); |
694 this->init(&_M_buf); |
695 if (!_M_buf.open(__s, __mod)) |
695 if (!_M_buf.open(__s, __mod)) |
709 this->init(&_M_buf); |
709 this->init(&_M_buf); |
710 if (!_M_buf.open(__s, __m, __protection)) |
710 if (!_M_buf.open(__s, __m, __protection)) |
711 this->setstate(ios_base::failbit); |
711 this->setstate(ios_base::failbit); |
712 } |
712 } |
713 # endif |
713 # endif |
714 _STLP_DECLSPEC ~basic_fstream(); |
714 _STLP_DUMMY_IMP_DECLSPEC ~basic_fstream(); |
715 |
715 |
716 public: // File and buffer operations. |
716 public: // File and buffer operations. |
717 |
717 |
718 basic_filebuf<_CharT, _Traits>* rdbuf() const |
718 basic_filebuf<_CharT, _Traits>* rdbuf() const |
719 { return __CONST_CAST(_Buf*,&_M_buf); } |
719 { return __CONST_CAST(_Buf*,&_M_buf); } |