ossrv_pub/io_stream_api/inc/stdapis/stlport/stl/_sstream.h
changeset 22 ddc455616bd6
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
equal deleted inserted replaced
18:47c74d1534e1 22:ddc455616bd6
    69   typedef basic_streambuf<_CharT, _Traits>          _Base;
    69   typedef basic_streambuf<_CharT, _Traits>          _Base;
    70   typedef basic_stringbuf<_CharT, _Traits, _Alloc>  _Self;
    70   typedef basic_stringbuf<_CharT, _Traits, _Alloc>  _Self;
    71   typedef basic_string<_CharT, _Traits, _Alloc>     _String;
    71   typedef basic_string<_CharT, _Traits, _Alloc>     _String;
    72 
    72 
    73 public:                         // Constructors, destructor.
    73 public:                         // Constructors, destructor.
    74   _STLP_DECLSPEC explicit basic_stringbuf(ios_base::openmode __mode
    74   _STLP_DUMMY_IMP_DECLSPEC explicit basic_stringbuf(ios_base::openmode __mode
    75                                       = ios_base::in | ios_base::out);
    75                                       = ios_base::in | ios_base::out);
    76   _STLP_DECLSPEC explicit basic_stringbuf(const _String& __s, ios_base::openmode __mode
    76   _STLP_DUMMY_IMP_DECLSPEC explicit basic_stringbuf(const _String& __s, ios_base::openmode __mode
    77                                       = ios_base::in | ios_base::out);
    77                                       = ios_base::in | ios_base::out);
    78   _STLP_DECLSPEC virtual ~basic_stringbuf();
    78   _STLP_DUMMY_IMP_DECLSPEC virtual ~basic_stringbuf();
    79 
    79 
    80 public:                         // Get or set the string.
    80 public:                         // Get or set the string.
    81   _String str() const { 
    81   _String str() const { 
    82       if ( _M_mode & ios_base::out )
    82       if ( _M_mode & ios_base::out )
    83            _M_append_buffer();
    83            _M_append_buffer();
    84       return _M_str; 
    84       return _M_str; 
    85    }
    85    }
    86   _STLP_DECLSPEC void str(const _String& __s);
    86   _STLP_DUMMY_IMP_DECLSPEC void str(const _String& __s);
    87 
    87 
    88 protected:                      // Overridden virtual member functions.
    88 protected:                      // Overridden virtual member functions.
    89   virtual int_type underflow();
    89   virtual int_type underflow();
    90   virtual int_type uflow();
    90   virtual int_type uflow();
    91   virtual int_type pbackfail(int_type __c);
    91   virtual int_type pbackfail(int_type __c);
   229   typedef basic_stringbuf<_CharT, _Traits, _Alloc>  _Buf;
   229   typedef basic_stringbuf<_CharT, _Traits, _Alloc>  _Buf;
   230   
   230   
   231   typedef ios_base::openmode openmode;
   231   typedef ios_base::openmode openmode;
   232 
   232 
   233 public:                         // Constructors, destructor.
   233 public:                         // Constructors, destructor.
   234   _STLP_DECLSPEC basic_stringstream(openmode __mod = ios_base::in | ios_base::out);
   234   _STLP_DUMMY_IMP_DECLSPEC basic_stringstream(openmode __mod = ios_base::in | ios_base::out);
   235   _STLP_DECLSPEC basic_stringstream(const _String& __str,
   235   _STLP_DUMMY_IMP_DECLSPEC basic_stringstream(const _String& __str,
   236                      openmode __mod = ios_base::in | ios_base::out);
   236                      openmode __mod = ios_base::in | ios_base::out);
   237   ~basic_stringstream();
   237   ~basic_stringstream();
   238 
   238 
   239 public:                         // Member functions.
   239 public:                         // Member functions.
   240 
   240