1 /*
2 * Interface wrapper code.
3 *
4 * Generated by SIP 4.19.16
5 *
6 * Copyright: (c) 2018 by Total Control Software
7 * License: wxWindows License
8 */
9
10 #include "sipAPI_core.h"
11
12 #include <wx/filesys.h>
13
14 #include <wx/filesys.h>
15 #include <wx/filesys.h>
16 #include <wx/object.h>
17 #include <wx/object.h>
18 #include <wx/object.h>
19
20
21 PyDoc_STRVAR(doc_wxFileSystem_ChangePathTo, "ChangePathTo(location, is_dir=False)\n"
22 "\n"
23 "Sets the current location.");
24
25 extern "C" {static PyObject *meth_wxFileSystem_ChangePathTo(PyObject *, PyObject *, PyObject *);}
meth_wxFileSystem_ChangePathTo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)26 static PyObject *meth_wxFileSystem_ChangePathTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
27 {
28 PyObject *sipParseErr = SIP_NULLPTR;
29
30 {
31 const ::wxString* location;
32 int locationState = 0;
33 bool is_dir = 0;
34 ::wxFileSystem *sipCpp;
35
36 static const char *sipKwdList[] = {
37 sipName_location,
38 sipName_is_dir,
39 };
40
41 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|b", &sipSelf, sipType_wxFileSystem, &sipCpp, sipType_wxString,&location, &locationState, &is_dir))
42 {
43 PyErr_Clear();
44
45 Py_BEGIN_ALLOW_THREADS
46 sipCpp->ChangePathTo(*location,is_dir);
47 Py_END_ALLOW_THREADS
48 sipReleaseType(const_cast< ::wxString *>(location),sipType_wxString,locationState);
49
50 if (PyErr_Occurred())
51 return 0;
52
53 Py_INCREF(Py_None);
54 return Py_None;
55 }
56 }
57
58 /* Raise an exception if the arguments couldn't be parsed. */
59 sipNoMethod(sipParseErr, sipName_FileSystem, sipName_ChangePathTo, SIP_NULLPTR);
60
61 return SIP_NULLPTR;
62 }
63
64
65 PyDoc_STRVAR(doc_wxFileSystem_FindFileInPath, "FindFileInPath(pStr, path, file) -> bool\n"
66 "\n"
67 "Looks for the file with the given name file in a colon or semi-colon\n"
68 "(depending on the current platform) separated list of directories in\n"
69 "path.");
70
71 extern "C" {static PyObject *meth_wxFileSystem_FindFileInPath(PyObject *, PyObject *, PyObject *);}
meth_wxFileSystem_FindFileInPath(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)72 static PyObject *meth_wxFileSystem_FindFileInPath(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
73 {
74 PyObject *sipParseErr = SIP_NULLPTR;
75
76 {
77 ::wxString* pStr;
78 int pStrState = 0;
79 const ::wxString* path;
80 int pathState = 0;
81 const ::wxString* file;
82 int fileState = 0;
83 ::wxFileSystem *sipCpp;
84
85 static const char *sipKwdList[] = {
86 sipName_pStr,
87 sipName_path,
88 sipName_file,
89 };
90
91 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ0J1J1", &sipSelf, sipType_wxFileSystem, &sipCpp, sipType_wxString,&pStr, &pStrState, sipType_wxString,&path, &pathState, sipType_wxString,&file, &fileState))
92 {
93 bool sipRes;
94
95 PyErr_Clear();
96
97 Py_BEGIN_ALLOW_THREADS
98 sipRes = sipCpp->FindFileInPath(pStr,*path,*file);
99 Py_END_ALLOW_THREADS
100 sipReleaseType(pStr,sipType_wxString,pStrState);
101 sipReleaseType(const_cast< ::wxString *>(path),sipType_wxString,pathState);
102 sipReleaseType(const_cast< ::wxString *>(file),sipType_wxString,fileState);
103
104 if (PyErr_Occurred())
105 return 0;
106
107 return PyBool_FromLong(sipRes);
108 }
109 }
110
111 /* Raise an exception if the arguments couldn't be parsed. */
112 sipNoMethod(sipParseErr, sipName_FileSystem, sipName_FindFileInPath, SIP_NULLPTR);
113
114 return SIP_NULLPTR;
115 }
116
117
118 PyDoc_STRVAR(doc_wxFileSystem_FindFirst, "FindFirst(wildcard, flags=0) -> String\n"
119 "\n"
120 "Works like wxFindFirstFile().");
121
122 extern "C" {static PyObject *meth_wxFileSystem_FindFirst(PyObject *, PyObject *, PyObject *);}
meth_wxFileSystem_FindFirst(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)123 static PyObject *meth_wxFileSystem_FindFirst(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
124 {
125 PyObject *sipParseErr = SIP_NULLPTR;
126
127 {
128 const ::wxString* wildcard;
129 int wildcardState = 0;
130 int flags = 0;
131 ::wxFileSystem *sipCpp;
132
133 static const char *sipKwdList[] = {
134 sipName_wildcard,
135 sipName_flags,
136 };
137
138 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|i", &sipSelf, sipType_wxFileSystem, &sipCpp, sipType_wxString,&wildcard, &wildcardState, &flags))
139 {
140 ::wxString*sipRes;
141
142 PyErr_Clear();
143
144 Py_BEGIN_ALLOW_THREADS
145 sipRes = new ::wxString(sipCpp->FindFirst(*wildcard,flags));
146 Py_END_ALLOW_THREADS
147 sipReleaseType(const_cast< ::wxString *>(wildcard),sipType_wxString,wildcardState);
148
149 if (PyErr_Occurred())
150 return 0;
151
152 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
153 }
154 }
155
156 /* Raise an exception if the arguments couldn't be parsed. */
157 sipNoMethod(sipParseErr, sipName_FileSystem, sipName_FindFirst, SIP_NULLPTR);
158
159 return SIP_NULLPTR;
160 }
161
162
163 PyDoc_STRVAR(doc_wxFileSystem_FindNext, "FindNext() -> String\n"
164 "\n"
165 "Returns the next filename that matches the parameters passed to\n"
166 "FindFirst().");
167
168 extern "C" {static PyObject *meth_wxFileSystem_FindNext(PyObject *, PyObject *);}
meth_wxFileSystem_FindNext(PyObject * sipSelf,PyObject * sipArgs)169 static PyObject *meth_wxFileSystem_FindNext(PyObject *sipSelf, PyObject *sipArgs)
170 {
171 PyObject *sipParseErr = SIP_NULLPTR;
172
173 {
174 ::wxFileSystem *sipCpp;
175
176 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxFileSystem, &sipCpp))
177 {
178 ::wxString*sipRes;
179
180 PyErr_Clear();
181
182 Py_BEGIN_ALLOW_THREADS
183 sipRes = new ::wxString(sipCpp->FindNext());
184 Py_END_ALLOW_THREADS
185
186 if (PyErr_Occurred())
187 return 0;
188
189 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
190 }
191 }
192
193 /* Raise an exception if the arguments couldn't be parsed. */
194 sipNoMethod(sipParseErr, sipName_FileSystem, sipName_FindNext, SIP_NULLPTR);
195
196 return SIP_NULLPTR;
197 }
198
199
200 PyDoc_STRVAR(doc_wxFileSystem_GetPath, "GetPath() -> String\n"
201 "\n"
202 "Returns the actual path (set by wxFileSystem::ChangePathTo).");
203
204 extern "C" {static PyObject *meth_wxFileSystem_GetPath(PyObject *, PyObject *);}
meth_wxFileSystem_GetPath(PyObject * sipSelf,PyObject * sipArgs)205 static PyObject *meth_wxFileSystem_GetPath(PyObject *sipSelf, PyObject *sipArgs)
206 {
207 PyObject *sipParseErr = SIP_NULLPTR;
208
209 {
210 const ::wxFileSystem *sipCpp;
211
212 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxFileSystem, &sipCpp))
213 {
214 ::wxString*sipRes;
215
216 PyErr_Clear();
217
218 Py_BEGIN_ALLOW_THREADS
219 sipRes = new ::wxString(sipCpp->GetPath());
220 Py_END_ALLOW_THREADS
221
222 if (PyErr_Occurred())
223 return 0;
224
225 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
226 }
227 }
228
229 /* Raise an exception if the arguments couldn't be parsed. */
230 sipNoMethod(sipParseErr, sipName_FileSystem, sipName_GetPath, SIP_NULLPTR);
231
232 return SIP_NULLPTR;
233 }
234
235
236 PyDoc_STRVAR(doc_wxFileSystem_OpenFile, "OpenFile(location, flags=FS_READ) -> FSFile\n"
237 "\n"
238 "Opens the file and returns a pointer to a wxFSFile object or NULL if\n"
239 "failed.");
240
241 extern "C" {static PyObject *meth_wxFileSystem_OpenFile(PyObject *, PyObject *, PyObject *);}
meth_wxFileSystem_OpenFile(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)242 static PyObject *meth_wxFileSystem_OpenFile(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
243 {
244 PyObject *sipParseErr = SIP_NULLPTR;
245
246 {
247 const ::wxString* location;
248 int locationState = 0;
249 int flags = wxFS_READ;
250 ::wxFileSystem *sipCpp;
251
252 static const char *sipKwdList[] = {
253 sipName_location,
254 sipName_flags,
255 };
256
257 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|i", &sipSelf, sipType_wxFileSystem, &sipCpp, sipType_wxString,&location, &locationState, &flags))
258 {
259 ::wxFSFile*sipRes;
260
261 PyErr_Clear();
262
263 Py_BEGIN_ALLOW_THREADS
264 sipRes = sipCpp->OpenFile(*location,flags);
265 Py_END_ALLOW_THREADS
266 sipReleaseType(const_cast< ::wxString *>(location),sipType_wxString,locationState);
267
268 if (PyErr_Occurred())
269 return 0;
270
271 return sipConvertFromType(sipRes,sipType_wxFSFile,SIP_NULLPTR);
272 }
273 }
274
275 /* Raise an exception if the arguments couldn't be parsed. */
276 sipNoMethod(sipParseErr, sipName_FileSystem, sipName_OpenFile, SIP_NULLPTR);
277
278 return SIP_NULLPTR;
279 }
280
281
282 PyDoc_STRVAR(doc_wxFileSystem_AddHandler, "AddHandler(handler)\n"
283 "\n"
284 "This static function adds new handler into the list of handlers (see\n"
285 "wxFileSystemHandler) which provide access to virtual FS.");
286
287 extern "C" {static PyObject *meth_wxFileSystem_AddHandler(PyObject *, PyObject *, PyObject *);}
meth_wxFileSystem_AddHandler(PyObject *,PyObject * sipArgs,PyObject * sipKwds)288 static PyObject *meth_wxFileSystem_AddHandler(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
289 {
290 PyObject *sipParseErr = SIP_NULLPTR;
291
292 {
293 ::wxFileSystemHandler* handler;
294
295 static const char *sipKwdList[] = {
296 sipName_handler,
297 };
298
299 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J:", sipType_wxFileSystemHandler, &handler))
300 {
301 PyErr_Clear();
302
303 Py_BEGIN_ALLOW_THREADS
304 ::wxFileSystem::AddHandler(handler);
305 Py_END_ALLOW_THREADS
306
307 if (PyErr_Occurred())
308 return 0;
309
310 Py_INCREF(Py_None);
311 return Py_None;
312 }
313 }
314
315 /* Raise an exception if the arguments couldn't be parsed. */
316 sipNoMethod(sipParseErr, sipName_FileSystem, sipName_AddHandler, SIP_NULLPTR);
317
318 return SIP_NULLPTR;
319 }
320
321
322 PyDoc_STRVAR(doc_wxFileSystem_RemoveHandler, "RemoveHandler(handler) -> FileSystemHandler\n"
323 "\n"
324 "Remove a filesystem handler from the list of handlers.");
325
326 extern "C" {static PyObject *meth_wxFileSystem_RemoveHandler(PyObject *, PyObject *, PyObject *);}
meth_wxFileSystem_RemoveHandler(PyObject *,PyObject * sipArgs,PyObject * sipKwds)327 static PyObject *meth_wxFileSystem_RemoveHandler(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
328 {
329 PyObject *sipParseErr = SIP_NULLPTR;
330
331 {
332 ::wxFileSystemHandler* handler;
333
334 static const char *sipKwdList[] = {
335 sipName_handler,
336 };
337
338 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J8", sipType_wxFileSystemHandler, &handler))
339 {
340 ::wxFileSystemHandler*sipRes;
341
342 PyErr_Clear();
343
344 Py_BEGIN_ALLOW_THREADS
345 sipRes = ::wxFileSystem::RemoveHandler(handler);
346 Py_END_ALLOW_THREADS
347
348 if (PyErr_Occurred())
349 return 0;
350
351 return sipConvertFromType(sipRes,sipType_wxFileSystemHandler,Py_None);
352 }
353 }
354
355 /* Raise an exception if the arguments couldn't be parsed. */
356 sipNoMethod(sipParseErr, sipName_FileSystem, sipName_RemoveHandler, SIP_NULLPTR);
357
358 return SIP_NULLPTR;
359 }
360
361
362 PyDoc_STRVAR(doc_wxFileSystem_FileNameToURL, "FileNameToURL(filename) -> String\n"
363 "\n"
364 "Converts a wxFileName into an URL.");
365
366 extern "C" {static PyObject *meth_wxFileSystem_FileNameToURL(PyObject *, PyObject *, PyObject *);}
meth_wxFileSystem_FileNameToURL(PyObject *,PyObject * sipArgs,PyObject * sipKwds)367 static PyObject *meth_wxFileSystem_FileNameToURL(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
368 {
369 PyObject *sipParseErr = SIP_NULLPTR;
370
371 {
372 const ::wxFileName* filename;
373 int filenameState = 0;
374
375 static const char *sipKwdList[] = {
376 sipName_filename,
377 };
378
379 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1", sipType_wxFileName,&filename, &filenameState))
380 {
381 ::wxString*sipRes;
382
383 PyErr_Clear();
384
385 Py_BEGIN_ALLOW_THREADS
386 sipRes = new ::wxString( ::wxFileSystem::FileNameToURL(*filename));
387 Py_END_ALLOW_THREADS
388 sipReleaseType(const_cast< ::wxFileName *>(filename),sipType_wxFileName,filenameState);
389
390 if (PyErr_Occurred())
391 return 0;
392
393 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
394 }
395 }
396
397 /* Raise an exception if the arguments couldn't be parsed. */
398 sipNoMethod(sipParseErr, sipName_FileSystem, sipName_FileNameToURL, SIP_NULLPTR);
399
400 return SIP_NULLPTR;
401 }
402
403
404 PyDoc_STRVAR(doc_wxFileSystem_HasHandlerForPath, "HasHandlerForPath(location) -> bool\n"
405 "\n"
406 "This static function returns true if there is a registered handler\n"
407 "which can open the given location.");
408
409 extern "C" {static PyObject *meth_wxFileSystem_HasHandlerForPath(PyObject *, PyObject *, PyObject *);}
meth_wxFileSystem_HasHandlerForPath(PyObject *,PyObject * sipArgs,PyObject * sipKwds)410 static PyObject *meth_wxFileSystem_HasHandlerForPath(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
411 {
412 PyObject *sipParseErr = SIP_NULLPTR;
413
414 {
415 const ::wxString* location;
416 int locationState = 0;
417
418 static const char *sipKwdList[] = {
419 sipName_location,
420 };
421
422 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1", sipType_wxString,&location, &locationState))
423 {
424 bool sipRes;
425
426 PyErr_Clear();
427
428 Py_BEGIN_ALLOW_THREADS
429 sipRes = ::wxFileSystem::HasHandlerForPath(*location);
430 Py_END_ALLOW_THREADS
431 sipReleaseType(const_cast< ::wxString *>(location),sipType_wxString,locationState);
432
433 if (PyErr_Occurred())
434 return 0;
435
436 return PyBool_FromLong(sipRes);
437 }
438 }
439
440 /* Raise an exception if the arguments couldn't be parsed. */
441 sipNoMethod(sipParseErr, sipName_FileSystem, sipName_HasHandlerForPath, SIP_NULLPTR);
442
443 return SIP_NULLPTR;
444 }
445
446
447 PyDoc_STRVAR(doc_wxFileSystem_URLToFileName, "URLToFileName(url) -> FileName\n"
448 "\n"
449 "Converts URL into a well-formed filename.");
450
451 extern "C" {static PyObject *meth_wxFileSystem_URLToFileName(PyObject *, PyObject *, PyObject *);}
meth_wxFileSystem_URLToFileName(PyObject *,PyObject * sipArgs,PyObject * sipKwds)452 static PyObject *meth_wxFileSystem_URLToFileName(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
453 {
454 PyObject *sipParseErr = SIP_NULLPTR;
455
456 {
457 const ::wxString* url;
458 int urlState = 0;
459
460 static const char *sipKwdList[] = {
461 sipName_url,
462 };
463
464 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1", sipType_wxString,&url, &urlState))
465 {
466 ::wxFileName*sipRes;
467
468 PyErr_Clear();
469
470 Py_BEGIN_ALLOW_THREADS
471 sipRes = new ::wxFileName( ::wxFileSystem::URLToFileName(*url));
472 Py_END_ALLOW_THREADS
473 sipReleaseType(const_cast< ::wxString *>(url),sipType_wxString,urlState);
474
475 if (PyErr_Occurred())
476 return 0;
477
478 return sipConvertFromNewType(sipRes,sipType_wxFileName,SIP_NULLPTR);
479 }
480 }
481
482 /* Raise an exception if the arguments couldn't be parsed. */
483 sipNoMethod(sipParseErr, sipName_FileSystem, sipName_URLToFileName, SIP_NULLPTR);
484
485 return SIP_NULLPTR;
486 }
487
488
489 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
490 extern "C" {static void *cast_wxFileSystem(void *, const sipTypeDef *);}
cast_wxFileSystem(void * sipCppV,const sipTypeDef * targetType)491 static void *cast_wxFileSystem(void *sipCppV, const sipTypeDef *targetType)
492 {
493 ::wxFileSystem *sipCpp = reinterpret_cast< ::wxFileSystem *>(sipCppV);
494
495 if (targetType == sipType_wxObject)
496 return static_cast< ::wxObject *>(sipCpp);
497
498 return sipCppV;
499 }
500
501
502 /* Call the instance's destructor. */
503 extern "C" {static void release_wxFileSystem(void *, int);}
release_wxFileSystem(void * sipCppV,int)504 static void release_wxFileSystem(void *sipCppV, int)
505 {
506 Py_BEGIN_ALLOW_THREADS
507
508 delete reinterpret_cast< ::wxFileSystem *>(sipCppV);
509
510 Py_END_ALLOW_THREADS
511 }
512
513
514 extern "C" {static void dealloc_wxFileSystem(sipSimpleWrapper *);}
dealloc_wxFileSystem(sipSimpleWrapper * sipSelf)515 static void dealloc_wxFileSystem(sipSimpleWrapper *sipSelf)
516 {
517 if (sipIsOwnedByPython(sipSelf))
518 {
519 release_wxFileSystem(sipGetAddress(sipSelf), 0);
520 }
521 }
522
523
524 extern "C" {static void *init_type_wxFileSystem(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxFileSystem(sipSimpleWrapper *,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)525 static void *init_type_wxFileSystem(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
526 {
527 ::wxFileSystem *sipCpp = SIP_NULLPTR;
528
529 {
530 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
531 {
532 PyErr_Clear();
533
534 Py_BEGIN_ALLOW_THREADS
535 sipCpp = new ::wxFileSystem();
536 Py_END_ALLOW_THREADS
537
538 if (PyErr_Occurred())
539 {
540 delete sipCpp;
541 return SIP_NULLPTR;
542 }
543
544 return sipCpp;
545 }
546 }
547
548 return SIP_NULLPTR;
549 }
550
551
552 /* Define this type's super-types. */
553 static sipEncodedTypeDef supers_wxFileSystem[] = {{358, 255, 1}};
554
555
556 static PyMethodDef methods_wxFileSystem[] = {
557 {SIP_MLNAME_CAST(sipName_AddHandler), SIP_MLMETH_CAST(meth_wxFileSystem_AddHandler), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxFileSystem_AddHandler)},
558 {SIP_MLNAME_CAST(sipName_ChangePathTo), SIP_MLMETH_CAST(meth_wxFileSystem_ChangePathTo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxFileSystem_ChangePathTo)},
559 {SIP_MLNAME_CAST(sipName_FileNameToURL), SIP_MLMETH_CAST(meth_wxFileSystem_FileNameToURL), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxFileSystem_FileNameToURL)},
560 {SIP_MLNAME_CAST(sipName_FindFileInPath), SIP_MLMETH_CAST(meth_wxFileSystem_FindFileInPath), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxFileSystem_FindFileInPath)},
561 {SIP_MLNAME_CAST(sipName_FindFirst), SIP_MLMETH_CAST(meth_wxFileSystem_FindFirst), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxFileSystem_FindFirst)},
562 {SIP_MLNAME_CAST(sipName_FindNext), meth_wxFileSystem_FindNext, METH_VARARGS, SIP_MLDOC_CAST(doc_wxFileSystem_FindNext)},
563 {SIP_MLNAME_CAST(sipName_GetPath), meth_wxFileSystem_GetPath, METH_VARARGS, SIP_MLDOC_CAST(doc_wxFileSystem_GetPath)},
564 {SIP_MLNAME_CAST(sipName_HasHandlerForPath), SIP_MLMETH_CAST(meth_wxFileSystem_HasHandlerForPath), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxFileSystem_HasHandlerForPath)},
565 {SIP_MLNAME_CAST(sipName_OpenFile), SIP_MLMETH_CAST(meth_wxFileSystem_OpenFile), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxFileSystem_OpenFile)},
566 {SIP_MLNAME_CAST(sipName_RemoveHandler), SIP_MLMETH_CAST(meth_wxFileSystem_RemoveHandler), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxFileSystem_RemoveHandler)},
567 {SIP_MLNAME_CAST(sipName_URLToFileName), SIP_MLMETH_CAST(meth_wxFileSystem_URLToFileName), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxFileSystem_URLToFileName)}
568 };
569
570 sipVariableDef variables_wxFileSystem[] = {
571 {PropertyVariable, sipName_Path, &methods_wxFileSystem[6], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
572 };
573
574 PyDoc_STRVAR(doc_wxFileSystem, "FileSystem()\n"
575 "\n"
576 "This class provides an interface for opening files on different file\n"
577 "systems.");
578
579
580 sipClassTypeDef sipTypeDef__core_wxFileSystem = {
581 {
582 -1,
583 SIP_NULLPTR,
584 SIP_NULLPTR,
585 SIP_TYPE_SCC|SIP_TYPE_CLASS,
586 sipNameNr_wxFileSystem,
587 {SIP_NULLPTR},
588 SIP_NULLPTR
589 },
590 {
591 sipNameNr_FileSystem,
592 {0, 0, 1},
593 11, methods_wxFileSystem,
594 0, SIP_NULLPTR,
595 1, variables_wxFileSystem,
596 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
597 },
598 doc_wxFileSystem,
599 -1,
600 -1,
601 supers_wxFileSystem,
602 SIP_NULLPTR,
603 init_type_wxFileSystem,
604 SIP_NULLPTR,
605 SIP_NULLPTR,
606 #if PY_MAJOR_VERSION >= 3
607 SIP_NULLPTR,
608 SIP_NULLPTR,
609 #else
610 SIP_NULLPTR,
611 SIP_NULLPTR,
612 SIP_NULLPTR,
613 SIP_NULLPTR,
614 #endif
615 dealloc_wxFileSystem,
616 SIP_NULLPTR,
617 SIP_NULLPTR,
618 SIP_NULLPTR,
619 release_wxFileSystem,
620 cast_wxFileSystem,
621 SIP_NULLPTR,
622 SIP_NULLPTR,
623 SIP_NULLPTR,
624 SIP_NULLPTR,
625 SIP_NULLPTR,
626 SIP_NULLPTR
627 };
628