2 * FILE : src/gtk/streams.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
47 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
48 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initstreamsc
54 #define SWIG_name "streamsc"
57 #include <wx/stream.h>
60 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
64 } else if (target
== Py_None
) {
68 if (!PyList_Check(target
)) {
70 target
= PyList_New(0);
71 PyList_Append(target
, o2
);
74 PyList_Append(target
,o
);
80 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
86 } else if (target
== Py_None
) {
90 if (!PyTuple_Check(target
)) {
92 target
= PyTuple_New(1);
93 PyTuple_SetItem(target
, 0, o2
);
96 PyTuple_SetItem(o3
, 0, o
);
99 target
= PySequence_Concat(o2
, o3
);
106 #if PYTHON_API_VERSION >= 1009
107 static char* wxStringErrorMsg
= "String or Unicode type required";
109 static char* wxStringErrorMsg
= "String type required";
112 // definitions of wxStringPtrList and wxPyInputStream
113 #include <wx/listimpl.cpp>
114 WX_DEFINE_LIST(wxStringPtrList
);
117 void wxPyInputStream::close() {
121 void wxPyInputStream::flush() {
125 bool wxPyInputStream::eof() {
132 wxPyInputStream::~wxPyInputStream() {
136 wxString
* wxPyInputStream::read(int size
) {
138 const int BUFSIZE
= 1024;
140 // check if we have a real wxInputStream to work with
142 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
148 char * buf
= new char[BUFSIZE
];
162 wxPy_BEGIN_ALLOW_THREADS
;
163 while (! wxi
->Eof()) {
164 wxi
->Read(buf
, BUFSIZE
);
165 //*s += wxString(buf, wxi->LastRead());
166 s
->Append(buf
, wxi
->LastRead());
169 wxPy_END_ALLOW_THREADS
;
172 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
174 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
178 } else { // Read only size number of characters
186 wxPy_BEGIN_ALLOW_THREADS
;
187 wxi
->Read(s
->GetWriteBuf(size
+1), size
);
188 s
->UngetWriteBuf(wxi
->LastRead());
189 wxPy_END_ALLOW_THREADS
;
192 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
194 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
202 wxString
* wxPyInputStream::readline (int size
) {
203 // check if we have a real wxInputStream to work with
205 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
212 wxString
* s
= new wxString
;
218 // read until \n or byte limit reached
219 wxPy_BEGIN_ALLOW_THREADS
;
220 for (i
=ch
=0; (ch
!= '\n') && (!wxi
->Eof()) && ((size
< 0) || (i
< size
)); i
++) {
221 *s
+= ch
= wxi
->GetC();
223 wxPy_END_ALLOW_THREADS
;
226 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
228 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
235 wxStringPtrList
* wxPyInputStream::readlines (int sizehint
) {
236 // check if we have a real wxInputStream to work with
238 PyErr_SetString(PyExc_IOError
,"no valid C-wxInputStream below");
243 wxStringPtrList
* l
= new wxStringPtrList();
249 // read sizehint bytes or until EOF
250 wxPy_BEGIN_ALLOW_THREADS
;
252 for (i
=0; (!wxi
->Eof()) && ((sizehint
< 0) || (i
< sizehint
));) {
253 wxString
* s
= readline();
255 l
->DeleteContents(TRUE
);
262 wxPy_END_ALLOW_THREADS
;
265 if (wxi
->LastError() == wxSTREAM_READ_ERROR
) {
266 l
->DeleteContents(TRUE
);
268 PyErr_SetString(PyExc_IOError
,"IOError in wxInputStream");
275 void wxPyInputStream::seek(int offset
, int whence
) {
277 wxi
->SeekI(offset
, wxSeekMode(whence
));
280 int wxPyInputStream::tell(){
287 // wxInputStream which operates on a Python file-like object
288 class wxPyCBInputStream
: public wxInputStream
{
295 virtual size_t OnSysRead(void *buffer
, size_t bufsize
) {
299 wxPyTState
* state
= wxPyBeginBlockThreads();
300 PyObject
* arglist
= Py_BuildValue("(i)", bufsize
);
301 PyObject
* result
= PyEval_CallObject(read
, arglist
);
305 if ((result
!= NULL
) && PyString_Check(result
)) {
306 o
= PyString_Size(result
);
308 m_lasterror
= wxSTREAM_EOF
;
311 strncpy((char*)buffer
, PyString_AsString(result
), o
);
316 m_lasterror
= wxSTREAM_READ_ERROR
;
317 wxPyEndBlockThreads(state
);
322 virtual size_t OnSysWrite(const void *buffer
, size_t bufsize
){
323 m_lasterror
= wxSTREAM_WRITE_ERROR
;
327 virtual off_t
OnSysSeek(off_t off
, wxSeekMode mode
){
328 wxPyTState
* state
= wxPyBeginBlockThreads();
329 PyObject
*arglist
= Py_BuildValue("(ii)", off
, mode
);
330 PyObject
*result
= PyEval_CallObject(seek
, arglist
);
333 wxPyEndBlockThreads(state
);
337 virtual off_t
OnSysTell() const{
338 wxPyTState
* state
= wxPyBeginBlockThreads();
339 PyObject
* arglist
= Py_BuildValue("()");
340 PyObject
* result
= PyEval_CallObject(tell
, arglist
);
343 if (result
!= NULL
) {
344 o
= PyInt_AsLong(result
);
347 wxPyEndBlockThreads(state
);
351 wxPyCBInputStream(PyObject
*p
, PyObject
*r
, PyObject
*s
, PyObject
*t
)
352 : py(p
), read(r
), seek(s
), tell(t
)
356 ~wxPyCBInputStream() {
357 wxPyTState
* state
= wxPyBeginBlockThreads();
362 wxPyEndBlockThreads(state
);
365 virtual size_t GetSize() {
367 off_t temp
= OnSysTell();
368 off_t ret
= OnSysSeek(0, wxFromEnd
);
369 OnSysSeek(temp
, wxFromStart
);
376 static wxPyCBInputStream
* create(PyObject
*py
) {
381 if (!PyInstance_Check(py
) && !PyFile_Check(py
)) {
382 PyErr_SetString(PyExc_TypeError
, "Not a file-like object");
386 read
= getMethod(py
, "read");
387 seek
= getMethod(py
, "seek");
388 tell
= getMethod(py
, "tell");
391 PyErr_SetString(PyExc_TypeError
, "Not a file-like object");
398 return new wxPyCBInputStream(py
, read
, seek
, tell
);
401 static PyObject
* getMethod(PyObject
* py
, char* name
) {
402 if (!PyObject_HasAttrString(py
, name
))
404 PyObject
* o
= PyObject_GetAttrString(py
, name
);
405 if (!PyMethod_Check(o
) && !PyCFunction_Check(o
)) {
419 static wxPyInputStream
*new_wxPyInputStream(PyObject
*p
) {
420 wxInputStream
* wxi
= wxPyCBInputStream::create(p
);
422 return new wxPyInputStream(wxi
);
427 static PyObject
*_wrap_new_wxInputStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
428 PyObject
* _resultobj
;
429 wxPyInputStream
* _result
;
431 PyObject
* _obj0
= 0;
432 char *_kwnames
[] = { "p", NULL
};
436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxInputStream",_kwnames
,&_obj0
))
442 _result
= (wxPyInputStream
*)new_wxPyInputStream(_arg0
);
445 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyInputStream_p");
446 _resultobj
= Py_BuildValue("s",_ptemp
);
449 _resultobj
= Py_None
;
454 #define wxInputStream_close(_swigobj) (_swigobj->close())
455 static PyObject
*_wrap_wxInputStream_close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
456 PyObject
* _resultobj
;
457 wxPyInputStream
* _arg0
;
458 PyObject
* _argo0
= 0;
459 char *_kwnames
[] = { "self", NULL
};
462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_close",_kwnames
,&_argo0
))
465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_close. Expected _wxPyInputStream_p.");
472 wxInputStream_close(_arg0
);
474 } Py_INCREF(Py_None
);
475 _resultobj
= Py_None
;
479 #define wxInputStream_flush(_swigobj) (_swigobj->flush())
480 static PyObject
*_wrap_wxInputStream_flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
481 PyObject
* _resultobj
;
482 wxPyInputStream
* _arg0
;
483 PyObject
* _argo0
= 0;
484 char *_kwnames
[] = { "self", NULL
};
487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_flush",_kwnames
,&_argo0
))
490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_flush. Expected _wxPyInputStream_p.");
497 wxInputStream_flush(_arg0
);
499 } Py_INCREF(Py_None
);
500 _resultobj
= Py_None
;
504 #define wxInputStream_eof(_swigobj) (_swigobj->eof())
505 static PyObject
*_wrap_wxInputStream_eof(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
506 PyObject
* _resultobj
;
508 wxPyInputStream
* _arg0
;
509 PyObject
* _argo0
= 0;
510 char *_kwnames
[] = { "self", NULL
};
513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_eof",_kwnames
,&_argo0
))
516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_eof. Expected _wxPyInputStream_p.");
523 _result
= (bool )wxInputStream_eof(_arg0
);
525 } _resultobj
= Py_BuildValue("i",_result
);
529 #define wxInputStream_read(_swigobj,_swigarg0) (_swigobj->read(_swigarg0))
530 static PyObject
*_wrap_wxInputStream_read(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
531 PyObject
* _resultobj
;
533 wxPyInputStream
* _arg0
;
534 int _arg1
= (int ) -1;
535 PyObject
* _argo0
= 0;
536 char *_kwnames
[] = { "self","size", NULL
};
539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_read",_kwnames
,&_argo0
,&_arg1
))
542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_read. Expected _wxPyInputStream_p.");
549 _result
= (wxString
*)wxInputStream_read(_arg0
,_arg1
);
553 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
562 #define wxInputStream_readline(_swigobj,_swigarg0) (_swigobj->readline(_swigarg0))
563 static PyObject
*_wrap_wxInputStream_readline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
564 PyObject
* _resultobj
;
566 wxPyInputStream
* _arg0
;
567 int _arg1
= (int ) -1;
568 PyObject
* _argo0
= 0;
569 char *_kwnames
[] = { "self","size", NULL
};
572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readline",_kwnames
,&_argo0
,&_arg1
))
575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readline. Expected _wxPyInputStream_p.");
582 _result
= (wxString
*)wxInputStream_readline(_arg0
,_arg1
);
586 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
595 #define wxInputStream_readlines(_swigobj,_swigarg0) (_swigobj->readlines(_swigarg0))
596 static PyObject
*_wrap_wxInputStream_readlines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
597 PyObject
* _resultobj
;
598 wxStringPtrList
* _result
;
599 wxPyInputStream
* _arg0
;
600 int _arg1
= (int ) -1;
601 PyObject
* _argo0
= 0;
602 char *_kwnames
[] = { "self","sizehint", NULL
};
605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxInputStream_readlines",_kwnames
,&_argo0
,&_arg1
))
608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_readlines. Expected _wxPyInputStream_p.");
615 _result
= (wxStringPtrList
*)wxInputStream_readlines(_arg0
,_arg1
);
619 _resultobj
= PyList_New(_result
->GetCount());
620 wxStringPtrList::Node
*node
= _result
->GetFirst();
621 for (int i
=0; node
; i
++) {
622 wxString
*s
= node
->GetData();
623 PyList_SetItem(_resultobj
, i
, PyString_FromStringAndSize(s
->c_str(), s
->Len()));
624 node
= node
->GetNext();
635 #define wxInputStream_seek(_swigobj,_swigarg0,_swigarg1) (_swigobj->seek(_swigarg0,_swigarg1))
636 static PyObject
*_wrap_wxInputStream_seek(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
637 PyObject
* _resultobj
;
638 wxPyInputStream
* _arg0
;
640 int _arg2
= (int ) 0;
641 PyObject
* _argo0
= 0;
642 char *_kwnames
[] = { "self","offset","whence", NULL
};
645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|i:wxInputStream_seek",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_seek. Expected _wxPyInputStream_p.");
655 wxInputStream_seek(_arg0
,_arg1
,_arg2
);
657 } Py_INCREF(Py_None
);
658 _resultobj
= Py_None
;
662 #define wxInputStream_tell(_swigobj) (_swigobj->tell())
663 static PyObject
*_wrap_wxInputStream_tell(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
664 PyObject
* _resultobj
;
666 wxPyInputStream
* _arg0
;
667 PyObject
* _argo0
= 0;
668 char *_kwnames
[] = { "self", NULL
};
671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxInputStream_tell",_kwnames
,&_argo0
))
674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyInputStream_p")) {
676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInputStream_tell. Expected _wxPyInputStream_p.");
681 _result
= (int )wxInputStream_tell(_arg0
);
683 } _resultobj
= Py_BuildValue("i",_result
);
687 static void wxOutputStream_write(wxOutputStream
*self
,const wxString
& str
) {
688 self
->Write(str
.c_str(), str
.Length());
690 static PyObject
*_wrap_wxOutputStream_write(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
691 PyObject
* _resultobj
;
692 wxOutputStream
* _arg0
;
694 PyObject
* _argo0
= 0;
695 PyObject
* _obj1
= 0;
696 char *_kwnames
[] = { "self","str", NULL
};
699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxOutputStream_write",_kwnames
,&_argo0
,&_obj1
))
702 if (_argo0
== Py_None
) { _arg0
= NULL
; }
703 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxOutputStream_p")) {
704 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxOutputStream_write. Expected _wxOutputStream_p.");
709 #if PYTHON_API_VERSION >= 1009
710 char* tmpPtr
; int tmpSize
;
711 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
712 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
715 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
717 _arg1
= new wxString(tmpPtr
, tmpSize
);
719 if (!PyString_Check(_obj1
)) {
720 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
723 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
727 wxOutputStream_write(_arg0
,*_arg1
);
729 } Py_INCREF(Py_None
);
730 _resultobj
= Py_None
;
738 static PyMethodDef streamscMethods
[] = {
739 { "wxOutputStream_write", (PyCFunction
) _wrap_wxOutputStream_write
, METH_VARARGS
| METH_KEYWORDS
},
740 { "wxInputStream_tell", (PyCFunction
) _wrap_wxInputStream_tell
, METH_VARARGS
| METH_KEYWORDS
},
741 { "wxInputStream_seek", (PyCFunction
) _wrap_wxInputStream_seek
, METH_VARARGS
| METH_KEYWORDS
},
742 { "wxInputStream_readlines", (PyCFunction
) _wrap_wxInputStream_readlines
, METH_VARARGS
| METH_KEYWORDS
},
743 { "wxInputStream_readline", (PyCFunction
) _wrap_wxInputStream_readline
, METH_VARARGS
| METH_KEYWORDS
},
744 { "wxInputStream_read", (PyCFunction
) _wrap_wxInputStream_read
, METH_VARARGS
| METH_KEYWORDS
},
745 { "wxInputStream_eof", (PyCFunction
) _wrap_wxInputStream_eof
, METH_VARARGS
| METH_KEYWORDS
},
746 { "wxInputStream_flush", (PyCFunction
) _wrap_wxInputStream_flush
, METH_VARARGS
| METH_KEYWORDS
},
747 { "wxInputStream_close", (PyCFunction
) _wrap_wxInputStream_close
, METH_VARARGS
| METH_KEYWORDS
},
748 { "new_wxInputStream", (PyCFunction
) _wrap_new_wxInputStream
, METH_VARARGS
| METH_KEYWORDS
},
755 * This table is used by the pointer type-checker
757 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
758 { "_signed_long","_long",0},
759 { "_wxPrintQuality","_wxCoord",0},
760 { "_wxPrintQuality","_int",0},
761 { "_wxPrintQuality","_signed_int",0},
762 { "_wxPrintQuality","_unsigned_int",0},
763 { "_wxPrintQuality","_wxWindowID",0},
764 { "_wxPrintQuality","_uint",0},
765 { "_wxPrintQuality","_EBool",0},
766 { "_wxPrintQuality","_size_t",0},
767 { "_wxPrintQuality","_time_t",0},
768 { "_byte","_unsigned_char",0},
769 { "_long","_unsigned_long",0},
770 { "_long","_signed_long",0},
771 { "_size_t","_wxCoord",0},
772 { "_size_t","_wxPrintQuality",0},
773 { "_size_t","_time_t",0},
774 { "_size_t","_unsigned_int",0},
775 { "_size_t","_int",0},
776 { "_size_t","_wxWindowID",0},
777 { "_size_t","_uint",0},
778 { "_uint","_wxCoord",0},
779 { "_uint","_wxPrintQuality",0},
780 { "_uint","_time_t",0},
781 { "_uint","_size_t",0},
782 { "_uint","_unsigned_int",0},
784 { "_uint","_wxWindowID",0},
785 { "_wxChar","_char",0},
786 { "_char","_wxChar",0},
787 { "_EBool","_wxCoord",0},
788 { "_EBool","_wxPrintQuality",0},
789 { "_EBool","_signed_int",0},
790 { "_EBool","_int",0},
791 { "_EBool","_wxWindowID",0},
792 { "_unsigned_long","_long",0},
793 { "_signed_int","_wxCoord",0},
794 { "_signed_int","_wxPrintQuality",0},
795 { "_signed_int","_EBool",0},
796 { "_signed_int","_wxWindowID",0},
797 { "_signed_int","_int",0},
798 { "_WXTYPE","_short",0},
799 { "_WXTYPE","_signed_short",0},
800 { "_WXTYPE","_unsigned_short",0},
801 { "_unsigned_short","_WXTYPE",0},
802 { "_unsigned_short","_short",0},
803 { "_signed_short","_WXTYPE",0},
804 { "_signed_short","_short",0},
805 { "_unsigned_char","_byte",0},
806 { "_unsigned_int","_wxCoord",0},
807 { "_unsigned_int","_wxPrintQuality",0},
808 { "_unsigned_int","_time_t",0},
809 { "_unsigned_int","_size_t",0},
810 { "_unsigned_int","_uint",0},
811 { "_unsigned_int","_wxWindowID",0},
812 { "_unsigned_int","_int",0},
813 { "_short","_WXTYPE",0},
814 { "_short","_unsigned_short",0},
815 { "_short","_signed_short",0},
816 { "_wxWindowID","_wxCoord",0},
817 { "_wxWindowID","_wxPrintQuality",0},
818 { "_wxWindowID","_time_t",0},
819 { "_wxWindowID","_size_t",0},
820 { "_wxWindowID","_EBool",0},
821 { "_wxWindowID","_uint",0},
822 { "_wxWindowID","_int",0},
823 { "_wxWindowID","_signed_int",0},
824 { "_wxWindowID","_unsigned_int",0},
825 { "_int","_wxCoord",0},
826 { "_int","_wxPrintQuality",0},
827 { "_int","_time_t",0},
828 { "_int","_size_t",0},
829 { "_int","_EBool",0},
831 { "_int","_wxWindowID",0},
832 { "_int","_unsigned_int",0},
833 { "_int","_signed_int",0},
834 { "_time_t","_wxCoord",0},
835 { "_time_t","_wxPrintQuality",0},
836 { "_time_t","_unsigned_int",0},
837 { "_time_t","_int",0},
838 { "_time_t","_wxWindowID",0},
839 { "_time_t","_uint",0},
840 { "_time_t","_size_t",0},
841 { "_wxCoord","_int",0},
842 { "_wxCoord","_signed_int",0},
843 { "_wxCoord","_unsigned_int",0},
844 { "_wxCoord","_wxWindowID",0},
845 { "_wxCoord","_uint",0},
846 { "_wxCoord","_EBool",0},
847 { "_wxCoord","_size_t",0},
848 { "_wxCoord","_time_t",0},
849 { "_wxCoord","_wxPrintQuality",0},
852 static PyObject
*SWIG_globals
;
856 SWIGEXPORT(void) initstreamsc() {
858 SWIG_globals
= SWIG_newvarlink();
859 m
= Py_InitModule("streamsc", streamscMethods
);
860 d
= PyModule_GetDict(m
);
862 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
865 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
866 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);