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

« back to all changes in this revision

Viewing changes to Lib/std/std_streambuf.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-09-01 18:35:55 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050901183555-eq59uwhq8b62e44c
Tags: 1.3.24-1ubuntu4
* Use php5-dev instead of php4-dev, to kick php4 out of main.
* Drop support for generation of pike bindings, as nothing uses it,
  and swig is the only thing keeping pike7.6 in main (Ubuntu #13796)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%include <std_ios.i>
 
2
%{
 
3
#include <streambuf>
 
4
%}
 
5
 
 
6
namespace std {
 
7
 
 
8
  template<typename _CharT, typename _Traits>
 
9
  class basic_streambuf 
 
10
  {
 
11
  public:
 
12
    // Types:
 
13
    typedef _CharT                                      char_type;
 
14
    typedef _Traits                                     traits_type;
 
15
    typedef typename traits_type::int_type              int_type;
 
16
    typedef typename traits_type::pos_type              pos_type;
 
17
    typedef typename traits_type::off_type              off_type;
 
18
 
 
19
    typedef basic_streambuf<char_type, traits_type>     __streambuf_type;
 
20
      
 
21
  public:
 
22
    virtual 
 
23
    ~basic_streambuf();
 
24
 
 
25
    // Locales:
 
26
    locale 
 
27
    pubimbue(const locale &__loc);
 
28
 
 
29
    locale   
 
30
    getloc() const; 
 
31
 
 
32
    // Buffer and positioning:
 
33
    __streambuf_type* 
 
34
    pubsetbuf(char_type* __s, streamsize __n);
 
35
 
 
36
    pos_type 
 
37
    pubseekoff(off_type __off, ios_base::seekdir __way, 
 
38
               ios_base::openmode __mode = std::ios_base::in | std::ios_base::out);
 
39
 
 
40
    pos_type 
 
41
    pubseekpos(pos_type __sp,
 
42
               ios_base::openmode __mode = std::ios_base::in | std::ios_base::out);
 
43
 
 
44
    int 
 
45
    pubsync() ;
 
46
 
 
47
    // Get and put areas:
 
48
    // Get area:
 
49
    streamsize 
 
50
    in_avail();
 
51
 
 
52
    int_type 
 
53
    snextc();
 
54
 
 
55
    int_type 
 
56
    sbumpc();
 
57
 
 
58
    int_type 
 
59
    sgetc();
 
60
 
 
61
    streamsize 
 
62
    sgetn(char_type* __s, streamsize __n);
 
63
 
 
64
    // Putback:
 
65
    int_type 
 
66
    sputbackc(char_type __c);
 
67
 
 
68
    int_type 
 
69
    sungetc();
 
70
 
 
71
    // Put area:
 
72
    int_type 
 
73
    sputc(char_type __c);
 
74
 
 
75
    streamsize 
 
76
    sputn(const char_type* __s, streamsize __n);
 
77
 
 
78
  protected:
 
79
    basic_streambuf();
 
80
 
 
81
  }; 
 
82
}
 
83
 
 
84
namespace std {
 
85
  %template(streambuf) basic_streambuf<char, char_traits<char> >;
 
86
  %template(wstreambuf) basic_streambuf<wchar_t, char_traits<wchar_t> >;
 
87
}