dcd542663539e97368adbd93fc830057107f2822
[platform/upstream/openfst.git] / src / extensions / python / ios.pxd
1 # See www.openfst.org for extensive documentation on this weighted
2 # finite-state transducer library.
3
4
5 from google3 cimport string
6 from basictypes cimport int8
7 from basictypes cimport int16
8 from basictypes cimport int32
9 from basictypes cimport int64
10 from basictypes cimport uint8
11 from basictypes cimport uint16
12 from basictypes cimport uint32
13 from basictypes cimport uint64
14
15
16 cdef extern from "<iostream>" namespace "std" nogil:
17
18   cdef cppclass iostream:
19
20     pass
21
22   cdef cppclass istream(iostream):
23
24     pass
25
26   cdef cppclass ostream(iostream):
27
28     pass
29
30
31 # We are ignoring openmodes for the moment.
32
33
34 cdef extern from "<fstream>" namespace "std" nogil:
35
36   cdef cppclass ifstream(istream):
37
38     ifstream(const string &)
39
40   cdef cppclass ofstream(ostream):
41
42     ofstream(const string &)
43
44
45 cdef extern from "<sstream>" namespace "std" nogil:
46
47   cdef cppclass stringstream(istream, ostream):
48
49     stringstream()
50
51     string str()
52
53     stringstream &operator<<(const string &)
54
55     stringstream &operator<<(bool)
56
57     # We define these in terms of the Google basictypes.
58
59     stringstream &operator<<(int8)
60
61     stringstream &operator<<(uint8)
62
63     stringstream &operator<<(int16)
64
65     stringstream &operator<<(uint16)
66
67     stringstream &operator<<(int32)
68
69     stringstream &operator<<(uint32)
70
71     stringstream &operator<<(int64)
72
73     stringstream &operator<<(uint64)
74
75     stringstream &operator<<(double)
76
77     stringstream &operator<<(long double)