~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Lib/std/std_sstream.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
   For wchar support, you need to include the wchar.i file
 
3
   before this file, ie:
 
4
   
 
5
   %include <wchar.i>
 
6
   %include <std_sstream.i>
 
7
 
 
8
   or equivalently, just include
 
9
 
 
10
   %include <std_wsstream.i>
 
11
*/
 
12
 
1
13
%include <std_alloc.i>
2
14
%include <std_basic_string.i>
3
15
%include <std_string.i>
4
16
%include <std_ios.i>
 
17
#if defined(SWIG_WCHAR)
5
18
%include <std_wstring.i>
 
19
#endif
6
20
%include <std_streambuf.i>
7
21
%include <std_iostream.i>
8
22
 
33
47
      basic_stringbuf(ios_base::openmode __mode = ios_base::in | ios_base::out);
34
48
 
35
49
      explicit
36
 
      basic_stringbuf(const basic_string<char_type, _Traits, _Alloc>& __str,
 
50
      basic_stringbuf(const basic_string<_CharT, _Traits, _Alloc>& __str,
37
51
                      ios_base::openmode __mode = ios_base::in | ios_base::out);
38
52
 
39
53
      // Get and set:
40
 
      basic_string<char_type, _Traits, _Alloc>
 
54
      basic_string<_CharT, _Traits, _Alloc>
41
55
      str() const;
42
56
 
43
57
      void
44
 
      str(const basic_string<char_type, _Traits, _Alloc>& __s);
 
58
      str(const basic_string<_CharT, _Traits, _Alloc>& __s);
45
59
 
46
60
    };
47
61
 
68
82
      basic_istringstream(ios_base::openmode __mode = ios_base::in);
69
83
 
70
84
      explicit
71
 
      basic_istringstream(const basic_string<char_type, _Traits, _Alloc>& __str,
 
85
      basic_istringstream(const basic_string<_CharT, _Traits, _Alloc>& __str,
72
86
                          ios_base::openmode __mode = ios_base::in);
73
87
 
74
88
      ~basic_istringstream();
77
91
      basic_stringbuf<_CharT, _Traits, _Alloc>*
78
92
      rdbuf() const;
79
93
 
80
 
      basic_string<char_type, _Traits, _Alloc>
 
94
      basic_string<_CharT, _Traits, _Alloc>
81
95
      str() const;
82
96
 
83
97
      void
84
 
      str(const basic_string<char_type, _Traits, _Alloc>& __s);
 
98
      str(const basic_string<_CharT, _Traits, _Alloc>& __s);
85
99
    };
86
100
 
87
101
 
107
121
      basic_ostringstream(ios_base::openmode __mode = ios_base::out);
108
122
 
109
123
      explicit
110
 
      basic_ostringstream(const basic_string<char_type, _Traits, _Alloc>& __str,
 
124
      basic_ostringstream(const basic_string<_CharT, _Traits, _Alloc>& __str,
111
125
                          ios_base::openmode __mode = ios_base::out);
112
126
 
113
127
      ~basic_ostringstream();
116
130
      basic_stringbuf<_CharT, _Traits, _Alloc>*
117
131
      rdbuf() const;
118
132
 
119
 
      basic_string<char_type, _Traits, _Alloc>
 
133
      basic_string<_CharT, _Traits, _Alloc>
120
134
      str() const;
121
135
 
122
136
#if 0
123
137
      void
124
 
      str(const basic_string<char_type, _Traits, _Alloc>& __s);
 
138
      str(const basic_string<_CharT, _Traits, _Alloc>& __s);
125
139
#endif
126
140
    };
127
141
 
147
161
      basic_stringstream(ios_base::openmode __m = ios_base::out | ios_base::in);
148
162
 
149
163
      explicit
150
 
      basic_stringstream(const basic_string<char_type, _Traits, _Alloc>& __str,
 
164
      basic_stringstream(const basic_string<_CharT, _Traits, _Alloc>& __str,
151
165
                         ios_base::openmode __m = ios_base::out | ios_base::in);
152
166
 
153
167
      ~basic_stringstream();
156
170
      basic_stringbuf<_CharT, _Traits, _Alloc>*
157
171
      rdbuf() const;
158
172
 
159
 
      basic_string<char_type, _Traits, _Alloc>
 
173
      basic_string<_CharT, _Traits, _Alloc>
160
174
      str() const;
161
175
 
162
176
      void
163
 
      str(const basic_string<char_type, _Traits, _Alloc>& __s);
 
177
      str(const basic_string<_CharT, _Traits, _Alloc>& __s);
164
178
    };
165
179
 
166
180
 
168
182
 
169
183
 
170
184
namespace std {
171
 
  %template(istringstream) basic_istringstream<char, char_traits<char>, allocator<char> >;
172
 
  %template(ostringstream) basic_ostringstream<char, char_traits<char>, allocator<char> >;
173
 
  %template(stringstream)  basic_stringstream<char, char_traits<char>, allocator<char> >;
174
 
 
175
 
 
176
 
  %template(wistringstream) basic_istringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >;
177
 
  %template(wostringstream) basic_ostringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >;
178
 
  %template(wstringstream)  basic_stringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >;
 
185
  %template(istringstream) basic_istringstream<char>;
 
186
  %template(ostringstream) basic_ostringstream<char>;
 
187
  %template(stringstream)  basic_stringstream<char>;
 
188
 
 
189
 
 
190
#if defined(SWIG_WCHAR)
 
191
  %template(wistringstream) basic_istringstream<wchar_t>;
 
192
  %template(wostringstream) basic_ostringstream<wchar_t>;
 
193
  %template(wstringstream)  basic_stringstream<wchar_t>;
 
194
#endif
179
195
}