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/fs_arc.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 class sipwxArchiveFSHandler : public ::wxArchiveFSHandler
22 {
23 public:
24 sipwxArchiveFSHandler();
25 virtual ~sipwxArchiveFSHandler();
26
27 /*
28 * There is a public method for every protected method visible from
29 * this class.
30 */
31 static ::wxString sipProtect_GetAnchor(const ::wxString&);
32 static ::wxString sipProtect_GetLeftLocation(const ::wxString&);
33 static ::wxString sipProtect_GetProtocol(const ::wxString&);
34 static ::wxString sipProtect_GetRightLocation(const ::wxString&);
35
36 /*
37 * There is a protected method for every virtual method visible from
38 * this class.
39 */
40 protected:
41 bool CanOpen(const ::wxString&) SIP_OVERRIDE;
42 ::wxString FindFirst(const ::wxString&,int) SIP_OVERRIDE;
43 ::wxString FindNext() SIP_OVERRIDE;
44 ::wxFSFile* OpenFile( ::wxFileSystem&,const ::wxString&) SIP_OVERRIDE;
45
46 public:
47 sipSimpleWrapper *sipPySelf;
48
49 private:
50 sipwxArchiveFSHandler(const sipwxArchiveFSHandler &);
51 sipwxArchiveFSHandler &operator = (const sipwxArchiveFSHandler &);
52
53 char sipPyMethods[4];
54 };
55
sipwxArchiveFSHandler()56 sipwxArchiveFSHandler::sipwxArchiveFSHandler(): ::wxArchiveFSHandler(), sipPySelf(SIP_NULLPTR)
57 {
58 memset(sipPyMethods, 0, sizeof (sipPyMethods));
59 }
60
~sipwxArchiveFSHandler()61 sipwxArchiveFSHandler::~sipwxArchiveFSHandler()
62 {
63 sipInstanceDestroyedEx(&sipPySelf);
64 }
65
CanOpen(const::wxString & location)66 bool sipwxArchiveFSHandler::CanOpen(const ::wxString& location)
67 {
68 sip_gilstate_t sipGILState;
69 PyObject *sipMeth;
70
71 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,SIP_NULLPTR,sipName_CanOpen);
72
73 if (!sipMeth)
74 return ::wxArchiveFSHandler::CanOpen(location);
75
76 extern bool sipVH__core_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxString&);
77
78 return sipVH__core_9(sipGILState, 0, sipPySelf, sipMeth, location);
79 }
80
FindFirst(const::wxString & spec,int flags)81 ::wxString sipwxArchiveFSHandler::FindFirst(const ::wxString& spec,int flags)
82 {
83 sip_gilstate_t sipGILState;
84 PyObject *sipMeth;
85
86 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,SIP_NULLPTR,sipName_FindFirst);
87
88 if (!sipMeth)
89 return ::wxArchiveFSHandler::FindFirst(spec,flags);
90
91 extern ::wxString sipVH__core_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxString&,int);
92
93 return sipVH__core_10(sipGILState, 0, sipPySelf, sipMeth, spec, flags);
94 }
95
FindNext()96 ::wxString sipwxArchiveFSHandler::FindNext()
97 {
98 sip_gilstate_t sipGILState;
99 PyObject *sipMeth;
100
101 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_FindNext);
102
103 if (!sipMeth)
104 return ::wxArchiveFSHandler::FindNext();
105
106 extern ::wxString sipVH__core_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
107
108 return sipVH__core_11(sipGILState, 0, sipPySelf, sipMeth);
109 }
110
OpenFile(::wxFileSystem & fs,const::wxString & location)111 ::wxFSFile* sipwxArchiveFSHandler::OpenFile( ::wxFileSystem& fs,const ::wxString& location)
112 {
113 sip_gilstate_t sipGILState;
114 PyObject *sipMeth;
115
116 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_OpenFile);
117
118 if (!sipMeth)
119 return ::wxArchiveFSHandler::OpenFile(fs,location);
120
121 extern ::wxFSFile* sipVH__core_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxFileSystem&,const ::wxString&);
122
123 return sipVH__core_12(sipGILState, 0, sipPySelf, sipMeth, fs, location);
124 }
125
sipProtect_GetAnchor(const::wxString & location)126 ::wxString sipwxArchiveFSHandler::sipProtect_GetAnchor(const ::wxString& location)
127 {
128 return ::wxFileSystemHandler::GetAnchor(location);
129 }
130
sipProtect_GetLeftLocation(const::wxString & location)131 ::wxString sipwxArchiveFSHandler::sipProtect_GetLeftLocation(const ::wxString& location)
132 {
133 return ::wxFileSystemHandler::GetLeftLocation(location);
134 }
135
sipProtect_GetProtocol(const::wxString & location)136 ::wxString sipwxArchiveFSHandler::sipProtect_GetProtocol(const ::wxString& location)
137 {
138 return ::wxFileSystemHandler::GetProtocol(location);
139 }
140
sipProtect_GetRightLocation(const::wxString & location)141 ::wxString sipwxArchiveFSHandler::sipProtect_GetRightLocation(const ::wxString& location)
142 {
143 return ::wxFileSystemHandler::GetRightLocation(location);
144 }
145
146
147 PyDoc_STRVAR(doc_wxArchiveFSHandler_GetAnchor, "GetAnchor(location) -> String\n"
148 "\n"
149 "Returns the anchor if present in the location.");
150
151 extern "C" {static PyObject *meth_wxArchiveFSHandler_GetAnchor(PyObject *, PyObject *, PyObject *);}
meth_wxArchiveFSHandler_GetAnchor(PyObject *,PyObject * sipArgs,PyObject * sipKwds)152 static PyObject *meth_wxArchiveFSHandler_GetAnchor(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
153 {
154 PyObject *sipParseErr = SIP_NULLPTR;
155
156 {
157 const ::wxString* location;
158 int locationState = 0;
159
160 static const char *sipKwdList[] = {
161 sipName_location,
162 };
163
164 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1", sipType_wxString,&location, &locationState))
165 {
166 ::wxString*sipRes;
167
168 PyErr_Clear();
169
170 Py_BEGIN_ALLOW_THREADS
171 sipRes = new ::wxString(sipwxArchiveFSHandler::sipProtect_GetAnchor(*location));
172 Py_END_ALLOW_THREADS
173 sipReleaseType(const_cast< ::wxString *>(location),sipType_wxString,locationState);
174
175 if (PyErr_Occurred())
176 return 0;
177
178 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
179 }
180 }
181
182 /* Raise an exception if the arguments couldn't be parsed. */
183 sipNoMethod(sipParseErr, sipName_ArchiveFSHandler, sipName_GetAnchor, SIP_NULLPTR);
184
185 return SIP_NULLPTR;
186 }
187
188
189 PyDoc_STRVAR(doc_wxArchiveFSHandler_GetLeftLocation, "GetLeftLocation(location) -> String\n"
190 "\n"
191 "Returns the left location string extracted from location.");
192
193 extern "C" {static PyObject *meth_wxArchiveFSHandler_GetLeftLocation(PyObject *, PyObject *, PyObject *);}
meth_wxArchiveFSHandler_GetLeftLocation(PyObject *,PyObject * sipArgs,PyObject * sipKwds)194 static PyObject *meth_wxArchiveFSHandler_GetLeftLocation(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
195 {
196 PyObject *sipParseErr = SIP_NULLPTR;
197
198 {
199 const ::wxString* location;
200 int locationState = 0;
201
202 static const char *sipKwdList[] = {
203 sipName_location,
204 };
205
206 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1", sipType_wxString,&location, &locationState))
207 {
208 ::wxString*sipRes;
209
210 PyErr_Clear();
211
212 Py_BEGIN_ALLOW_THREADS
213 sipRes = new ::wxString(sipwxArchiveFSHandler::sipProtect_GetLeftLocation(*location));
214 Py_END_ALLOW_THREADS
215 sipReleaseType(const_cast< ::wxString *>(location),sipType_wxString,locationState);
216
217 if (PyErr_Occurred())
218 return 0;
219
220 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
221 }
222 }
223
224 /* Raise an exception if the arguments couldn't be parsed. */
225 sipNoMethod(sipParseErr, sipName_ArchiveFSHandler, sipName_GetLeftLocation, SIP_NULLPTR);
226
227 return SIP_NULLPTR;
228 }
229
230
231 PyDoc_STRVAR(doc_wxArchiveFSHandler_GetProtocol, "GetProtocol(location) -> String\n"
232 "\n"
233 "Returns the protocol string extracted from location.");
234
235 extern "C" {static PyObject *meth_wxArchiveFSHandler_GetProtocol(PyObject *, PyObject *, PyObject *);}
meth_wxArchiveFSHandler_GetProtocol(PyObject *,PyObject * sipArgs,PyObject * sipKwds)236 static PyObject *meth_wxArchiveFSHandler_GetProtocol(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
237 {
238 PyObject *sipParseErr = SIP_NULLPTR;
239
240 {
241 const ::wxString* location;
242 int locationState = 0;
243
244 static const char *sipKwdList[] = {
245 sipName_location,
246 };
247
248 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1", sipType_wxString,&location, &locationState))
249 {
250 ::wxString*sipRes;
251
252 PyErr_Clear();
253
254 Py_BEGIN_ALLOW_THREADS
255 sipRes = new ::wxString(sipwxArchiveFSHandler::sipProtect_GetProtocol(*location));
256 Py_END_ALLOW_THREADS
257 sipReleaseType(const_cast< ::wxString *>(location),sipType_wxString,locationState);
258
259 if (PyErr_Occurred())
260 return 0;
261
262 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
263 }
264 }
265
266 /* Raise an exception if the arguments couldn't be parsed. */
267 sipNoMethod(sipParseErr, sipName_ArchiveFSHandler, sipName_GetProtocol, SIP_NULLPTR);
268
269 return SIP_NULLPTR;
270 }
271
272
273 PyDoc_STRVAR(doc_wxArchiveFSHandler_GetRightLocation, "GetRightLocation(location) -> String\n"
274 "\n"
275 "Returns the right location string extracted from location.");
276
277 extern "C" {static PyObject *meth_wxArchiveFSHandler_GetRightLocation(PyObject *, PyObject *, PyObject *);}
meth_wxArchiveFSHandler_GetRightLocation(PyObject *,PyObject * sipArgs,PyObject * sipKwds)278 static PyObject *meth_wxArchiveFSHandler_GetRightLocation(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
279 {
280 PyObject *sipParseErr = SIP_NULLPTR;
281
282 {
283 const ::wxString* location;
284 int locationState = 0;
285
286 static const char *sipKwdList[] = {
287 sipName_location,
288 };
289
290 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1", sipType_wxString,&location, &locationState))
291 {
292 ::wxString*sipRes;
293
294 PyErr_Clear();
295
296 Py_BEGIN_ALLOW_THREADS
297 sipRes = new ::wxString(sipwxArchiveFSHandler::sipProtect_GetRightLocation(*location));
298 Py_END_ALLOW_THREADS
299 sipReleaseType(const_cast< ::wxString *>(location),sipType_wxString,locationState);
300
301 if (PyErr_Occurred())
302 return 0;
303
304 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
305 }
306 }
307
308 /* Raise an exception if the arguments couldn't be parsed. */
309 sipNoMethod(sipParseErr, sipName_ArchiveFSHandler, sipName_GetRightLocation, SIP_NULLPTR);
310
311 return SIP_NULLPTR;
312 }
313
314
315 PyDoc_STRVAR(doc_wxArchiveFSHandler_Cleanup, "Cleanup()");
316
317 extern "C" {static PyObject *meth_wxArchiveFSHandler_Cleanup(PyObject *, PyObject *);}
meth_wxArchiveFSHandler_Cleanup(PyObject * sipSelf,PyObject * sipArgs)318 static PyObject *meth_wxArchiveFSHandler_Cleanup(PyObject *sipSelf, PyObject *sipArgs)
319 {
320 PyObject *sipParseErr = SIP_NULLPTR;
321
322 {
323 ::wxArchiveFSHandler *sipCpp;
324
325 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxArchiveFSHandler, &sipCpp))
326 {
327 PyErr_Clear();
328
329 Py_BEGIN_ALLOW_THREADS
330 sipCpp->Cleanup();
331 Py_END_ALLOW_THREADS
332
333 if (PyErr_Occurred())
334 return 0;
335
336 Py_INCREF(Py_None);
337 return Py_None;
338 }
339 }
340
341 /* Raise an exception if the arguments couldn't be parsed. */
342 sipNoMethod(sipParseErr, sipName_ArchiveFSHandler, sipName_Cleanup, SIP_NULLPTR);
343
344 return SIP_NULLPTR;
345 }
346
347
348 PyDoc_STRVAR(doc_wxArchiveFSHandler_CanOpen, "CanOpen(self, location: object) -> bool");
349
350 extern "C" {static PyObject *meth_wxArchiveFSHandler_CanOpen(PyObject *, PyObject *, PyObject *);}
meth_wxArchiveFSHandler_CanOpen(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)351 static PyObject *meth_wxArchiveFSHandler_CanOpen(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
352 {
353 PyObject *sipParseErr = SIP_NULLPTR;
354 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
355
356 {
357 const ::wxString* location;
358 int locationState = 0;
359 ::wxArchiveFSHandler *sipCpp;
360
361 static const char *sipKwdList[] = {
362 sipName_location,
363 };
364
365 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxArchiveFSHandler, &sipCpp, sipType_wxString,&location, &locationState))
366 {
367 bool sipRes;
368
369 PyErr_Clear();
370
371 Py_BEGIN_ALLOW_THREADS
372 sipRes = (sipSelfWasArg ? sipCpp-> ::wxArchiveFSHandler::CanOpen(*location) : sipCpp->CanOpen(*location));
373 Py_END_ALLOW_THREADS
374 sipReleaseType(const_cast< ::wxString *>(location),sipType_wxString,locationState);
375
376 if (PyErr_Occurred())
377 return 0;
378
379 return PyBool_FromLong(sipRes);
380 }
381 }
382
383 /* Raise an exception if the arguments couldn't be parsed. */
384 sipNoMethod(sipParseErr, sipName_ArchiveFSHandler, sipName_CanOpen, doc_wxArchiveFSHandler_CanOpen);
385
386 return SIP_NULLPTR;
387 }
388
389
390 PyDoc_STRVAR(doc_wxArchiveFSHandler_OpenFile, "OpenFile(self, fs: FileSystem, location: object) -> FSFile");
391
392 extern "C" {static PyObject *meth_wxArchiveFSHandler_OpenFile(PyObject *, PyObject *, PyObject *);}
meth_wxArchiveFSHandler_OpenFile(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)393 static PyObject *meth_wxArchiveFSHandler_OpenFile(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
394 {
395 PyObject *sipParseErr = SIP_NULLPTR;
396 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
397
398 {
399 ::wxFileSystem* fs;
400 const ::wxString* location;
401 int locationState = 0;
402 ::wxArchiveFSHandler *sipCpp;
403
404 static const char *sipKwdList[] = {
405 sipName_fs,
406 sipName_location,
407 };
408
409 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J1", &sipSelf, sipType_wxArchiveFSHandler, &sipCpp, sipType_wxFileSystem, &fs, sipType_wxString,&location, &locationState))
410 {
411 ::wxFSFile*sipRes;
412
413 PyErr_Clear();
414
415 Py_BEGIN_ALLOW_THREADS
416 sipRes = (sipSelfWasArg ? sipCpp-> ::wxArchiveFSHandler::OpenFile(*fs,*location) : sipCpp->OpenFile(*fs,*location));
417 Py_END_ALLOW_THREADS
418 sipReleaseType(const_cast< ::wxString *>(location),sipType_wxString,locationState);
419
420 if (PyErr_Occurred())
421 return 0;
422
423 return sipConvertFromNewType(sipRes,sipType_wxFSFile,SIP_NULLPTR);
424 }
425 }
426
427 /* Raise an exception if the arguments couldn't be parsed. */
428 sipNoMethod(sipParseErr, sipName_ArchiveFSHandler, sipName_OpenFile, doc_wxArchiveFSHandler_OpenFile);
429
430 return SIP_NULLPTR;
431 }
432
433
434 PyDoc_STRVAR(doc_wxArchiveFSHandler_FindFirst, "FindFirst(self, spec: object, flags: int = 0) -> object");
435
436 extern "C" {static PyObject *meth_wxArchiveFSHandler_FindFirst(PyObject *, PyObject *, PyObject *);}
meth_wxArchiveFSHandler_FindFirst(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)437 static PyObject *meth_wxArchiveFSHandler_FindFirst(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
438 {
439 PyObject *sipParseErr = SIP_NULLPTR;
440 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
441
442 {
443 const ::wxString* spec;
444 int specState = 0;
445 int flags = 0;
446 ::wxArchiveFSHandler *sipCpp;
447
448 static const char *sipKwdList[] = {
449 sipName_spec,
450 sipName_flags,
451 };
452
453 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|i", &sipSelf, sipType_wxArchiveFSHandler, &sipCpp, sipType_wxString,&spec, &specState, &flags))
454 {
455 ::wxString*sipRes;
456
457 PyErr_Clear();
458
459 Py_BEGIN_ALLOW_THREADS
460 sipRes = new ::wxString((sipSelfWasArg ? sipCpp-> ::wxArchiveFSHandler::FindFirst(*spec,flags) : sipCpp->FindFirst(*spec,flags)));
461 Py_END_ALLOW_THREADS
462 sipReleaseType(const_cast< ::wxString *>(spec),sipType_wxString,specState);
463
464 if (PyErr_Occurred())
465 return 0;
466
467 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
468 }
469 }
470
471 /* Raise an exception if the arguments couldn't be parsed. */
472 sipNoMethod(sipParseErr, sipName_ArchiveFSHandler, sipName_FindFirst, doc_wxArchiveFSHandler_FindFirst);
473
474 return SIP_NULLPTR;
475 }
476
477
478 PyDoc_STRVAR(doc_wxArchiveFSHandler_FindNext, "FindNext(self) -> object");
479
480 extern "C" {static PyObject *meth_wxArchiveFSHandler_FindNext(PyObject *, PyObject *);}
meth_wxArchiveFSHandler_FindNext(PyObject * sipSelf,PyObject * sipArgs)481 static PyObject *meth_wxArchiveFSHandler_FindNext(PyObject *sipSelf, PyObject *sipArgs)
482 {
483 PyObject *sipParseErr = SIP_NULLPTR;
484 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
485
486 {
487 ::wxArchiveFSHandler *sipCpp;
488
489 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxArchiveFSHandler, &sipCpp))
490 {
491 ::wxString*sipRes;
492
493 PyErr_Clear();
494
495 Py_BEGIN_ALLOW_THREADS
496 sipRes = new ::wxString((sipSelfWasArg ? sipCpp-> ::wxArchiveFSHandler::FindNext() : sipCpp->FindNext()));
497 Py_END_ALLOW_THREADS
498
499 if (PyErr_Occurred())
500 return 0;
501
502 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
503 }
504 }
505
506 /* Raise an exception if the arguments couldn't be parsed. */
507 sipNoMethod(sipParseErr, sipName_ArchiveFSHandler, sipName_FindNext, doc_wxArchiveFSHandler_FindNext);
508
509 return SIP_NULLPTR;
510 }
511
512
513 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
514 extern "C" {static void *cast_wxArchiveFSHandler(void *, const sipTypeDef *);}
cast_wxArchiveFSHandler(void * sipCppV,const sipTypeDef * targetType)515 static void *cast_wxArchiveFSHandler(void *sipCppV, const sipTypeDef *targetType)
516 {
517 ::wxArchiveFSHandler *sipCpp = reinterpret_cast< ::wxArchiveFSHandler *>(sipCppV);
518
519 if (targetType == sipType_wxFileSystemHandler)
520 return static_cast< ::wxFileSystemHandler *>(sipCpp);
521
522 if (targetType == sipType_wxObject)
523 return static_cast< ::wxObject *>(sipCpp);
524
525 return sipCppV;
526 }
527
528
529 /* Call the instance's destructor. */
530 extern "C" {static void release_wxArchiveFSHandler(void *, int);}
release_wxArchiveFSHandler(void * sipCppV,int sipState)531 static void release_wxArchiveFSHandler(void *sipCppV, int sipState)
532 {
533 Py_BEGIN_ALLOW_THREADS
534
535 if (sipState & SIP_DERIVED_CLASS)
536 delete reinterpret_cast<sipwxArchiveFSHandler *>(sipCppV);
537 else
538 delete reinterpret_cast< ::wxArchiveFSHandler *>(sipCppV);
539
540 Py_END_ALLOW_THREADS
541 }
542
543
544 extern "C" {static void dealloc_wxArchiveFSHandler(sipSimpleWrapper *);}
dealloc_wxArchiveFSHandler(sipSimpleWrapper * sipSelf)545 static void dealloc_wxArchiveFSHandler(sipSimpleWrapper *sipSelf)
546 {
547 if (sipIsDerivedClass(sipSelf))
548 reinterpret_cast<sipwxArchiveFSHandler *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
549
550 if (sipIsOwnedByPython(sipSelf))
551 {
552 release_wxArchiveFSHandler(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
553 }
554 }
555
556
557 extern "C" {static void *init_type_wxArchiveFSHandler(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxArchiveFSHandler(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)558 static void *init_type_wxArchiveFSHandler(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
559 {
560 sipwxArchiveFSHandler *sipCpp = SIP_NULLPTR;
561
562 {
563 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
564 {
565 PyErr_Clear();
566
567 Py_BEGIN_ALLOW_THREADS
568 sipCpp = new sipwxArchiveFSHandler();
569 Py_END_ALLOW_THREADS
570
571 if (PyErr_Occurred())
572 {
573 delete sipCpp;
574 return SIP_NULLPTR;
575 }
576
577 sipCpp->sipPySelf = sipSelf;
578
579 return sipCpp;
580 }
581 }
582
583 return SIP_NULLPTR;
584 }
585
586
587 /* Define this type's super-types. */
588 static sipEncodedTypeDef supers_wxArchiveFSHandler[] = {{165, 255, 1}};
589
590
591 static PyMethodDef methods_wxArchiveFSHandler[] = {
592 {SIP_MLNAME_CAST(sipName_CanOpen), SIP_MLMETH_CAST(meth_wxArchiveFSHandler_CanOpen), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxArchiveFSHandler_CanOpen)},
593 {SIP_MLNAME_CAST(sipName_Cleanup), meth_wxArchiveFSHandler_Cleanup, METH_VARARGS, SIP_MLDOC_CAST(doc_wxArchiveFSHandler_Cleanup)},
594 {SIP_MLNAME_CAST(sipName_FindFirst), SIP_MLMETH_CAST(meth_wxArchiveFSHandler_FindFirst), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxArchiveFSHandler_FindFirst)},
595 {SIP_MLNAME_CAST(sipName_FindNext), meth_wxArchiveFSHandler_FindNext, METH_VARARGS, SIP_MLDOC_CAST(doc_wxArchiveFSHandler_FindNext)},
596 {SIP_MLNAME_CAST(sipName_GetAnchor), SIP_MLMETH_CAST(meth_wxArchiveFSHandler_GetAnchor), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
597 {SIP_MLNAME_CAST(sipName_GetLeftLocation), SIP_MLMETH_CAST(meth_wxArchiveFSHandler_GetLeftLocation), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
598 {SIP_MLNAME_CAST(sipName_GetProtocol), SIP_MLMETH_CAST(meth_wxArchiveFSHandler_GetProtocol), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
599 {SIP_MLNAME_CAST(sipName_GetRightLocation), SIP_MLMETH_CAST(meth_wxArchiveFSHandler_GetRightLocation), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
600 {SIP_MLNAME_CAST(sipName_OpenFile), SIP_MLMETH_CAST(meth_wxArchiveFSHandler_OpenFile), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxArchiveFSHandler_OpenFile)}
601 };
602
603 PyDoc_STRVAR(doc_wxArchiveFSHandler, "ArchiveFSHandler()\n"
604 "\n"
605 "A file system handler for accessing files inside of archives.");
606
607
608 sipClassTypeDef sipTypeDef__core_wxArchiveFSHandler = {
609 {
610 -1,
611 SIP_NULLPTR,
612 SIP_NULLPTR,
613 SIP_TYPE_SCC|SIP_TYPE_CLASS,
614 sipNameNr_wxArchiveFSHandler,
615 {SIP_NULLPTR},
616 SIP_NULLPTR
617 },
618 {
619 sipNameNr_ArchiveFSHandler,
620 {0, 0, 1},
621 9, methods_wxArchiveFSHandler,
622 0, SIP_NULLPTR,
623 0, SIP_NULLPTR,
624 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
625 },
626 doc_wxArchiveFSHandler,
627 -1,
628 -1,
629 supers_wxArchiveFSHandler,
630 SIP_NULLPTR,
631 init_type_wxArchiveFSHandler,
632 SIP_NULLPTR,
633 SIP_NULLPTR,
634 #if PY_MAJOR_VERSION >= 3
635 SIP_NULLPTR,
636 SIP_NULLPTR,
637 #else
638 SIP_NULLPTR,
639 SIP_NULLPTR,
640 SIP_NULLPTR,
641 SIP_NULLPTR,
642 #endif
643 dealloc_wxArchiveFSHandler,
644 SIP_NULLPTR,
645 SIP_NULLPTR,
646 SIP_NULLPTR,
647 release_wxArchiveFSHandler,
648 cast_wxArchiveFSHandler,
649 SIP_NULLPTR,
650 SIP_NULLPTR,
651 SIP_NULLPTR,
652 SIP_NULLPTR,
653 SIP_NULLPTR,
654 SIP_NULLPTR
655 };
656